From 0f39d2cde16c60af808c60a3a2d852f5f577d653 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Fri, 13 Sep 2024 15:59:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B0=E6=A1=8C=E5=88=97=E8=A1=A8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=B8=85=E5=8F=B0=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/table/components/table-diancan.vue | 8 +++- src/views/table/table_list.vue | 41 +++++++++++++++----- 2 files changed, 38 insertions(+), 11 deletions(-) diff --git a/src/views/table/components/table-diancan.vue b/src/views/table/components/table-diancan.vue index f05bc37..11a7f64 100644 --- a/src/views/table/components/table-diancan.vue +++ b/src/views/table/components/table-diancan.vue @@ -1407,6 +1407,9 @@ export default { } }, "vipUser.id": async function (val) { + if(!this.table.tableId){ + return + } let masterId = this.order.masterId; if (!masterId) { const res = await this.getMasterId(); @@ -1822,6 +1825,9 @@ export default { // 获取取餐号 getMasterId() { + // if(!this.table.tableId){ + // return this.$message.error("请选择桌台"); + // } return $getMasterId({ tableId: this.table.tableId, vipUserId: this.vipUser.id, @@ -2417,7 +2423,6 @@ export default { // this.goods.list = []; this.loading = false; this.table = ""; - this.order.masterId = ""; this.order.list = []; this.order.query.page = 1; this.goods.total = 0; @@ -2435,6 +2440,7 @@ export default { this.createOrder.code = ""; this.note.content = ""; this.vipUser = { id: "" }; + this.order.masterId = ""; this.allPack = false; this.note.content = ""; this.isPrverOrder = false; diff --git a/src/views/table/table_list.vue b/src/views/table/table_list.vue index 90f1ef4..40696e8 100644 --- a/src/views/table/table_list.vue +++ b/src/views/table/table_list.vue @@ -113,10 +113,14 @@ 客座次数:{{ item.maxCapacity }}人 -->
- | - + ¥{{ item.totalAmount || 0 }}「{{ item.productNum }}件」 + |