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) {