|
@@ -186,12 +186,13 @@ const actions = {
|
|
|
// 处理电子优惠券相关逻辑
|
|
|
dispatch('couponRule', checkOutResponse);
|
|
|
// 纸质优惠券(hold)
|
|
|
- commit('setEnablePaperCoupons', checkOutResponse?.parkingRule?.enablePaperCoupons || []);
|
|
|
+ commit('setEnablePaperCoupons', checkOutResponse?.parkingRule?.enablePaperCoupons || false);
|
|
|
// 其他数据收集
|
|
|
commit('setUsingTotalDiscount', checkOutResponse?.discountInfo?.usingTotalDiscount || 0);
|
|
|
+ commit('setActualPayFee', checkOutResponse.parkingRecord?.actualPayFee);
|
|
|
+ } else {
|
|
|
+ commit('setActualPayFee', checkOutResponse.parkingRecord?.totalFeeInYuan);
|
|
|
}
|
|
|
- console.log('190190190190', checkOutResponse);
|
|
|
- commit('setActualPayFee', checkOutResponse.parkingRecord?.actualPayFee || checkOutResponse.parkingRecord?.totalFeeInYuan || 0.00);
|
|
|
},
|
|
|
// 停车优惠(首停、会员减免、消费减免)
|
|
|
getCheckedTotal({ commit, dispatch }, orderDetail) {
|