|
@@ -169,6 +169,12 @@ export default {
|
|
|
// 当存在待支付金额 或者 用户登陆
|
|
|
return !this.orderDetail?.parkingRecord?.totalFee || (JSON.stringify(this.member) !== '{}' && !this.orderDetail.parkInfo);
|
|
|
},
|
|
|
+ parkDiscountDesc() {
|
|
|
+ if(this.orderDetail.discountInfo.hasOwnProperty('parkDiscount')) {
|
|
|
+ return this.orderDetail.discountInfo.parkDiscount ? `已抵扣${this.orderDetail.discountInfo.parkDiscount}元` : '暂无优惠'
|
|
|
+ }
|
|
|
+ return ''
|
|
|
+ }
|
|
|
// integralDesc() {
|
|
|
// if (this.pointsTime > 0) {
|
|
|
// // 深圳特殊处理(单位:金额)
|
|
@@ -298,6 +304,10 @@ export default {
|
|
|
actualUsedDiscount: discountInfo?.usingTotalDiscount || 0, //实际优惠金额
|
|
|
},
|
|
|
};
|
|
|
+ // 第三方车场优惠
|
|
|
+ if(this.parkDiscountDesc && discountInfo.parkDiscount) {
|
|
|
+ usingTotalDiscount = usingTotalDiscount + discountInfo.parkDiscount
|
|
|
+ }
|
|
|
// 会员等级减免
|
|
|
if ( memberGrade?.length && memberGrade[0].discountFee > 0 && memberGrade[0].hasOwnProperty('selected')? memberGrade[0]?.selected : memberGrade[0]?.defaultSelected) {
|
|
|
const selected = memberGrade[0].hasOwnProperty('selected') ? memberGrade[0].selected : memberGrade[0].defaultSelected;
|