From 727d79a2539669a1ecfc6ca2ebf4bace7c4da1e4 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 21 Oct 2024 11:05:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E5=AE=A2=E4=B8=8B?= =?UTF-8?q?=E5=8D=95=E6=9D=83=E9=99=90=E6=A0=A1=E9=AA=8C=E5=90=8E=E6=97=A0?= =?UTF-8?q?=E5=8F=8D=E5=BA=94=20=E5=A2=9E=E5=8A=A0=E6=A1=8C=E5=8F=B0?= =?UTF-8?q?=E7=BB=93=E8=B4=A6=E6=9D=83=E9=99=90=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/table/table_list.vue | 8 +++++++- src/views/tool/Instead/index.vue | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/table/table_list.vue b/src/views/table/table_list.vue index bbba7d4..48b46e6 100644 --- a/src/views/table/table_list.vue +++ b/src/views/table/table_list.vue @@ -371,13 +371,19 @@ export default { this.tbShopTableGet(); }, async diancanShow(item, key) { + if(key=='isPayOrder'){ + const canShoukuan=await hasPermission('允许收款') + if(!canShoukuan){ + return + } + } const canXiadan=await hasPermission('允许下单') if(!canXiadan){ return } //key isAddGoods 加菜 - //key isPayOrder结账 + //key isPayOrder 结账 this.selTable = item; if (this.shopInfo.isTableFee) { //免餐位费 diff --git a/src/views/tool/Instead/index.vue b/src/views/tool/Instead/index.vue index 4cd3fa7..e158bf9 100644 --- a/src/views/tool/Instead/index.vue +++ b/src/views/tool/Instead/index.vue @@ -1741,10 +1741,13 @@ export default { methods: { async shoukuanClick() { this.canShoukuan = await hasPermission("允许收款"); + return this.canShoukuan; }, // 打开页面 async xiadanClick() { this.canXiadan = await hasPermission("允许下单"); + return this.canXiadan; + }, changeOrderExtraSel(index, canChangeNumber, placeNum) { // console.log(index,canChangeNumber,placeNum)