From 7db7f0c463ce0ae91e1d27e45f04ffa79d0e61c5 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 2 Sep 2024 15:34:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95=20?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=8E=86=E5=8F=B2=E8=AE=A2=E5=8D=95=EF=BC=8C?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E8=AE=A2=E5=8D=95=E5=A2=9E=E5=8A=A0=E7=8A=B6?= =?UTF-8?q?=E6=80=81=EF=BC=8C=E5=BD=93=E7=8A=B6=E6=80=81=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E6=97=B6=E6=89=8D=E7=BB=A7=E7=BB=AD=E5=85=81=E8=AE=B8=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/table-diancan-oldList-back.vue | 3839 +++++++++++++++++ src/views/table/components/table-diancan.vue | 23 +- 2 files changed, 3855 insertions(+), 7 deletions(-) create mode 100644 src/views/table/components/table-diancan-oldList-back.vue diff --git a/src/views/table/components/table-diancan-oldList-back.vue b/src/views/table/components/table-diancan-oldList-back.vue new file mode 100644 index 0000000..50452fd --- /dev/null +++ b/src/views/table/components/table-diancan-oldList-back.vue @@ -0,0 +1,3839 @@ + + + + + + diff --git a/src/views/table/components/table-diancan.vue b/src/views/table/components/table-diancan.vue index f773164..98c7bfb 100644 --- a/src/views/table/components/table-diancan.vue +++ b/src/views/table/components/table-diancan.vue @@ -250,7 +250,7 @@ type="success" size="medium" :disabled="!order.list.length" - @click="toCreateOrder(false)" + @click="toCreateOrderDebounce(false)" > 仅下单 @@ -261,7 +261,7 @@ 去结账 @@ -373,14 +373,14 @@
存单
取单 @@ -1133,6 +1133,7 @@ export default { canUpdate: true, //下单 createOrder: { + status: "", discount: 1, form: {}, data: {}, @@ -1532,6 +1533,13 @@ export default { this.isCreateOrder = false; }, //生成订单 + toCreateOrderDebounce(isNowPay){ + if(this.createOrder.status!=''&&this.createOrder.status!='success'){ + return + } + this.createOrder.status='loading' + this.toCreateOrder(isNowPay) + }, async toCreateOrder(isNowPay = false) { console.log(this.order) console.log(this.order.orderId) @@ -1547,6 +1555,7 @@ export default { console.log(this.postPay); console.log(isNowPay); console.log(this.postPay && isNowPay); + this.createOrder.status='success' if (this.postPay && !isNowPay) { this.$notify({ title: "下单成功", @@ -1559,7 +1568,6 @@ export default { const { masterId } = await this.getMasterId(); this.masterId = masterId; } - this.isCreateOrder = true; }, @@ -2158,6 +2166,7 @@ export default { this.prveOrder.selIndex=-1 this.order.old.selIndex = -1; this.isCreateOrder = false; + this.createOrder.status="" this.note.content = ""; this.vipUser = { id: "" }; this.allPack = false; @@ -2175,10 +2184,10 @@ export default { masterId: this.masterId, tableId: this.table.tableId, }); + this.order.list = res.records; if (this.key) { - this.order.old.list = res.records; + // this.order.old.list = res.records; } else { - this.order.list = res.records; } this.order.total = res.total; },