|
@@ -1,4 +1,4 @@
|
|
-import checkOutQHResponse from "@/api/mockData/checkout.qh15.response.json";
|
|
|
|
|
|
+import checkOutQHResponse from "@/api/mockData/checkout.pd14.response.json";
|
|
import { checkOut,calculateDiscount,ordersAndPrepay,currentUnlicensedPlate,unlicensedCarCheckIn,unlicensedCarCheckout } from '@/api/parking';
|
|
import { checkOut,calculateDiscount,ordersAndPrepay,currentUnlicensedPlate,unlicensedCarCheckIn,unlicensedCarCheckout } from '@/api/parking';
|
|
import state from "@/store/order/state";
|
|
import state from "@/store/order/state";
|
|
import mutations from "@/store/order/mutations";
|
|
import mutations from "@/store/order/mutations";
|
|
@@ -69,6 +69,8 @@ export default {
|
|
commit('setParkMallCode', checkOutResponse.parkInfo.parkMallCode)
|
|
commit('setParkMallCode', checkOutResponse.parkInfo.parkMallCode)
|
|
commit('setOrderDetail',checkOutResponse);
|
|
commit('setOrderDetail',checkOutResponse);
|
|
const isShowDiscounts = checkOutResponse?.parkingRule?.enableCoupon || false;
|
|
const isShowDiscounts = checkOutResponse?.parkingRule?.enableCoupon || false;
|
|
|
|
+ // 纸质优惠券
|
|
|
|
+ dispatch('paperCouponRule')
|
|
// 是否展示优惠
|
|
// 是否展示优惠
|
|
commit('setIsShowDiscounts',isShowDiscounts);
|
|
commit('setIsShowDiscounts',isShowDiscounts);
|
|
if ( checkOutResponse.parkingRule ) {
|
|
if ( checkOutResponse.parkingRule ) {
|
|
@@ -83,8 +85,6 @@ export default {
|
|
// 电子优惠券:是否启用
|
|
// 电子优惠券:是否启用
|
|
// 处理电子优惠券相关逻辑
|
|
// 处理电子优惠券相关逻辑
|
|
dispatch('couponRule',checkOutResponse);
|
|
dispatch('couponRule',checkOutResponse);
|
|
- // 纸质优惠券(hold)
|
|
|
|
- commit('setEnablePaperCoupons',checkOutResponse?.parkingRule?.enablePaperCoupons || false);
|
|
|
|
// 其他数据收集
|
|
// 其他数据收集
|
|
commit('setUsingTotalDiscount',checkOutResponse?.discountInfo?.usingTotalDiscount || 0);
|
|
commit('setUsingTotalDiscount',checkOutResponse?.discountInfo?.usingTotalDiscount || 0);
|
|
// console.log(191, checkOutResponse?.parkingRecord.hasOwnProperty(actualPayFee));
|
|
// console.log(191, checkOutResponse?.parkingRecord.hasOwnProperty(actualPayFee));
|