ソースを参照

feat(KIP-17885): Temp parking frontend |无牌车出口设置request,当前参数异常,重新登录去掉gateId 添加qrCodeId

lock.qiu@kerryprops.com 11 ヶ月 前
コミット
4b269532e9

+ 1 - 0
src/api/request.js

@@ -194,6 +194,7 @@ export const createAxiosByinterceptors = (config) => {
       // 检测无牌车出场参数, 必须为必填参数
       if(/unlicensed-car-checkout/g.test(config.url)) {
         const data = config.data
+        console.log('unlicensed-car-checkout:::', data, config.data)
         if(!data.vehicleNo && !data.qrCodeId || !config.data) {
           throw {
             response: {

+ 3 - 3
src/pages/parkingFee/mixins/parkingFeeDetail.js

@@ -611,7 +611,7 @@ export default {
         this.$refs.countDown.reset(); // 停车场重置费用倒计时3分钟
         this.$store.dispatch('order/orderInit', {
           gateId: this.$route.query?.gateId,
-          qrCodeId: this.$route.query?.qrCode,
+          qrCodeId: this.$route.query?.code,
           vehicleNo: this.$route.query?.vehicleNo,
           endlessLoop: this.endlessLoop,
           callback: (res) => {
@@ -671,7 +671,7 @@ export default {
         this.$store.dispatch('order/orderInit', {
           vehicleNo: this.$route.query.vehicleNo,
           gateId: this.$route.query?.gateId,
-          qrCodeId: this.$route.query?.qrCode,
+          qrCodeId: this.$route.query?.code,
           endlessLoop: this.endlessLoop,
           callback: (res) => {
             this.orderInitCallBack(res)
@@ -795,7 +795,7 @@ export default {
       this.popup = false;
       this.$store.dispatch('order/orderInit', {
         gateId: this.$route.query?.gateId,
-        qrCodeId: this.$route.query?.qrCode,
+        qrCodeId: this.$route.query?.code,
         vehicleNo: this.$route.query?.vehicleNo,
         endlessLoop: this.endlessLoop,
         callback: (res) => {

+ 5 - 4
src/pages/parkingFeeV2/mixins/parkingFeeDetail.js

@@ -744,7 +744,7 @@ export default {
         this.$store.dispatch('order/orderInit', {
           ...this.$route.query,
           gateId: this.$route.query?.gateId,
-          qrCodeId: this.$route.query?.qrCode,
+          qrCodeId: this.$route.query?.qrCodeId,
           vehicleNo: this.$route.query?.vehicleNo,
           endlessLoop: this.endlessLoop,
           callback: (res) => {
@@ -801,11 +801,12 @@ export default {
         this.btnLoading = false
         this.isPay = false
         // return
+        console.log('this.$route.query:::', this.$route.query)
         this.$store.dispatch('order/orderInit', {
           ...this.$route.query,
           vehicleNo: this.$route.query.vehicleNo,
           gateId: this.$route.query?.gateId,
-          qrCodeId: this.$route.query?.qrCode,
+          qrCodeId: this.$route.query?.qrCodeId,
           endlessLoop: this.endlessLoop,
           callback: (res) => {
             this.orderInitCallBack(res)
@@ -935,8 +936,8 @@ export default {
       this.popup = false;
       this.$store.dispatch('order/orderInit', {
         ...this.$route.query,
-        gateId: this.$route.query?.gateId,
-        qrCodeId: this.$route.query?.qrCode,
+        gateId: this.$route.query?.qrCodeId,
+        qrCodeId: this.$route.query?.code,
         vehicleNo: this.$route.query?.vehicleNo,
         endlessLoop: this.endlessLoop,
         callback: (res) => {