From b69a95c92c71e45010ae2f73048a51f56d39fac4 Mon Sep 17 00:00:00 2001 From: wwz <114797966@qq.com> Date: Thu, 19 Dec 2024 14:45:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=A0=E9=80=81=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tool/Instead/components/cart-item.vue | 1 - .../tool/Instead/components/dialogpackage.vue | 2 - .../Instead/components/transfertoPinpin.vue | 24 +- src/views/tool/Instead/index.vue | 1090 ++++------------- 4 files changed, 263 insertions(+), 854 deletions(-) diff --git a/src/views/tool/Instead/components/cart-item.vue b/src/views/tool/Instead/components/cart-item.vue index 6942436..8f269d4 100644 --- a/src/views/tool/Instead/components/cart-item.vue +++ b/src/views/tool/Instead/components/cart-item.vue @@ -187,7 +187,6 @@ export default { isActive() { const isSel = this.selIndex === this.index && this.placeNum === this.selPlaceNum; - console.log(isSel); return isSel ? "active" : ""; }, }, diff --git a/src/views/tool/Instead/components/dialogpackage.vue b/src/views/tool/Instead/components/dialogpackage.vue index 755f04a..d482124 100644 --- a/src/views/tool/Instead/components/dialogpackage.vue +++ b/src/views/tool/Instead/components/dialogpackage.vue @@ -65,7 +65,6 @@ export default { this.$set(this.listdata.proGroupVo, index, { ...this.listdata.proGroupVo[index], alertshow: this.listdata.proGroupVo[index].number != this.multipleSelection[index].length ? true : false }); }, confirm() { - console.log(listdata.proGroupVo) this.$emit("dialogpackageconfirm", this.listdata, this.multipleSelection); this.show = false; @@ -84,7 +83,6 @@ export default { return false; } this.disabledshow = true - console.log(this.listdata, this.multipleSelection); this.show = true; }, }, diff --git a/src/views/tool/Instead/components/transfertoPinpin.vue b/src/views/tool/Instead/components/transfertoPinpin.vue index 7ef5a7d..c180b11 100644 --- a/src/views/tool/Instead/components/transfertoPinpin.vue +++ b/src/views/tool/Instead/components/transfertoPinpin.vue @@ -10,7 +10,7 @@ 并桌 + :value="item.tableId"> @@ -78,7 +78,12 @@ export default { return { selectalllist: [], show: false, - itemdata: {}, + itemdata: { + list: [], + old: { + list: [], + } + }, list: [], masterId: "", currentTableId: "", @@ -110,7 +115,6 @@ export default { this.refcartSelection = val; }, async confirm() { - console.log(this.itemdata, this.multipleSelection); if (!this.targetTableId) { this.$message({ message: "请选择目标台桌!", @@ -134,11 +138,10 @@ export default { }); } let cartIds = [...this.multipleSelection, [...this.refcartSelection]]; - console.log(cartIds) await placeswitch({ masterId: this.masterId, orderId: this.itemdata.orderId, //当前台桌订单id 可选 - cartIds: this.isFull ? "" : [...cartIds.flatMap((subArray) => subArray.map((item) => item.cartId)),...tzf] , //转单的购物车商品 并桌时可不传 可选 + cartIds: this.isFull ? "" : [...cartIds.flatMap((subArray) => subArray.map((item) => item.cartId)), ...tzf], //转单的购物车商品 并桌时可不传 可选 isFull: this.isFull, //并台会将全部购物车商品转入,默认为false 可选 currentTableId: this.currentTableId, targetTableId: this.targetTableId, @@ -149,7 +152,7 @@ export default { }, open(item, masterId, currentTableId, originTableList) { // 订单信息,取餐码,用餐类型,桌台号id,台桌列表 - console.log(item, masterId, currentTableId, originTableList); + // console.log(item, masterId, currentTableId, originTableList); this.itemdata = item; this.masterId = masterId; //取餐码 this.currentTableId = currentTableId; //当前桌台id @@ -171,15 +174,6 @@ export default { const item = $status[key]; return item ? item.type : ""; }, - changeTable(item, index) { - console.log(item, index); - }, - searchInput(e) { - console.log(e); - // this.tableList = $originTableList.filter((v) => - // $strMatch(v.name, e.trim()) - // ); - }, }, }; diff --git a/src/views/tool/Instead/index.vue b/src/views/tool/Instead/index.vue index 908fcc6..d1b9d12 100644 --- a/src/views/tool/Instead/index.vue +++ b/src/views/tool/Instead/index.vue @@ -2,32 +2,18 @@