From 72ef192bba75fb2f16889d8de82161885cdd7575 Mon Sep 17 00:00:00 2001
From: lwh <2679599887@qq.com>
Date: Mon, 12 Jun 2023 10:55:47 +0800
Subject: [PATCH] =?UTF-8?q?feat=20=E5=88=9D=E5=A7=8B=E5=8C=96=E5=95=86?=
=?UTF-8?q?=E5=93=81=E7=B1=BB=E7=9B=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../GoodsCategorys/goodscategory.js | 49 +++
.../GoodsCategorys/components/AddDialog.vue | 179 +++++++++++
.../components/DetailDialog.vue | 136 ++++++++
.../GoodsCategorys/components/EditDialog.vue | 176 ++++++++++
.../GoodsManager/GoodsCategorys/index.vue | 300 ++++++++++++++++++
5 files changed, 840 insertions(+)
create mode 100644 src/api/business/GoodsManager/GoodsCategorys/goodscategory.js
create mode 100644 src/views/business/GoodsManager/GoodsCategorys/components/AddDialog.vue
create mode 100644 src/views/business/GoodsManager/GoodsCategorys/components/DetailDialog.vue
create mode 100644 src/views/business/GoodsManager/GoodsCategorys/components/EditDialog.vue
create mode 100644 src/views/business/GoodsManager/GoodsCategorys/index.vue
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 @@
+
+
+
+
+
+
+
+
+
+
+ {{ data.goodsCategoryName }}
+ ({{ data.children.length }})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.dictLabel }}
+
+
+
+
+
+
+ {{ item.dictLabel }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加
+ 重置
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+
+
+
+
+
+
+ {{ data.goodsCategoryName }}
+ ({{ data.children.length }})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ item.dictLabel }}
+
+
+
+
+
+
+ {{
+ item.dictLabel }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+ {{ data.goodsCategoryName }}
+ ({{ data.children.length }})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ item.dictLabel }}
+
+
+
+
+
+
+ {{
+ item.dictLabel }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{item.dictLabel}}
+
+
+
+
+ {{item.dictLabel}}
+
+
+
+ {{ $t('btn.search') }}
+ {{ $t('btn.reset') }}
+
+
+
+
+
+
+
+ 展开/折叠
+
+
+
+ {{ $t('btn.add') }}
+
+
+
+
+ {{ $t('btn.delete') }}
+
+
+
+
+ {{ $t('btn.export') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+ 删除
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
+
+