diff --git a/src/components/lodop/lodopPrintWork.js b/src/components/lodop/lodopPrintWork.js index f7a1633..4063ffd 100644 --- a/src/components/lodop/lodopPrintWork.js +++ b/src/components/lodop/lodopPrintWork.js @@ -113,8 +113,8 @@ export default (data) => { `; let tableBody = ""; - if (data.productDatalist && data.productDatalist.length) { - for (let item of data.productDatalist) { + if (data.productDataList && data.productDataList.length) { + for (let item of data.productDataList) { tableBody += ` diff --git a/src/components/payCard/payCard.vue b/src/components/payCard/payCard.vue index 26834c8..d93de70 100644 --- a/src/components/payCard/payCard.vue +++ b/src/components/payCard/payCard.vue @@ -28,7 +28,7 @@ {{ item.payName }} -
挂账 -
+
-->
付款:¥{{ money }}
@@ -255,11 +255,16 @@ const props = defineProps({ orderList: { type: Array, default: [] + }, + isPrint: { + type: [Number, String], + default: 1, } }); watch(props, () => { money.value = formatDecimal(props.amount) + payData.value.checkOrderPay.isPrint = props.isPrint }) const emit = defineEmits(["paySuccess", 'orderExpired']); @@ -383,14 +388,18 @@ async function payTypeChange(index, item) { SelectVipUserRef.value.show() } } - if (item.payType == "buyer") { + if (item.payType == "arrears") { + // 挂账支付 showBuyerHandle(); } - if (payActive.value != "buyer") { - if (payList.value[payActive.value].payType == "deposit") { - scanModalRef.value.show(); - } + if(item.payType == 'deposit'){ + scanModalRef.value.show(); } + // if (payActive.value != "buyer") { + // if (payList.value[payActive.value].payType == "deposit") { + + // } + // } } catch (error) { console.log(error); } @@ -406,7 +415,7 @@ async function confirmOrder() { payData.value.checkOrderPay.couponList = [...couponResList1.value.map(item => item.id), ...couponResList2.value.map(item => item.id)]; // await staffPermission("yun_xu_shou_kuan"); - if (payActive.value == "buyer") { + if (payList.value[payActive.value].payType == "arrears") { showBuyerHandle(); return } else if (payList.value[payActive.value].payType == "scanCode") { @@ -823,6 +832,7 @@ function reset() { roundAmount: 0, // 抹零金额 减免多少钱 pointsDiscountAmount: 0, // 积分抵扣金额(tb_points_basic_setting表) pointsNum: 0, // 使用的积分数量 (扣除各类折扣 enable_deduction后使用) + isPrint: props.isPrint }, }; } diff --git a/src/components/takeFoodCode.vue b/src/components/takeFoodCode.vue index 91cb30d..1b54ec8 100644 --- a/src/components/takeFoodCode.vue +++ b/src/components/takeFoodCode.vue @@ -7,7 +7,7 @@ {{ item }}
- . + .
0 @@ -17,7 +17,8 @@
@@ -25,6 +26,7 @@