Переглянути джерело

Temp parking | 福州 CRM 临停微服务接入 Frontend

john 2 роки тому
батько
коміт
4a5c7c6cee

+ 6 - 5
src/pages/parkingFee/mixins/parkingFeeCoupon.js

@@ -191,8 +191,8 @@ export default {
           })
         }
       }
-      // 杭州电子券选择上限判断
-      if ( parkMallCode === 2 && this.checkedCouponList.length === this.remainCoupons ) {
+      // 杭州、福州电子券选择上限判断
+      if ( (parkMallCode === 2 || parkMallCode === 8) && this.checkedCouponList.length === this.remainCoupons ) {
         this.couponList = this.couponList.map(( elm,iemi ) => {
           if ( !elm.disabled && this.checkedCouponList.indexOf(`coupon${ iemi }`) < 0 ) {
             elm.disabled = true
@@ -212,8 +212,8 @@ export default {
         })
         return
       }
-      // 如果杭州的使用券打到上限则不自动计算其余券是否可选
-      if ( this.checkedCouponList.length >= this.remainCoupons && this.parkMallCode === 2 ) {
+      // 如果杭州、福州的使用券打到上限则不自动计算其余券是否可选
+      if ( this.checkedCouponList.length >= this.remainCoupons && (this.parkMallCode === 2 || this.parkMallCode === 8) ) {
         return
       }
       console.log(292,this.couponList);
@@ -265,7 +265,8 @@ export default {
           icon: 'none',
         });
       }
-      if ( this.checkedCouponList.length >= this.remainCoupons && this.parkMallCode === 2 ) {
+      // 杭州、福州 电子券上限提示
+      if ( this.checkedCouponList.length >= this.remainCoupons && (this.parkMallCode === 2 || this.parkMallCode === 8) ) {
         if ( showMsg ) return true
         return Toast({
           className: 'top300',

+ 2 - 2
src/pages/parkingFee/mixins/parkingFeeDiscounts.js

@@ -177,8 +177,8 @@ export default {
         this.maxReduceDiscount = remainConsumeTime;
       }
       this.oldCheckedList = [...this.checkedList];
-      // 如果是杭州、沈阳可以选择
-      if (this.parkMallCode === 2 || this.parkMallCode === 4) {
+      // 如果是杭州、沈阳、福州可以选择
+      if (this.parkMallCode === 2 || this.parkMallCode === 4 || this.parkMallCode === 8) {
         this.isReduces = JSON.stringify(this.consume) === '{}';
       }
     },

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

@@ -36,7 +36,7 @@ export default  {
   // 无牌车逻辑
   unlicensedCar: '',
   // 车场相关
-  parkMallCode: '', // 车场唯一编号 0静安 1浦东 2杭州 3北京 4沈阳 5深圳 6天津
+  parkMallCode: '', // 车场唯一编号 0静安 1浦东 2杭州 3北京 4沈阳 5深圳 6天津 7合集 8福州
   /* 纸质优惠券相关 */
   paperCoupons: [], // 可选纸质优惠券数量
   paperCouponCount: 0, // 已选纸质择优惠券