From b42e99056d5d156d9cebddb1241a9578fa45a918 Mon Sep 17 00:00:00 2001 From: 2812875475 <2812875475@qq.com> Date: Thu, 7 Mar 2024 21:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E4=BF=A1=E6=81=AF-ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/category.js | 7 + src/views/product/productInfo/index.vue | 381 +++++++++++++++++------- 2 files changed, 287 insertions(+), 101 deletions(-) diff --git a/src/api/product/category.js b/src/api/product/category.js index 449bfd6..e99314b 100644 --- a/src/api/product/category.js +++ b/src/api/product/category.js @@ -17,6 +17,13 @@ export function getCategory(id) { }) } +export function getTemplateAttribute(id) { + return request({ + url: '/product/category/getTemplateAttribute/' + id, + method: 'get' + }) +} + //通过父类id 查询品类详情 export function parentCategoryCommon(id) { return request({ diff --git a/src/views/product/productInfo/index.vue b/src/views/product/productInfo/index.vue index 8fd03ee..2bdebef 100644 --- a/src/views/product/productInfo/index.vue +++ b/src/views/product/productInfo/index.vue @@ -24,7 +24,8 @@ size="mini" @click="handleAdd" v-hasPermi="['product:info:add']" - >新增 + >新增 + 修改 + >修改 + 删除 + >删除 + 导出 + >导出 + - - - - - - - + + + + + + + - - + + @@ -125,14 +131,13 @@ -
- + @@ -142,7 +147,8 @@ v-for="dict in dict.type.sys_normal_disable" :key="dict.value" :label="dict.value" - >{{dict.label}} + >{{ dict.label }} + @@ -150,27 +156,37 @@ - + + + + + + + + v-for="brand in brandList" + :key="brand.id" + :label="brand.nam" + :value="brand.id"> + +
+ {{ brand.nam }}----------------- + +
+
- - - + +
@@ -185,22 +201,130 @@
- - - - + + + + + {{ rule.name }}----- + {{ rule.ruleAttrList.map(ruleAttr => ruleAttr.name).toString() }}----- + {{ rule.ruleAttrList.map(ruleAttr => ruleAttr.ruleList.map(a => a.toString())) }} + + +
+
+ + + + + +
+ + + + + +
+ 属性组名称【{{ templateAttributeGroup.groupName }}】 +
+
+ + + + + +
+
+
+
+
+ + + 商品属性 + + + + + + + + + + + + + + 自有属性 + + + + + + + + + + + + + + 确定 + + + + + + + + + + {{ attribute.name }} + + + + + + + + + + + + + + + + + +
+
+ +
+
- - + + +
@@ -216,49 +340,44 @@ -