Эх сурвалжийг харах

Merge pull request #261 from John-Hong/John/release-2.17.0/KIP-11937

无牌车参数首次异常
Tron 1 жил өмнө
parent
commit
a020571b9c

+ 1 - 1
src/pages/parkingFeeV2/mixins/parkingFeePaperCoupon.js

@@ -147,7 +147,7 @@ export default {
       uni.showLoading({
         title: '加载中',
       });
-      const res = await paperCoupon(couponCode, this.$route.query.vehicleNo);
+      const res = await paperCoupon(couponCode, this.orderDetail.parkingRecord.vehicleNo);
       /*const res = {
         "status": "1",
         "discountCode": "91354260",

+ 1 - 1
src/store/order/index.js

@@ -35,7 +35,7 @@ export default {
         // const res = await checkOut('沪DCJ986');
         // console.log('无牌车扫码出场', endlessLoop);
         // 场内缴费,调 check-out 接口,
-        const method = unlicensed && endlessLoop || !vehicleNo ? unlicensedCarCheckout : checkOut
+        const method = unlicensed && endlessLoop && gateId || !vehicleNo ? unlicensedCarCheckout : checkOut
         const res = await method(vehicleNo, unlicensed, gateId);
         // const res = checkOutQHResponse
         if ( res?.parkingRecord?.totalFee <= 0 ) {