Browse Source

fix(SCRM-3864): 临时停车,用户当天有2个小时得满赠优惠,进入查询页面以后,取消掉消费减免勾选,减免得小时会不显示

john 2 năm trước cách đây
mục cha
commit
660d77d0c4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/pages/parkingFee/mixins/parkingFeeDiscounts.js

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

@@ -146,7 +146,7 @@ export default {
         // 如果存在拆分逻辑的话
         // this.consume.
       }
-      this.isReduces = this.consume.hasOwnProperty('selected') ? false : true;
+      this.isReduces = this.consume.hasOwnProperty('selected') || this.consume.hasOwnProperty('defaultSelected') ? false : true;
       this.reduceHours = this.consume.hasOwnProperty('discountFee') ? this.consume.discountFee / this.orderDetail.parkingRule.hourPrice : this.consume.defaultDiscountTime;
       if (maxConsumeTime) {
         this.maxReduceDiscount = maxConsumeTime;