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 01/11] =?UTF-8?q?=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=BD=93=E5=8F=B0=E6=A1=8C=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E9=97=B2=E6=97=B6=E7=AC=AC=E4=B8=80=E6=AC=A1=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=B0=B1=E9=A4=90=E4=BA=BA=E6=95=B0=EF=BC=8C=E5=BD=93?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=BA=BA=E6=95=B0=E8=AF=B7=E6=B1=82=E7=BB=93?= =?UTF-8?q?=E6=9D=9F=E6=97=B6=E5=86=8D=E8=AF=B7=E6=B1=82=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6=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(); From 5f1688173fd9bfbb352068ec0cfe61580102c67f Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 19 Sep 2024 10:53:03 +0800 Subject: [PATCH 02/11] =?UTF-8?q?=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B0=B1=E9=A4=90=E7=B1=BB=E5=9E=8B=E5=88=87?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/table.js | 16 +- src/views/table/components/table-diancan.vue | 208 ++++++++++++++----- src/views/table/table_list.vue | 18 ++ 3 files changed, 193 insertions(+), 49 deletions(-) diff --git a/src/api/table.js b/src/api/table.js index 88e39e2..9a99460 100644 --- a/src/api/table.js +++ b/src/api/table.js @@ -1,6 +1,11 @@ // 桌台管理 import request from "@/utils/request"; - +//就餐形式,默认堂食后付费 +const useType='dine-in-after' +function getUseType(){ + const type=localStorage.getItem("useType") + return type?type:useType +} /** * 台桌列表 * @returns @@ -133,6 +138,7 @@ export function getCart(params) { method: "get", params:{ shopId: localStorage.getItem("shopId"), + useType: getUseType(), ...params } }); @@ -162,6 +168,7 @@ export function addCart(data) { method: "post", data:{ shopId: localStorage.getItem("shopId"), + useType: getUseType(), ...data } }); @@ -177,6 +184,7 @@ export function $clearCart(data) { method: "delete", data:{ shopId: localStorage.getItem("shopId"), + useType: getUseType(), ...data } }); @@ -192,6 +200,7 @@ export function $removeCart(data) { method: "delete", data:{ shopId: localStorage.getItem("shopId"), + useType: getUseType(), ...data } }); @@ -234,6 +243,7 @@ export function $getMasterId(data) { method: "get", params:{ shopId: localStorage.getItem("shopId"), + useType: getUseType(), ...data } }); @@ -262,6 +272,7 @@ export function $createOrder(data) { method: "post", data:{ shopId: localStorage.getItem("shopId"), + useType: getUseType(), ...data } }); @@ -278,6 +289,7 @@ export function $cacheOrder(data) { method: "post", data:{ shopId: localStorage.getItem("shopId"), + useType: getUseType(), ...data } }); @@ -293,6 +305,7 @@ export function $getCacheOrder(data) { method: "get", params:{ shopId: localStorage.getItem("shopId"), + useType: getUseType(), ...data } }); @@ -362,6 +375,7 @@ export function $choseCount(data) { method: "put", data:{ shopId: localStorage.getItem("shopId"), + useType: getUseType(), ...data } }); diff --git a/src/views/table/components/table-diancan.vue b/src/views/table/components/table-diancan.vue index 3f188c9..df18fdf 100644 --- a/src/views/table/components/table-diancan.vue +++ b/src/views/table/components/table-diancan.vue @@ -12,7 +12,8 @@
{{ title }}
- + + + + {{ postPay ? "后付费" : "先付费" }} + + +
+ + {{ item.name }} + +
-
- 就餐人数:{{ perpole }}位 - -
+ +
{ const bTotal = b.info - .filter((v) => v.isGift !== "true"&& v.status !== "return") + .filter((v) => v.isGift !== "true" && v.status !== "return") .reduce((prve, cur) => { return prve + cur.number * cur.salePrice; }, 0); @@ -1329,7 +1376,7 @@ export default { .reduce((a, b) => { return a + b.number * b.salePrice; }, 0); - return (oldPrice + price+this.order.seatFee.totalAmount*1).toFixed(2); + return (oldPrice + price + this.order.seatFee.totalAmount * 1).toFixed(2); }, allNumber() { const oldNumber = this.order.old.list.reduce((a, b) => { @@ -1374,8 +1421,12 @@ export default { }, }, watch: { - perpole(newval,oldval) { - if (!oldval&&newval&&this.table.tableId) { + "useTypes.sel": function (newval, oldval) { + this.setPostPay(); + this.setUseType(); + }, + perpole(newval, oldval) { + if (!oldval && newval && this.table.tableId) { // $choseCount({ // masterId: this.masterId, // tableId: this.table.tableId, @@ -1386,9 +1437,9 @@ export default { } }, table(oldval, newval) { - if(oldval&&newval) { - this.onTableChange() - } + if (oldval && newval) { + this.onTableChange(); + } // if (oldval && newval) { // console.log(oldval, newval); // $choseTable({ @@ -1407,8 +1458,8 @@ export default { } }, "vipUser.id": async function (val) { - if(!this.table.tableId){ - return + if (!this.table.tableId) { + return; } let masterId = this.order.masterId; if (!masterId) { @@ -1533,17 +1584,60 @@ export default { // this.getCategory(); // this.refToggle('refScanCode',true) // this.refToggle("refDiscount", true); + this.getShopInfo(); }, methods: { + //设置用餐类型 + setUseType() { + // 自取 + if (this.useTypes.sel == "takeout") { + localStorage.setItem("useType", "takeout"); + } else { + //堂食 + localStorage.setItem( + "useType", + `dine-in-${this.postPay ? "after" : "before"}` + ); + } + }, + //设置先付后付 + setPostPay() { + // 自取 + // postPay true 后付 false 先付 + + if (this.useTypes.sel == "takeout") { + this.postPay = false; + } else { + //munchies 先付 restaurant 后付 + this.postPay = this.shopInfo.registerType == "munchies" ? false : true; + } + }, + //获取店铺信息 + async getShopInfo() { + try { + const shopId = localStorage.getItem("shopId"); + const res = await tbShopInfo(shopId); + this.shopInfo = res; + this.setPostPay(); + this.setUseType(); + } catch (error) {} + }, + //更改就餐方式 + changeUseType(type) { + if(this.order.old.list.length > 0){ + return this.$message('下单后不支持更改就餐方式'); + } + this.useTypes.sel = type; + }, //更改就餐人数 - changePerpole(){ + changePerpole() { $choseCount({ - masterId: this.masterId, - tableId: this.table.tableId, - num: this.perpole, - }).then(res=>{ - this.order.seatFee=res - }) + masterId: this.masterId, + tableId: this.table.tableId, + num: this.perpole, + }).then((res) => { + this.order.seatFee = res; + }); }, //台桌变化时重新获取取餐号、购物车数据,如果是正在结账状态,创建订单到待支付页面 async onTableChange() { @@ -1555,11 +1649,11 @@ export default { } }, // 获取台桌详情 - async getTableDetail(){ - const res=await tbShopTableGet({ - qrcode:this.table.tableId - }) - console.log(res) + async getTableDetail() { + const res = await tbShopTableGet({ + qrcode: this.table.tableId, + }); + console.log(res); }, //打印制作单 printOrder() { @@ -1587,7 +1681,7 @@ export default { tableId: this.table.tableId, }); this.order.selGoods.status = "return"; - this.order.old.selIndex=-1; + this.order.old.selIndex = -1; console.log(this.order.selGoods); }, // 台桌列表 @@ -1596,7 +1690,7 @@ export default { const { content, total } = await tbShopTableGet({ shopId: localStorage.getItem("shopId"), }); - this.tableList = content.filter(v=>v.status!='closed'); + this.tableList = content.filter((v) => v.status != "closed"); } catch (error) { console.log(error); } @@ -1607,8 +1701,7 @@ export default { }, chooseDinersNumberConfirm(e) { this.perpole = e; - this.changePerpole() - + this.changePerpole(); }, //扫码支付弹窗确认 scanPayConfirm(code) { @@ -2443,7 +2536,7 @@ export default { this.order.selPlaceNum = -1; this.order.old.list = []; this.order.selGoods = ""; - this.order.seatFee={totalAmount:0}//餐位费 + this.order.seatFee = { totalAmount: 0 }; //餐位费 this.prveOrder.list = []; this.prveOrder.selIndex = -1; this.order.old.selIndex = -1; @@ -2461,21 +2554,22 @@ export default { this.key = ""; this.order.orderId = ""; this.perpole = ""; + this.useTypes.sel='dine-in' }, //获取购物车数据 async getCart() { - console.log(this.table) + console.log(this.table); const res = await getCart({ ...this.order.query, masterId: this.masterId, tableId: this.table.tableId, }); - this.order.seatFee=res.seatFee?res.seatFee:this.order.seatFee; - this.perpole=res.seatFee?res.seatFee.totalNumber:1; - const nowCart=res.records.find((v) => v.placeNum == 0); - this.order.list=nowCart?nowCart.info:[]; - const oldCart=res.records.filter((v) => v.placeNum != 0); - this.order.old.list=oldCart?oldCart:[]; + this.order.seatFee = res.seatFee ? res.seatFee : this.order.seatFee; + this.perpole = res.seatFee ? res.seatFee.totalNumber : 1; + const nowCart = res.records.find((v) => v.placeNum == 0); + this.order.list = nowCart ? nowCart.info : []; + const oldCart = res.records.filter((v) => v.placeNum != 0); + this.order.old.list = oldCart ? oldCart : []; // if (this.key|| res.records.length) { // this.order.old.list = res.records; // } else { @@ -2739,11 +2833,16 @@ export default { // this.getCart(); // } // this.changePerpole() - await $choseCount({ + + if (!this.shopInfo.isTableFee) { + //不免餐位费 + await $choseCount({ masterId: this.masterId, tableId: this.table.tableId, num: this.perpole, - }) + }); + } + this.getCart(); this.getGoods(); this.getCategory(); @@ -2827,6 +2926,19 @@ input[type="number"]::-webkit-outer-spin-button { ::v-deep .el-button--text { // color: #000; } +::v-deep .meal_box .el-button-group { + width: 100%; + display: flex; +} +::v-deep .meal_box .el-button-group .el-button { + flex: 1; +} +::v-deep .meal_box .el-button-group .active { + border: 1px solid #409eff !important; + color: #409eff !important; + background: rgba(24, 144, 255, 0.1) !important; + z-index: 10; +} ::v-deep .number-box .el-input__inner { border: none; padding: 0 4px; diff --git a/src/views/table/table_list.vue b/src/views/table/table_list.vue index ae6dd4b..d4fc486 100644 --- a/src/views/table/table_list.vue +++ b/src/views/table/table_list.vue @@ -223,6 +223,7 @@ import downloadTableCode from "./components/downloadTableCode"; import tableDiancan from "./components/table-diancan.vue"; import $status from "./status.js"; import chooseDinersNumber from "./components/table-diancan-components/choose-diners-number.vue"; +import { tbShopInfo } from "@/api/user"; import { tbShopTableGet, @@ -251,10 +252,13 @@ export default { status: $status, selTable: "", //当前选中的桌台 areaMap: {}, + shopInfo:{}, }; }, mounted() { this.tbShopAreaGet(); + this.getShopInfo() + }, filters: { formatTime(time) { @@ -262,6 +266,15 @@ export default { }, }, methods: { + //获取店铺信息 + async getShopInfo() { + try { + const shopId = localStorage.getItem("shopId"); + const res = await tbShopInfo(shopId); + this.shopInfo=res + console.log(res) + } catch (error) {} + }, // 清台 cleanTableHandle(item) { this.$confirm("确定要清台:"+item.name, "提示", { @@ -308,6 +321,11 @@ export default { //key isAddGoods 加菜 //key isPayOrder结账 this.selTable = item; + if(this.shopInfo.isTableFee){ + //免餐位费 + this.$refs.diancan.open(item, key, ''); + return + } const num = item.useNum || 0; if (item.useNum <= 0) { return this.$refs.refChooseDinersNumber.open(); From d6836d240cf2d6ffb85728ad710721d3402d6640 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 19 Sep 2024 16:38:45 +0800 Subject: [PATCH 03/11] =?UTF-8?q?=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E8=A7=84=E6=A0=BC=E5=95=86=E5=93=81?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=A6=81=E7=94=A8=E9=97=AE=E9=A2=98=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=A8=E9=A4=90=E6=A8=A1=E5=BC=8F=E5=88=87?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/table.js | 11 +++++++++++ src/views/table/components/table-diancan.vue | 19 +++++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/api/table.js b/src/api/table.js index 9a99460..f8b5e90 100644 --- a/src/api/table.js +++ b/src/api/table.js @@ -417,3 +417,14 @@ export function $printDishes(data) { }); } +// 就餐模式切换 +export function $changeUseType(data) { + return request({ + url: '/api/place/choseModel', + method: "put", + data:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} diff --git a/src/views/table/components/table-diancan.vue b/src/views/table/components/table-diancan.vue index df18fdf..d3a624e 100644 --- a/src/views/table/components/table-diancan.vue +++ b/src/views/table/components/table-diancan.vue @@ -1122,6 +1122,7 @@ import { $returnCart, $printOrder, tbShopTableGet, + $changeUseType } from "@/api/table"; import { tbShopCategoryGet } from "@/api/shop"; import { @@ -1422,6 +1423,7 @@ export default { }, watch: { "useTypes.sel": function (newval, oldval) { + console.log(newval) this.setPostPay(); this.setUseType(); }, @@ -1587,18 +1589,30 @@ export default { this.getShopInfo(); }, methods: { + changeOrderUseType(useType){ + if(useType&&this.order.list.length){ + $changeUseType({ + useType, + cartIds: this.order.list.map((v) => v.id), + }) + } + }, //设置用餐类型 setUseType() { // 自取 + let useType='takeout' if (this.useTypes.sel == "takeout") { localStorage.setItem("useType", "takeout"); } else { //堂食 + useType=`dine-in-${this.postPay ? "after" : "before"}` localStorage.setItem( "useType", - `dine-in-${this.postPay ? "after" : "before"}` + useType ); } + this.changeOrderUseType(useType) + }, //设置先付后付 setPostPay() { @@ -1627,6 +1641,7 @@ export default { if(this.order.old.list.length > 0){ return this.$message('下单后不支持更改就餐方式'); } + console.log(type); this.useTypes.sel = type; }, //更改就餐人数 @@ -2487,7 +2502,7 @@ export default { .filter((v) => v.specSnap.match(i)) .every((v) => { // return isCanBuy(v,this.selGoods.data.isStock) - return isCanBuy(v); + return !isCanBuy(v); }); } } From ce9799b2904d0989712f5d958d1c255c144aba4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Fri, 20 Sep 2024 15:02:26 +0800 Subject: [PATCH 04/11] =?UTF-8?q?=E8=80=97=E6=9D=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../invoicing/components/consumableList.vue | 3 + .../invoicing/consumable/cons_record.vue | 242 +++++++++++++----- .../invoicing/consumable/information.vue | 51 ++-- src/views/invoicing/consumable/type.vue | 47 ++-- src/views/invoicing/operating_record.vue | 66 ++++- src/views/invoicing/operation_in.vue | 44 ++-- 6 files changed, 330 insertions(+), 123 deletions(-) diff --git a/src/views/invoicing/components/consumableList.vue b/src/views/invoicing/components/consumableList.vue index 7560558..d5e0db7 100644 --- a/src/views/invoicing/components/consumableList.vue +++ b/src/views/invoicing/components/consumableList.vue @@ -80,6 +80,9 @@ export default { this.resetSearchForm = { ...this.searchForm } }, methods: { + reset(){ + this.$refs.table.clearSelection() + }, onInput: _.debounce(function (event) { //防抖请求 this.getTableData() }, 500), diff --git a/src/views/invoicing/consumable/cons_record.vue b/src/views/invoicing/consumable/cons_record.vue index a9f3c9e..7babf21 100644 --- a/src/views/invoicing/consumable/cons_record.vue +++ b/src/views/invoicing/consumable/cons_record.vue @@ -1,6 +1,6 @@ - + - - + + @@ -118,19 +122,20 @@ - - - + + + \ No newline at end of file + + \ No newline at end of file From 3d75bbaaaed867f5e69e38288d6f87133cc4683d Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 23 Sep 2024 15:58:48 +0800 Subject: [PATCH 08/11] =?UTF-8?q?=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=83=A8=E5=88=86=E8=AF=B7=E6=B1=82=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/table/components/table-diancan.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/table/components/table-diancan.vue b/src/views/table/components/table-diancan.vue index acd9501..6bd33bf 100644 --- a/src/views/table/components/table-diancan.vue +++ b/src/views/table/components/table-diancan.vue @@ -1266,7 +1266,7 @@ export default { }, query: { page: 1, - size: 20, + size: 200, }, number: 1, cacheNumber: 1, From fc9b1dfda30668787f038867a48e3a58319cc9d4 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 23 Sep 2024 17:22:01 +0800 Subject: [PATCH 09/11] =?UTF-8?q?=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=B2=E5=BC=80=E5=A4=AA=E5=8F=B0=E6=A1=8C?= =?UTF-8?q?=E5=B0=B1=E9=A4=90=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/table/components/table-diancan.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/table/components/table-diancan.vue b/src/views/table/components/table-diancan.vue index 6bd33bf..1b5dcae 100644 --- a/src/views/table/components/table-diancan.vue +++ b/src/views/table/components/table-diancan.vue @@ -2839,6 +2839,10 @@ export default { }, async open(item, key, perpoleNumber) { this.table = item; + if(item.useType){ + localStorage.setItem("useType",item.useType); + this.useTypes.sel = item.useType=='takeout'?item.useType:item.useType.replace(/-after|-before/g,''); + } this.key = key; if (this.key == "isPayOrder") { this.isCreateOrder = true; From 148ac92e80cfcd9bf8be13c11f269dca6499a065 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 23 Sep 2024 17:23:24 +0800 Subject: [PATCH 10/11] =?UTF-8?q?=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=B2=E5=BC=80=E5=8F=B0=E5=8F=B0=E6=A1=8C?= =?UTF-8?q?=E5=B0=B1=E9=A4=90=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/table/components/table-diancan.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/table/components/table-diancan.vue b/src/views/table/components/table-diancan.vue index 6bd33bf..1b5dcae 100644 --- a/src/views/table/components/table-diancan.vue +++ b/src/views/table/components/table-diancan.vue @@ -2839,6 +2839,10 @@ export default { }, async open(item, key, perpoleNumber) { this.table = item; + if(item.useType){ + localStorage.setItem("useType",item.useType); + this.useTypes.sel = item.useType=='takeout'?item.useType:item.useType.replace(/-after|-before/g,''); + } this.key = key; if (this.key == "isPayOrder") { this.isCreateOrder = true; From c48b9f4ab3acf1a31623c64b8525cb34dc90661d Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Tue, 24 Sep 2024 13:47:07 +0800 Subject: [PATCH 11/11] =?UTF-8?q?=E5=91=98=E5=B7=A5=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lineUp/index.vue | 4 ++-- src/views/shop/components/addStaff.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/lineUp/index.vue b/src/views/lineUp/index.vue index c75ef6c..5ca0061 100644 --- a/src/views/lineUp/index.vue +++ b/src/views/lineUp/index.vue @@ -23,8 +23,8 @@ 叫号记录
-
-
+
+
  • 用户
    diff --git a/src/views/shop/components/addStaff.vue b/src/views/shop/components/addStaff.vue index b593872..da6af47 100644 --- a/src/views/shop/components/addStaff.vue +++ b/src/views/shop/components/addStaff.vue @@ -94,7 +94,7 @@ export default { name: '', code: '', account: '', - discountType: '1', + discountType: '', maxDiscountAmount: '', status: 1, isPc: 1, @@ -216,7 +216,7 @@ export default { // 获取员工信息 async getList() { const res = await tbShopPermissionlist() - this.$set(this.form,'permissions',res) + this.$set(this.form, 'permissions', res) }, // 通过id获取员工信息 async tbPlussShopStaffDetail(id) {