|
@@ -48,12 +48,17 @@ export default {
|
|
paperDiscountTime: (state) => state.order.paperDiscountTime,
|
|
paperDiscountTime: (state) => state.order.paperDiscountTime,
|
|
paperDiscountFee: (state) => state.order.paperDiscountTime,
|
|
paperDiscountFee: (state) => state.order.paperDiscountTime,
|
|
}),
|
|
}),
|
|
- stepperDisabled() {
|
|
|
|
- // site优先级最高
|
|
|
|
- if(this.parkMallCode === 7) {
|
|
|
|
- return true
|
|
|
|
|
|
+ stepperMin() {
|
|
|
|
+ // 如果是合集车场,不存在拆除,默认返回用户可使用的消费抵扣时间
|
|
|
|
+ if (this.parkMallCode === 7) {
|
|
|
|
+ return this.reduceHours || 0
|
|
}
|
|
}
|
|
- return this.isReduces || !this.maxReduceDiscount
|
|
|
|
|
|
+ // 如果不存消费减免,默认展示0
|
|
|
|
+ if(JSON.stringify(this.consume) === '{}') {
|
|
|
|
+ return 0
|
|
|
|
+ }
|
|
|
|
+ // 如果存在消费减免并且是可拆分的,则设置最低拆分单位是 1
|
|
|
|
+ return 1
|
|
},
|
|
},
|
|
// maxReduceDiscount() {
|
|
// maxReduceDiscount() {
|
|
// const {maxOneDayCoupons,maxConsumeTime,maxonedaydiscountFee,maxOneTimeDiscountTime,remainConsumeTime,hourPrice,availableDiscountFee,oneTimeLimitation,oneDayLimitation,maxOneDayDiscountFee} = this.orderDetail.parkingRule;
|
|
// const {maxOneDayCoupons,maxConsumeTime,maxonedaydiscountFee,maxOneTimeDiscountTime,remainConsumeTime,hourPrice,availableDiscountFee,oneTimeLimitation,oneDayLimitation,maxOneDayDiscountFee} = this.orderDetail.parkingRule;
|
|
@@ -153,6 +158,7 @@ export default {
|
|
}
|
|
}
|
|
this.isReduces = this.consume.hasOwnProperty('selected') || this.consume.hasOwnProperty('defaultSelected') ? 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;
|
|
this.reduceHours = this.consume.hasOwnProperty('discountFee') ? this.consume.discountFee / this.orderDetail.parkingRule.hourPrice : this.consume.defaultDiscountTime;
|
|
|
|
+ console.log(161, this.reduceHours);
|
|
if (remainConsumeTime) {
|
|
if (remainConsumeTime) {
|
|
this.maxReduceDiscount = remainConsumeTime;
|
|
this.maxReduceDiscount = remainConsumeTime;
|
|
}
|
|
}
|