|
@@ -48,9 +48,12 @@ export default {
|
|
|
paperDiscountTime: (state) => state.order.paperDiscountTime,
|
|
|
paperDiscountFee: (state) => state.order.paperDiscountTime,
|
|
|
}),
|
|
|
+ enableConsumeNonSplit() {
|
|
|
+ return this.orderDetail.parkingRule.enableConsumeNonSplit
|
|
|
+ },
|
|
|
stepperMin() {
|
|
|
- // 如果是合集车场,不存在拆除,默认返回用户可使用的消费抵扣时间
|
|
|
- if (this.parkMallCode === 7) {
|
|
|
+ // 如果是合集车场,不存在拆分,默认返回用户可使用的消费抵扣时间
|
|
|
+ if (this.parkMallCode === 7 || this.enableConsumeNonSplit) {
|
|
|
return this.reduceHours || 0
|
|
|
}
|
|
|
// 如果不存消费减免,默认展示0
|
|
@@ -60,6 +63,18 @@ export default {
|
|
|
// 如果存在消费减免并且是可拆分的,则设置最低拆分单位是 1
|
|
|
return 1
|
|
|
},
|
|
|
+ stepperMax() {
|
|
|
+ // 如果是合集车场,不存在拆分,默认返回用户可使用的消费抵扣时间
|
|
|
+ if (this.parkMallCode === 7 || this.enableConsumeNonSplit) {
|
|
|
+ return this.reduceHours || 0
|
|
|
+ }
|
|
|
+ // 如果不存消费减免,默认展示0
|
|
|
+ if(JSON.stringify(this.consume) === '{}') {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ // 如果存在消费减免并且是可拆分的,则设置最低拆分单位是 1
|
|
|
+ return maxReduceDiscount
|
|
|
+ },
|
|
|
// maxReduceDiscount() {
|
|
|
// const {maxOneDayCoupons,maxConsumeTime,maxonedaydiscountFee,maxOneTimeDiscountTime,remainConsumeTime,hourPrice,availableDiscountFee,oneTimeLimitation,oneDayLimitation,maxOneDayDiscountFee} = this.orderDetail.parkingRule;
|
|
|
// let newMaxConsumeTime = maxConsumeTime
|
|
@@ -162,6 +177,10 @@ export default {
|
|
|
this.maxReduceDiscount = remainConsumeTime;
|
|
|
}
|
|
|
this.oldCheckedList = [...this.checkedList];
|
|
|
+ // 如果是杭州、沈阳可以选择
|
|
|
+ if (this.parkMallCode === 2 || this.parkMallCode === 4) {
|
|
|
+ this.isReduces = JSON.stringify(this.consume) === '{}';
|
|
|
+ }
|
|
|
},
|
|
|
setIsMemberDiscountDisabled() {
|
|
|
this.todayReduceDiscountMessage = '当日';
|