소스 검색

feat(scrm-4711): [DE][C端]临时停车,当A车被两个用户同时查询,A用户缴费完成,B用于再去点支付的时候,应该提示用户当前车辆无需缴费

lock.qiu@kerryprops.com 1 년 전
부모
커밋
e8c0af3b42
1개의 변경된 파일19개의 추가작업 그리고 0개의 파일을 삭제
  1. 19 0
      src/pages/parkingFee/mixins/parkingFeeDetail.js

+ 19 - 0
src/pages/parkingFee/mixins/parkingFeeDetail.js

@@ -331,6 +331,25 @@ export default {
           console.log('err::::', err)
           if (err.code !=='NO_FEE_NEED_TO_PAY') {
             this.reCreateParkOrder()
+          } else {
+            Dialog.alert({
+              title: '提示',
+              message: '当前无需缴费',
+              confirmButtonColor: '#333',
+            }).then(() => {
+              this.$refs.countDown.reset(); // 停车场重置费用倒计时3分钟
+              this.$store.dispatch('order/orderInit', {
+                gateId: this.$route.query?.gateId,
+                vehicleNo: this.$route.query?.vehicleNo,
+                endlessLoop: this.endlessLoop,
+                callback: (res) => {
+                  this.orderInitCallBack(res)
+                },
+              })
+              this.btnLoading = false;
+              this.isPay = false
+              // this.createParkOrder();
+            });
           }
           this.btnLoading = false
           this.isPay = false