对接新版结算
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<div class="right" v-if="!userPayWait">
|
||||
<div class="amount">
|
||||
<span class="t">扫码支付</span>
|
||||
<span class="n">{{ props.money }}</span>
|
||||
<span class="n">{{ goodsStore.cartInfo.costSummary.finalPayAmount }}</span>
|
||||
</div>
|
||||
<div class="input">
|
||||
<el-input ref="inputRef" v-model="scanCode" :maxlength="18"
|
||||
@@ -100,6 +100,10 @@ const props = defineProps({
|
||||
payData: {
|
||||
type: Object,
|
||||
default: {}
|
||||
},
|
||||
chargeId: {
|
||||
type: [Number, String],
|
||||
default: "",
|
||||
}
|
||||
});
|
||||
|
||||
@@ -122,6 +126,11 @@ async function submitHandleAjax() {
|
||||
if (!scanCode.value || scanCode.value.length > 18) return;
|
||||
loading.value = true;
|
||||
|
||||
console.log('props.selecttype===', props.selecttype);
|
||||
console.log('props.payType===', props.payType);
|
||||
|
||||
// return;
|
||||
|
||||
// 判断订单是否锁定
|
||||
await goodsStore.isOrderLock({
|
||||
table_code: goodsStore.orderListInfo.tableCode
|
||||
@@ -147,7 +156,8 @@ async function submitHandleAjax() {
|
||||
shopId: store.shopInfo.id,
|
||||
shopUserId: props.orderId,
|
||||
amount: props.amount,
|
||||
authCode: scanCode.value
|
||||
authCode: scanCode.value,
|
||||
rechargeDetailId: props.chargeId,
|
||||
})
|
||||
} else {
|
||||
// 快捷收银
|
||||
|
||||
Reference in New Issue
Block a user