|
@@ -66,7 +66,7 @@ export default {
|
|
|
return 1
|
|
|
},
|
|
|
stepperMax() {
|
|
|
- if (this.parkMallCode === 4) {
|
|
|
+ if (this.parkMallCode === 4 || this.parkMallCode === 6) {
|
|
|
// 如果存在消费减免并且是可拆分的,则设置最低拆分单位是 1
|
|
|
return this.maxReduceDiscount
|
|
|
}
|
|
@@ -189,7 +189,7 @@ export default {
|
|
|
},
|
|
|
checkedList(newVal, oldVal) {
|
|
|
// console.log(190, { newVal, oldVal });
|
|
|
- if (this.parkMallCode === 4 && this.isInit > 1) {
|
|
|
+ if ((this.parkMallCode === 4 || this.parkMallCode === 6) && this.isInit > 1) {
|
|
|
const { maxOneDayCoupons, maxonedaydiscountFee, maxOneTimeDiscountTime, remainConsumeTime, hourPrice, oneTimeLimitation, oneDayLimitation, maxOneDayDiscountFee } = this.orderDetail.parkingRule;
|
|
|
// 会员等级选中了
|
|
|
if (newVal.indexOf('member') > -1 && oldVal.indexOf('member') < 0) {
|
|
@@ -276,7 +276,7 @@ export default {
|
|
|
}, 300)
|
|
|
},
|
|
|
discountInit() {
|
|
|
- if(this.parkMallCode === 4 ) {
|
|
|
+ if(this.parkMallCode === 4 || this.parkMallCode === 6 ) {
|
|
|
const { maxConsumeTime, remainConsumeTime, hourPrice } = this.orderDetail.parkingRule;
|
|
|
const remainingLimitToIncrease = Math.abs(this.remainPrice - this.availableDiscountFee) / hourPrice
|
|
|
if(!remainingLimitToIncrease) {
|
|
@@ -357,23 +357,23 @@ export default {
|
|
|
this.remainPrice = this.memberGrade.discountFee + this.remainPrice;
|
|
|
// console.log(331, this.remainPrice);
|
|
|
// 沈阳
|
|
|
- if (this.parkMallCode === 4) {
|
|
|
+ if (this.parkMallCode === 4 || this.parkMallCode === 6) {
|
|
|
// console.log(322);
|
|
|
this.maxReduceDiscountInit();
|
|
|
}
|
|
|
} else if (!this.isMember) {
|
|
|
this.remainPrice = this.remainPrice - this.memberGrade.discountFee;
|
|
|
// 如果不是沈阳,重新计算优惠
|
|
|
- if (this.parkMallCode !== 4) {
|
|
|
+ if (this.parkMallCode !== 4 && this.parkMallCode !== 6) {
|
|
|
this.maxReduceDiscount = remainConsumeTime;
|
|
|
}
|
|
|
// 如果不是沈阳,重新计算优惠
|
|
|
- if (this.parkMallCode === 4) {
|
|
|
+ if (this.parkMallCode === 4 || this.parkMallCode === 6) {
|
|
|
this.maxReduceDiscountInit();
|
|
|
}
|
|
|
}
|
|
|
// 如果不是沈阳
|
|
|
- if (this.parkMallCode !== 4) {
|
|
|
+ if (this.parkMallCode !== 4 && this.parkMallCode !== 6) {
|
|
|
const [isCrossMessage = false, maxReduceDiscount = this.maxReduceDiscount] = this.crossMessage();
|
|
|
if (isCrossMessage) {
|
|
|
this.checkedList = this.checkedList.filter((elm) => elm !== 'member');
|
|
@@ -388,19 +388,19 @@ export default {
|
|
|
if (this.checkedList.indexOf('reduces') > -1) {
|
|
|
// this.remainPrice = hourPrice + this.remainPrice;
|
|
|
// 如果不是沈阳,重新计算计算最大上限
|
|
|
- if (this.parkMallCode !== 4) {
|
|
|
+ if (this.parkMallCode !== 4 && this.parkMallCode !== 6) {
|
|
|
this.remainPrice = hourPrice + this.remainPrice;
|
|
|
this.maxReduceDiscount = remainConsumeTime > maxOneTimeDiscountFee / hourPrice ? maxOneTimeDiscountFee / hourPrice : remainConsumeTime;
|
|
|
}
|
|
|
} else {
|
|
|
// this.remainPrice = this.remainPrice - hourPrice;
|
|
|
// 如果不是沈阳,重新计算计算最大上限
|
|
|
- if (this.parkMallCode !== 4) {
|
|
|
+ if (this.parkMallCode !== 4 && this.parkMallCode !== 6) {
|
|
|
this.remainPrice = this.remainPrice - hourPrice;
|
|
|
this.maxReduceDiscount = remainConsumeTime > maxOneTimeDiscountFee / hourPrice ? maxOneTimeDiscountFee / hourPrice : remainConsumeTime;
|
|
|
}
|
|
|
}
|
|
|
- if (this.parkMallCode !== 4) {
|
|
|
+ if (this.parkMallCode !== 4 && this.parkMallCode !== 6) {
|
|
|
const [isCrossMessage = false, maxReduceDiscount = 0] = this.crossMessage();
|
|
|
if (isCrossMessage) {
|
|
|
this.remainPrice = this.remainPrice - maxReduceDiscount * hourPrice;
|