|
@@ -47,7 +47,7 @@ export default {
|
|
|
checkedTotal: (state) => state.order.checkedTotal,
|
|
|
parkMallCode: (state) => state.order.parkMallCode,
|
|
|
paperDiscountTime: (state) => state.order.paperDiscountTime,
|
|
|
- paperDiscountFee: (state) => state.order.paperDiscountTime,
|
|
|
+ paperDiscountFee: (state) => state.order.paperDiscountFee,
|
|
|
availableDiscountFee: (state) => state.order.availableDiscountFee,
|
|
|
}),
|
|
|
enableConsumeNonSplit() {
|
|
@@ -236,6 +236,10 @@ export default {
|
|
|
if (points.length && JSON.stringify(points[0]) !== "{}") {
|
|
|
this.remainPrice = this.parkMallCode !== 1 ? this.usingTotalDiscount - points[0].discountFee : this.usingTotalDiscount;
|
|
|
}
|
|
|
+ // 如果有纸质优惠券的话,paperDiscountFee
|
|
|
+ if (this.paperDiscountFee) {
|
|
|
+ this.remainPrice = this.remainPrice - this.paperDiscountFee;
|
|
|
+ }
|
|
|
this.memberGrade = { ...memberGrade[0] };
|
|
|
this.consume = { ...consume[0] };
|
|
|
if (JSON.stringify(this.memberGrade) !== '{}' && this.memberGrade && this.memberGrade.hasOwnProperty('selected') ? this.memberGrade.selected : this.memberGrade.defaultSelected) {
|
|
@@ -515,8 +519,8 @@ export default {
|
|
|
const remainConsumeTimeFee = remainConsumeTime * hourPrice;
|
|
|
|
|
|
// TODO: 统计纸质优惠券的总金额, usingTotalDiscount,才是用户当前订单使用的优惠总数
|
|
|
- this.isMember = !(this.usingTotalDiscount < (oneTimeLimitation ? maxOneTimeDiscountFee : maxOneDayDiscountFee) && this.memberLevelDiscount);
|
|
|
- this.isReduces = !(this.usingTotalDiscount < (oneTimeLimitation ? maxOneTimeDiscountFee : maxOneDayDiscountFee) && this.enableConsume);
|
|
|
+ this.isMember = !(this.usingTotalDiscount - this.paperDiscountFee < (oneTimeLimitation ? maxOneTimeDiscountFee : maxOneDayDiscountFee) && this.memberLevelDiscount);
|
|
|
+ this.isReduces = !(this.usingTotalDiscount - this.paperDiscountFee < (oneTimeLimitation ? maxOneTimeDiscountFee : maxOneDayDiscountFee) && this.enableConsume);
|
|
|
}
|
|
|
if (callback) callback();
|
|
|
},
|