Преглед изворни кода

Merge pull request #535 from tron/lock/release-3.7.0/SCRM-6145

feat(SCRM-6292\SCRM-6293): [DE][S端]停车场管理,深圳建设广场,优惠配置页面应该不展示电子券数量限制
John-Hong пре 1 година
родитељ
комит
2721625b22
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      src/pages/parkingFeeV2/mixins/parkingFeeCoupon.js

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

@@ -113,7 +113,7 @@ export default {
           // 验证剩余优惠券是否可勾选(无需验证:后端已计算可勾选的优惠券)
           this.newGroupedCouponData()
           this.setAllDisabled()
-          if (this.parkMallCode === 4 || this.parkMallCode === 6) {
+          if (this.parkMallCode === 4 || this.parkMallCode === 6  || this.parkMallCode === 5) {
             this.isDisabledByRule(this.couponList[0], 0, 'showMsg');
           }          
         })
@@ -225,8 +225,8 @@ export default {
           })
         }
       }
-      // 杭州、福州电子券选择上限判断
-      if ( (parkMallCode === 2 || parkMallCode === 8 || parkMallCode === 7 || parkMallCode === 9) && this.checkedCouponList.length >= this.remainCoupons ) {
+      // 杭州、福州、深圳前海 电子券选择上限判断
+      if ( (parkMallCode === 2 || parkMallCode === 8 || parkMallCode === 7 || parkMallCode === 9  || parkMallCode === 5) && this.checkedCouponList.length >= this.remainCoupons ) {
         this.couponList = this.couponList.map(( elm,iemi ) => {
           if ( !elm.disabled && this.checkedCouponList.indexOf(`coupon${ iemi }`) < 0 ) {
             elm.disabled = true
@@ -302,7 +302,7 @@ export default {
         });
       }
       // 电子券上限判断(杭州、福州)
-      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) ) {
         if ( showMsg ) return true
         return Toast({
           message: `电子券每天最多可使用${ this.maxOneDayCoupons }张`,