From 0b3084a3f924c93f302fe2fb504bdd7efceb1130 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 21 Aug 2024 15:36:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95=E5=90=8E?= =?UTF-8?q?=E4=BB=98=E6=AC=BE=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/table/components/table-diancan.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/table/components/table-diancan.vue b/src/views/table/components/table-diancan.vue index a9d1c5f..c6a86aa 100644 --- a/src/views/table/components/table-diancan.vue +++ b/src/views/table/components/table-diancan.vue @@ -156,7 +156,7 @@ type="success" size="medium" :disabled="!order.list.length" - @click="toCreateOrder" + @click="toCreateOrder(false)" > 仅下单 @@ -167,7 +167,7 @@ 去结账 @@ -1291,15 +1291,19 @@ export default { this.isCreateOrder = false; }, //生成订单 - async toCreateOrder() { + async toCreateOrder(isNowPay=false) { const res = await $createOrder({ masterId: this.order.masterId || this.masterId, vipUserId: this.vipUser.id, tableId: this.table.tableId, note: this.note.content, + postPay:this.postPay }); //后付款 - if(this.postPay){ + console.log(this.postPay) + console.log(isNowPay) + console.log(this.postPay&&isNowPay) + if(this.postPay&&!isNowPay){ this.$notify({ title: "下单成功", type: "success",