From 4fd8d61756f766947fd24fc9fc8a250289337a37 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Sat, 14 Sep 2024 14:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20=E5=BD=93=E5=8F=B0=E6=A1=8C=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E9=97=B2=E6=97=B6=E7=AC=AC=E4=B8=80=E6=AC=A1=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=B0=B1=E9=A4=90=E4=BA=BA=E6=95=B0=EF=BC=8C=E5=BD=93=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=BA=BA=E6=95=B0=E8=AF=B7=E6=B1=82=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E6=97=B6=E5=86=8D=E8=AF=B7=E6=B1=82=E8=B4=AD=E7=89=A9=E8=BD=A6?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/table/components/keyboard.vue | 1 - .../table-diancan-components/choose-diners-number.vue | 6 +----- src/views/table/components/table-diancan.vue | 7 ++++++- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/table/components/keyboard.vue b/src/views/table/components/keyboard.vue index 079d139..8436f1f 100644 --- a/src/views/table/components/keyboard.vue +++ b/src/views/table/components/keyboard.vue @@ -97,7 +97,6 @@ export default { this.number = newval; }, number(newval) { - console.log(newval); this.$emit("input", newval); }, }, diff --git a/src/views/table/components/table-diancan-components/choose-diners-number.vue b/src/views/table/components/table-diancan-components/choose-diners-number.vue index 9fec008..7e8231a 100644 --- a/src/views/table/components/table-diancan-components/choose-diners-number.vue +++ b/src/views/table/components/table-diancan-components/choose-diners-number.vue @@ -53,13 +53,10 @@ export default { }, watch: { number(newval) { - console.log(newval) - console.log(this.max) if (newval >this.max) { this.number = this.max; this.$message("最多只能选择"+this.max+"位就餐人数"); } - console.log(newval); // 使用正则表达式匹配正整数 const regex = /^[1-9]\d*$/; // 如果输入的值不是正整数,则将其设置为上一个有效值 @@ -76,14 +73,13 @@ export default { this.number = ""; }, confirm() { - console.log(this.number) - console.log(this.max) if (this.number >this.max) { return this.$message("最多只能选择"+this.max+"位就餐人数"); } if (!this.number) { return this.$message("请选择就餐人数"); } + console.log(this.number) this.$emit("confirm", this.number); this.close(); }, diff --git a/src/views/table/components/table-diancan.vue b/src/views/table/components/table-diancan.vue index 84d5750..3f188c9 100644 --- a/src/views/table/components/table-diancan.vue +++ b/src/views/table/components/table-diancan.vue @@ -2738,7 +2738,12 @@ export default { // if(this.key!=='isPayOrder'){ // this.getCart(); // } - this.changePerpole() + // this.changePerpole() + await $choseCount({ + masterId: this.masterId, + tableId: this.table.tableId, + num: this.perpole, + }) this.getCart(); this.getGoods(); this.getCategory();