From ea8df2a3b313c339e6720eca6316e989a061c432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Wed, 23 Oct 2024 14:22:04 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E5=85=A8=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/index.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/layout/index.vue b/src/layout/index.vue index 1c34f42..0e3b8c1 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -49,6 +49,11 @@ 退出登录 + @@ -213,6 +218,7 @@ export default { value: Cookies.get('theme') }) } + this.goFullScreen() }, methods: { // 修改密码框类型 @@ -248,6 +254,17 @@ export default { } }) }, + goFullScreen() { + if (document.documentElement.requestFullscreen) { + document.documentElement.requestFullscreen(); + } else if (document.documentElement.mozRequestFullScreen) { /* Firefox */ + document.documentElement.mozRequestFullScreen(); + } else if (document.documentElement.webkitRequestFullscreen) { /* Chrome, Safari & Opera */ + document.documentElement.webkitRequestFullscreen(); + } else if (document.documentElement.msRequestFullscreen) { /* IE/Edge */ + document.documentElement.msRequestFullscreen(); + } + }, open() { this.$confirm('确定注销并退出系统吗?', '提示', { confirmButtonText: '确定', From 8a7a97c9cafeab68ce122c41eb4e0b877f939253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Wed, 23 Oct 2024 14:24:19 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/index.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index 0e3b8c1..c6a21d2 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -218,7 +218,6 @@ export default { value: Cookies.get('theme') }) } - this.goFullScreen() }, methods: { // 修改密码框类型 From e5aec2e236204860e6539b0cea28d47d0bd8744e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Wed, 23 Oct 2024 16:00:56 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E9=9C=B8=E7=8E=8B=E9=A4=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bwc.js | 33 +++++++++ src/views/application/bwc.vue | 128 ++++++++++++++++++++++++++++++++++ 2 files changed, 161 insertions(+) create mode 100644 src/api/bwc.js create mode 100644 src/views/application/bwc.vue diff --git a/src/api/bwc.js b/src/api/bwc.js new file mode 100644 index 0000000..68e2a6b --- /dev/null +++ b/src/api/bwc.js @@ -0,0 +1,33 @@ + +import request from '@/utils/request' +export function get(params) { + return request({ + url: '/freeDine', + method: 'get', + params + }) +} +export function add(data) { + return request({ + url: 'api/botUser', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'api/botUser/', + method: 'delete', + data: ids + }) +} + +export function edit(data) { + return request({ + url: '/freeDine', + method: 'put', + data + }) +} +export default { add, edit, del, get } diff --git a/src/views/application/bwc.vue b/src/views/application/bwc.vue new file mode 100644 index 0000000..ce7c17d --- /dev/null +++ b/src/views/application/bwc.vue @@ -0,0 +1,128 @@ + + + + + + + + + + + 用户消费结账时,成功充值消费 + + 倍的金额,本单即可享受免单 + + + + + + + 订单支付金额需满 + + 元才能使用 + + + + + + + + + + + + + + + + + + + + + + + + + 保存 + + + + + + + + + \ No newline at end of file From abac23302771606e99c9cbbaf9f8fbcb350a2e8f Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Thu, 24 Oct 2024 11:10:33 +0800 Subject: [PATCH 4/8] =?UTF-8?q?1.=E5=BA=97=E9=93=BA=E8=AE=BE=E7=BD=AE=20-?= =?UTF-8?q?=20=E5=BA=97=E9=93=BA=E4=BF=A1=E6=81=AF=20-=20=E6=A1=8C?= =?UTF-8?q?=E4=BD=8D=E8=B4=B9=E5=BC=80=E5=90=AF=E5=85=8D=E9=A4=90=E4=BD=8D?= =?UTF-8?q?=E8=B4=B9=E4=B8=8D=E5=8F=AF=E4=BF=AE=E6=94=B9=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=202.=E5=BA=97=E9=93=BA=E8=AE=BE=E7=BD=AE=20-=20?= =?UTF-8?q?=E5=BA=97=E9=93=BA=E4=BF=A1=E6=81=AFlogo=E3=80=81=E9=97=A8?= =?UTF-8?q?=E5=BA=97=E3=80=81=E4=BA=8C=E7=BB=B4=E7=A0=81=E3=80=81=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=A0=81=E5=9B=BE=E7=89=87=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=8C=89=E9=92=AE=203.=E6=96=B0=E5=A2=9Epad?= =?UTF-8?q?=E7=82=B9=E5=8D=95=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/pad.js | 71 +++++ src/components/shopList/index.vue | 45 +++- src/layout/components/Sidebar/Logo.vue | 12 + src/views/home/home.vue | 16 +- src/views/shop/components/addPadPage.vue | 316 +++++++++++++++++++++++ src/views/shop/components/shopInfo.vue | 76 ++++-- src/views/shop/pad_setting.vue | 211 +++++++++++++++ src/views/shop/shop_configuration.vue | 2 +- 8 files changed, 711 insertions(+), 38 deletions(-) create mode 100644 src/api/pad.js create mode 100644 src/views/shop/components/addPadPage.vue create mode 100644 src/views/shop/pad_setting.vue diff --git a/src/api/pad.js b/src/api/pad.js new file mode 100644 index 0000000..ebb8bd5 --- /dev/null +++ b/src/api/pad.js @@ -0,0 +1,71 @@ +import request from "@/utils/request"; + +/** + * Pad商品版式布局列表 + * @returns + */ +export function layoutlist(params) { + return request({ + url: "/api/pad/layout/list", + method: "get", + params + }); +} + +/** + * 新建 + * @returns + */ +export function productGroup(data) { + return request({ + url: "/api/pad/productCategory", + method: "post", + data + }); +} + +/** + * Pad点餐列表 + * @returns + */ +export function productGrouppage(params) { + return request({ + url: "/api/pad/productCategory/page", + method: "get", + params + }); +} + +/** + * 获取详情 + * @returns + */ +export function productCategoryDetail(id) { + return request({ + url: `/api/pad/productCategory/${id}`, + method: "get" + }); +} + +/** + * 删除 + * @returns + */ +export function productCategoryDelete(id) { + return request({ + url: `/api/pad/productCategory/${id}`, + method: "DELETE" + }); +} + +/** + * 修改 + * @returns + */ +export function productGroupPut(data) { + return request({ + url: "/api/pad/productCategory", + method: "put", + data + }); +} diff --git a/src/components/shopList/index.vue b/src/components/shopList/index.vue index e24f0ad..fa2f6c1 100644 --- a/src/components/shopList/index.vue +++ b/src/components/shopList/index.vue @@ -1,5 +1,5 @@ - + @@ -16,8 +16,8 @@ - - + + @@ -36,11 +36,11 @@ - {{ scope.row.isPauseSale == 1?'是':'否' }} + {{ scope.row.isPauseSale == 1 ? '是' : '否' }} - {{ scope.row.isDistribute == 1?'是':'否' }} + {{ scope.row.isDistribute == 1 ? '是' : '否' }} @@ -54,12 +54,17 @@ + + + 选择 + + - + 取 消 确 定 @@ -69,6 +74,13 @@ + + \ No newline at end of file diff --git a/src/views/shop/components/shopInfo.vue b/src/views/shop/components/shopInfo.vue index acf9e78..d9e77ea 100644 --- a/src/views/shop/components/shopInfo.vue +++ b/src/views/shop/components/shopInfo.vue @@ -9,29 +9,56 @@ - + + + 下载 + - + + + 下载 + - + + + 下载 + - + + + 下载 + + + + + 快餐版(先支付后下单) + 餐饮版(先下单后支付) + + + + + 堂食自取 + 允许打包 + @@ -58,7 +85,8 @@ 注:准确的定位便于用户导航到店铺 - + @@ -78,7 +106,7 @@ - + @@ -188,7 +216,9 @@ export default { startTime: "", endTime: "", formLoading: false, - form: {}, + form: { + eatModel: [] + }, rules: { shopName: [ { @@ -372,6 +402,12 @@ export default { \ No newline at end of file diff --git a/src/views/shop/shop_configuration.vue b/src/views/shop/shop_configuration.vue index bf9ec77..c96e1bd 100644 --- a/src/views/shop/shop_configuration.vue +++ b/src/views/shop/shop_configuration.vue @@ -2,7 +2,7 @@ - + From f585e2f0205efee795c3993f6653d3a644426898 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Thu, 24 Oct 2024 15:38:55 +0800 Subject: [PATCH 5/8] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5=202.?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=91=E5=AE=9A=E8=80=97=E6=9D=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/home.vue | 168 +++++++++++----------- src/views/product/components/bindCons.vue | 58 +++++--- 2 files changed, 120 insertions(+), 106 deletions(-) diff --git a/src/views/home/home.vue b/src/views/home/home.vue index 324834d..5ef6931 100644 --- a/src/views/home/home.vue +++ b/src/views/home/home.vue @@ -220,13 +220,13 @@ {{ productCount }} - + @@ -336,9 +336,9 @@ export default { if (this.productCountChart) { this.productCountChart.resize(); } - if (this.productSumChart) { - this.productSumChart.resize(); - } + // if (this.productSumChart) { + // this.productSumChart.resize(); + // } }, 100); window.addEventListener("resize", this.__resizeHandler); // this.initCardUserChart(); @@ -679,7 +679,7 @@ export default { { name: '订单金额', type: "bar", - barWidth: time.length <= 7 ? "30%" : "20%", + barWidth: time.length <= 7 ? "50%" : "30%", data: data.map(item => item.orderAmount), }, // { @@ -688,12 +688,12 @@ export default { // barWidth: time.length <= 7 ? "30%" : "20%", // data: data.map(item => item.actualAmount), // }, - { - name: '优惠金额', - type: "bar", - barWidth: time.length <= 7 ? "30%" : "20%", - data: data.map(item => item.discountAmount), - } + // { + // name: '优惠金额', + // type: "bar", + // barWidth: time.length <= 7 ? "30%" : "20%", + // data: data.map(item => item.discountAmount), + // } ] }); }, @@ -754,7 +754,7 @@ export default { return { orderAmount: item.orderAmount, // actualAmount: item.actualAmount, - discountAmount: item.discountAmount + // discountAmount: item.discountAmount } }); const time = res.total.map(item => item.tradeDay); @@ -840,7 +840,7 @@ export default { // 初始化销售图标 initProduceChart(p1, p2) { this.productCountChart = echarts.init(this.$refs.productCountChart); - this.productSumChart = echarts.init(this.$refs.productSumChart); + // this.productSumChart = echarts.init(this.$refs.productSumChart); this.productCountChart.setOption({ tooltip: { @@ -913,76 +913,76 @@ export default { ] }); - this.productSumChart.setOption({ - tooltip: { - trigger: "axis" - }, - grid: { - x: 0, - y: 0, - x2: 0, - y2: 0 - }, - xAxis: [ - { - boundaryGap: false, - type: "category", - data: p2[0], - show: false, // 不显示坐标轴线、坐标轴刻度线和坐标轴上的文字 - axisTick: { - show: false // 不显示坐标轴刻度线 - }, - axisLine: { - show: false // 不显示坐标轴线 - }, - axisLabel: { - show: false // 不显示坐标轴上的文字 - }, - splitLine: { - show: false // 不显示网格线 - } - } - ], - color: "#409eff", - yAxis: [ - { - type: "value", - show: false, // 不显示坐标轴线、坐标轴刻度线和坐标轴上的文字 - axisTick: { - show: false // 不显示坐标轴刻度线 - }, - axisLine: { - show: false // 不显示坐标轴线 - }, - axisLabel: { - show: false // 不显示坐标轴上的文字 - }, - splitLine: { - show: false // 不显示网格线 - } - } - ], - series: [ - { - data: p2[1], - type: "line", - symbol: "none", - smooth: true, - areaStyle: { - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 0, - color: "#409eff" // 渐变颜色 - }, - { - offset: 1, - color: "#409eff" // 渐变颜色 - } - ]) - } - } - ] - }); + // this.productSumChart.setOption({ + // tooltip: { + // trigger: "axis" + // }, + // grid: { + // x: 0, + // y: 0, + // x2: 0, + // y2: 0 + // }, + // xAxis: [ + // { + // boundaryGap: false, + // type: "category", + // data: p2[0], + // show: false, // 不显示坐标轴线、坐标轴刻度线和坐标轴上的文字 + // axisTick: { + // show: false // 不显示坐标轴刻度线 + // }, + // axisLine: { + // show: false // 不显示坐标轴线 + // }, + // axisLabel: { + // show: false // 不显示坐标轴上的文字 + // }, + // splitLine: { + // show: false // 不显示网格线 + // } + // } + // ], + // color: "#409eff", + // yAxis: [ + // { + // type: "value", + // show: false, // 不显示坐标轴线、坐标轴刻度线和坐标轴上的文字 + // axisTick: { + // show: false // 不显示坐标轴刻度线 + // }, + // axisLine: { + // show: false // 不显示坐标轴线 + // }, + // axisLabel: { + // show: false // 不显示坐标轴上的文字 + // }, + // splitLine: { + // show: false // 不显示网格线 + // } + // } + // ], + // series: [ + // { + // data: p2[1], + // type: "line", + // symbol: "none", + // smooth: true, + // areaStyle: { + // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + // { + // offset: 0, + // color: "#409eff" // 渐变颜色 + // }, + // { + // offset: 1, + // color: "#409eff" // 渐变颜色 + // } + // ]) + // } + // } + // ] + // }); }, // 日期汇总数据 async summaryDateGet(res) { diff --git a/src/views/product/components/bindCons.vue b/src/views/product/components/bindCons.vue index ff4b22b..cd8108a 100644 --- a/src/views/product/components/bindCons.vue +++ b/src/views/product/components/bindCons.vue @@ -1,5 +1,5 @@ - + 耗材信息 @@ -23,8 +23,7 @@ - + 库存:{{ scope.row.stockNumber }} @@ -41,13 +40,15 @@ - + - + - + @@ -55,7 +56,7 @@ - + @@ -86,18 +87,20 @@ - + - + - + - + @@ -247,7 +250,7 @@ export default { item.conInfoId = '' item.name = '' item.conUnit = '' - item.surplusStock = 0 + item.surplusStock = 1 item.status = 1 this.tableData.cons.push(item) } else { @@ -278,7 +281,7 @@ export default { item.conInfoId = '' item.name = '' item.conUnit = '' - item.surplusStock = 0 + item.surplusStock = 1 item.status = 1 this.tableData.cons.push(item) } @@ -295,7 +298,7 @@ export default { item.conInfoId = '' item.name = '' item.conUnit = '' - item.surplusStock = 0 + item.surplusStock = 1 item.status = 1 item.specSnap = val.name @@ -315,13 +318,24 @@ export default { this.tableData.cons.map(val => { this.goodsDetail.conInfos.map(item => { if (item.productSkuId == val.productSkuId) { - val.consList.unshift({ - id: item.id, - surplusStock: item.surplusStock, - conInfoId: item.conInfoId, - name: item.conName, - conUnit: item.conUnit - }) + if (val.consList.length == 1 && val.consList[0].conInfoId == '') { + val.consList = [] + val.consList.push({ + id: item.id, + surplusStock: item.surplusStock, + conInfoId: item.conInfoId, + name: item.conName, + conUnit: item.conUnit + }) + } else { + val.consList.push({ + id: item.id, + surplusStock: item.surplusStock, + conInfoId: item.conInfoId, + name: item.conName, + conUnit: item.conUnit + }) + } } }) }) @@ -339,7 +353,7 @@ export default { item.conInfoId = '' item.name = '' item.conUnit = '' - item.surplusStock = 0 + item.surplusStock = 1 item.status = 1 this.tableData.cons.push(item) From e1fb69f4248c342c623d60fcd527a49e603f958f Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Thu, 24 Oct 2024 16:30:27 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/home/home.vue b/src/views/home/home.vue index 5ef6931..1bb1a1e 100644 --- a/src/views/home/home.vue +++ b/src/views/home/home.vue @@ -233,7 +233,7 @@ - + Date: Thu, 24 Oct 2024 17:28:30 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/components/bindCons.vue | 4 +- src/views/shop/components/shopInfo.vue | 51 +++++++++++++++++++---- src/views/shop/shop_configuration.vue | 4 +- 3 files changed, 47 insertions(+), 12 deletions(-) diff --git a/src/views/product/components/bindCons.vue b/src/views/product/components/bindCons.vue index cd8108a..0809839 100644 --- a/src/views/product/components/bindCons.vue +++ b/src/views/product/components/bindCons.vue @@ -1,5 +1,5 @@ - + 耗材信息 @@ -56,7 +56,7 @@ - + diff --git a/src/views/shop/components/shopInfo.vue b/src/views/shop/components/shopInfo.vue index d9e77ea..b91a002 100644 --- a/src/views/shop/components/shopInfo.vue +++ b/src/views/shop/components/shopInfo.vue @@ -15,10 +15,10 @@ showUpload = true; uploadIndex = 1; "> - 下载 + - + + + + + 下载 + @@ -36,15 +43,14 @@ showUpload = true; uploadIndex = 3; "> - 下载 + 下载 - 下载 @@ -199,6 +205,7 @@