From c0d8d4d5b54287ac05608306f27d7179d6763f25 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Mon, 2 Mar 2026 18:43:12 +0800 Subject: [PATCH] =?UTF-8?q?2026.3.2=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/app.js | 6 + src/views/app/shop/addEdit.vue | 1 + src/views/app/shop/addType.vue | 142 ++++++ src/views/app/shop/dictManage.less | 0 src/views/app/shop/dictManage.vue | 662 ++++++++++++++++++++++++++++ src/views/app/shop/editDictType.vue | 143 ++++++ src/views/app/shop/mernage.vue | 623 +++++++++++++------------- src/views/app/shop/shop.vue | 35 +- 8 files changed, 1304 insertions(+), 308 deletions(-) create mode 100644 src/views/app/shop/addType.vue create mode 100644 src/views/app/shop/dictManage.less create mode 100644 src/views/app/shop/dictManage.vue create mode 100644 src/views/app/shop/editDictType.vue diff --git a/src/api/app.js b/src/api/app.js index 783bd72..bb9b085 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -147,6 +147,12 @@ export const editLogiticsCompany = (params) => { export const addLogisticsRoute = (params) => { return postBodyRequest('/app/logisticsRoute/addLogisticsRoute', params) } + +//获取商品分类 +export const goodsType = (params) => { + return postBodyRequest('/app/productCategory/list', params) +} + //编辑线路 export const updateLogisticsRoute = (params) => { return postBodyRequest('/app/logisticsRoute/updateLogisticsRoute', params) diff --git a/src/views/app/shop/addEdit.vue b/src/views/app/shop/addEdit.vue index fe7534c..35d03eb 100644 --- a/src/views/app/shop/addEdit.vue +++ b/src/views/app/shop/addEdit.vue @@ -252,6 +252,7 @@ export default { } }); } + this.form.shopMangerId = this.form.shopOwnerId if (this.type == "1") { // 编辑 this.submitLoading = true; diff --git a/src/views/app/shop/addType.vue b/src/views/app/shop/addType.vue new file mode 100644 index 0000000..a7dbc31 --- /dev/null +++ b/src/views/app/shop/addType.vue @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + 取消 + 提交 + + + + + + + + + diff --git a/src/views/app/shop/dictManage.less b/src/views/app/shop/dictManage.less new file mode 100644 index 0000000..e69de29 diff --git a/src/views/app/shop/dictManage.vue b/src/views/app/shop/dictManage.vue new file mode 100644 index 0000000..e2f4913 --- /dev/null +++ b/src/views/app/shop/dictManage.vue @@ -0,0 +1,662 @@ + + + + + + + + 添加分类 + + + 更多操作 + + + + 编辑分类 + 删除分类 + 刷新 + + + + + 当前选择: + {{ editTitle }} + 取消选择 + + + + + + + + + + + + + + + + + + + + + 正常 + 禁用 + + + + 搜索 + 重置 + + + + + + 添加数据 + 批量删除 + + + + + + + + + + + + + + + + 默认 + 宽松 + 紧密 + + + + + + + + + + 已选择 + {{ selectList.length }} 项 + 清空 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 启用 + 禁用 + + + + + 取消 + 提交 + + + + + + \ No newline at end of file diff --git a/src/views/app/shop/editDictType.vue b/src/views/app/shop/editDictType.vue new file mode 100644 index 0000000..e985016 --- /dev/null +++ b/src/views/app/shop/editDictType.vue @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + 取消 + 提交 + + + + + + + + + diff --git a/src/views/app/shop/mernage.vue b/src/views/app/shop/mernage.vue index f8dd02b..b1dea0e 100644 --- a/src/views/app/shop/mernage.vue +++ b/src/views/app/shop/mernage.vue @@ -1,320 +1,329 @@ - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + - + @import "@/styles/drawer-common.less"; + \ No newline at end of file diff --git a/src/views/app/shop/shop.vue b/src/views/app/shop/shop.vue index 2fc5a0a..5d2b9cc 100644 --- a/src/views/app/shop/shop.vue +++ b/src/views/app/shop/shop.vue @@ -116,12 +116,19 @@ - + + + + 关闭 + + + + @@ -153,6 +160,9 @@ import addEdit from "./addEdit.vue"; import mernage from "./mernage.vue"; import dict from "@/views/my-components/hiver/dict"; + + import goodsList from "./dictManage.vue"; + import { deleteShop, disableShop, @@ -168,9 +178,11 @@ addEdit, mernage, dict, + goodsList }, data() { return { + Visiable:false, tableSize: "default", height: 510, showUser: false, @@ -355,6 +367,21 @@ }, "删除" ), + h("Divider", { + props: { + type: "vertical", + }, + }), + h( + "a", { + on: { + click: () => { + this.goodsList(params.row); + }, + }, + }, + "新增商品" + ), ]); }, }, @@ -646,6 +673,12 @@ this.showType = "2"; this.showUser = true; }, + goodsList(v){ + this.Visiable = true; + // this.$nextTick(() => { + // this.$refs.dialog.initRecharge(v); + // }); + }, edit(v) { // 转换null为"" for (let attr in v) {