diff --git a/src/api/business/GoodsManager/GoodsCategorys/goodscategory.js b/src/api/business/GoodsManager/GoodsCategorys/goodscategory.js new file mode 100644 index 0000000..6bcc110 --- /dev/null +++ b/src/api/business/GoodsManager/GoodsCategorys/goodscategory.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' + +/** + * @Descripttion: 商品类目Api接口 + * @version: (1.0) + * @Author: (黎文豪) + * @Date: (2023-06-12) + * @LastEditors: (黎文豪) + * @LastEditTime: (2023-06-12) +*/ + +/** +* 商品类目树形查询列表 +* @param {查询条件} data +*/ +export function goodsCategoryTreeList(query) { + return request({ + url: '/business/GoodsCategory/getGoodsCategoryTreeList', + method: 'get', + params: query + }) +} + +// 商品类目新增或修改 +export function addOrUpdateGoodsCategory(data) { + return request({ + url: '/business/GoodsCategory/addOrUpdateGoodsCategory', + method: 'post', + data: data, + }) +} + +// 商品类目删除 +export function delGoodsCategory(ids) { + return request({ + url: '/business/GoodsCategory/'+ ids, + method: 'delete' + }) +} + +// 商品类目导出 +export function exportGoodsCategory(query) { + return request({ + url: 'business/GoodsCategory/exportGoodsCategory', + method: 'get', + params: query + }) +} + diff --git a/src/views/business/GoodsManager/GoodsCategorys/components/AddDialog.vue b/src/views/business/GoodsManager/GoodsCategorys/components/AddDialog.vue new file mode 100644 index 0000000..a4dd3dd --- /dev/null +++ b/src/views/business/GoodsManager/GoodsCategorys/components/AddDialog.vue @@ -0,0 +1,179 @@ + + + + + \ No newline at end of file diff --git a/src/views/business/GoodsManager/GoodsCategorys/components/DetailDialog.vue b/src/views/business/GoodsManager/GoodsCategorys/components/DetailDialog.vue new file mode 100644 index 0000000..6f69f0d --- /dev/null +++ b/src/views/business/GoodsManager/GoodsCategorys/components/DetailDialog.vue @@ -0,0 +1,136 @@ + + + + diff --git a/src/views/business/GoodsManager/GoodsCategorys/components/EditDialog.vue b/src/views/business/GoodsManager/GoodsCategorys/components/EditDialog.vue new file mode 100644 index 0000000..4173207 --- /dev/null +++ b/src/views/business/GoodsManager/GoodsCategorys/components/EditDialog.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/business/GoodsManager/GoodsCategorys/index.vue b/src/views/business/GoodsManager/GoodsCategorys/index.vue new file mode 100644 index 0000000..66ec1a2 --- /dev/null +++ b/src/views/business/GoodsManager/GoodsCategorys/index.vue @@ -0,0 +1,300 @@ + + +