diff --git a/src/api/product.js b/src/api/product.js index 844d972..9189763 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -592,7 +592,17 @@ export function productEditApi(id, data) { export function changeProductStatus(id, status) { return request.post(`store/product/change_status/${id}`, { status }) } - - +// 提货点管理 -- 列表获取 +export function pointGetList(data) { + return request.get(`store/point/list`, data) +} +// 提货点管理 -- 提交编辑 +export function pointEdit(data) { + return request.post(`store/point/edit`, data) +} +// 提货点管理 -- 列表获取 +export function pointDel(id) { + return request.post(`store/point/del/${id}`) +} diff --git a/src/router/modules/product.js b/src/router/modules/product.js index 070e9e7..d7bdb0f 100644 --- a/src/router/modules/product.js +++ b/src/router/modules/product.js @@ -131,8 +131,16 @@ const productRouter = meta: { title: '商品添加', noCache: true - }, - hidden: true + } + }, + { + path: 'point', + component: () => import('@/views/product/point/index'), + name: 'point', + meta: { + title: '提货点管理', + noCache: true + } }, ] } diff --git a/src/views/product/addProduct/index.vue b/src/views/product/addProduct/index.vue index 18a839c..1b7f63a 100644 --- a/src/views/product/addProduct/index.vue +++ b/src/views/product/addProduct/index.vue @@ -1076,11 +1076,7 @@
- + {{ item.name }} diff --git a/src/views/product/point/index.vue b/src/views/product/point/index.vue new file mode 100644 index 0000000..f2d396a --- /dev/null +++ b/src/views/product/point/index.vue @@ -0,0 +1,296 @@ +