瀏覽代碼

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

john 2 年之前
父節點
當前提交
660d77d0c4
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;