瀏覽代碼

feat(SCRM-6292\SCRM-6293): [DE][S端]停车场管理,深圳建设广场,优惠配置页面应该不展示电子券数量限制

lock.qiu@kerryprops.com 1 年之前
父節點
當前提交
bcbdd9a555
共有 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 }张`,