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

feat(KIP-15984): QHKC | 临时停车规则增加当日电子券使用上限

lock.qiu@kerryprops.com 1 жил өмнө
parent
commit
adfe8c1a51

+ 1 - 1
src/api/parking/index.js

@@ -42,7 +42,7 @@ export function orders(params) {
   return window.requestms.get(`/orders`, { params, loading: true });
 }
 
-// 1.20 用户优惠信息校验
+// 1.20 用户重新计算优惠信息校验
 export function calculateDiscount(params) {
   return window.requestms.post(`/parking/calculate-discount`, params, {
     loading: true,

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

@@ -247,7 +247,7 @@ export default {
         return
       }
       // 如果杭州、福州的使用券打到上限则不自动计算其余券是否可选
-      if ( this.checkedCouponList.length >= this.remainCoupons && (this.parkMallCode === 2 || this.parkMallCode === 8 || this.parkMallCode === 7 || this.parkMallCode === 9) ) {
+      if ( this.checkedCouponList.length >= this.remainCoupons && (this.parkMallCode === 2 || this.parkMallCode === 8 || this.parkMallCode === 7 || this.parkMallCode === 9 || this.parkMallCode === 5) ) {
         return
       }
       // console.log(292,this.couponList);

+ 2 - 2
src/store/order/coupon.js

@@ -20,8 +20,8 @@ export default {
       if([5].indexOf(checkOutResponse.parkInfo.parkMallCode) > -1 && !checkOutResponse.parkingRule.availableDiscountFee) {
         return commit('setCouponDesc', '当日优惠已达上限,不可用');
       }
-      // 电子券使用数量上限提示逻辑补充: 杭州, 合集
-      if([2, 7, 9].indexOf(checkOutResponse.parkInfo.parkMallCode) > -1 && !checkOutResponse.parkingRule.remainCoupons) {
+      // 电子券使用数量上限提示逻辑补充: 杭州, 合集, 深圳前海湾
+      if([2, 5, 7, 9].indexOf(checkOutResponse.parkInfo.parkMallCode) > -1 && !checkOutResponse.parkingRule.remainCoupons) {
         return commit('setCouponDesc', '优惠券已达当日使用上限,不可用');
       }
       if ( checkOutResponse?.discountInfo?.coupons?.length ) {