|
@@ -170,8 +170,8 @@ 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}元` : '暂无优惠'
|
|
|
+ if(this.orderDetail.parkingRecord.hasOwnProperty('parkDiscount')) {
|
|
|
+ return this.orderDetail.parkingRecord.parkDiscount ? `已抵扣${this.orderDetail.parkingRecord.parkDiscount}元` : '暂无优惠'
|
|
|
}
|
|
|
return ''
|
|
|
}
|
|
@@ -304,10 +304,6 @@ 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;
|