From 50ceef857ac3c0ae5214923208c7a0973b0f7c1f Mon Sep 17 00:00:00 2001 From: DongZeLiang <2746733890@qq.com> Date: Thu, 7 Mar 2024 09:43:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=85=B1=E6=9C=89=E5=85=83?= =?UTF-8?q?=E7=B4=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/category.js | 7 + src/views/product/info/index.vue | 290 +++++++++++++++++++++++++++---- 2 files changed, 267 insertions(+), 30 deletions(-) diff --git a/src/api/product/category.js b/src/api/product/category.js index 889eebe..fade048 100644 --- a/src/api/product/category.js +++ b/src/api/product/category.js @@ -16,6 +16,13 @@ export function getCategory(id) { method: 'get' }) } +// 查询品类共有元素 +export function getTemplateAttribute(id) { + return request({ + url: '/product/category/getTemplateAttribute/' + id, + method: 'get' + }) +} // 查询品类信息详细 export function parentCommonElement(id) { diff --git a/src/views/product/info/index.vue b/src/views/product/info/index.vue index db64019..a69600e 100644 --- a/src/views/product/info/index.vue +++ b/src/views/product/info/index.vue @@ -143,39 +143,187 @@ + + + + + + - - - - - - - - - - - - - - - {{dict.label}} - - - - - - - - - - - +
+ + + + + + + + + + {{dict.label}} + + + + + + + + + + + +
{{brand.nam}}
+
+
+
+
+
+ + + + + +
+ + + + + + + + + + +
+
+ + + + + + + + +
+ 属性组【{{templateAttributeGroup.groupName}}】 +
+
+ + + + + +
+
+
+
+
+ + + + + + + + + + + + + +
+ 添加商品属性 +
+ + 添加自有属性 + + + + + + + + + + + + 确定 + + + +
+ + +
+ 选择属性 +
+ + + + + + + +
+ +
+ 属性值填写 +
+ + + + + + + + + +
+
+
+
+
+ + + + {{rule.name}} - {{rule.ruleAttrList.map(ruleAttr => ruleAttr.name).toString()}} + + + +
+
+ + + +
@@ -185,6 +333,9 @@ +