From 4b83f0e2b29ffe571a0e8d9300fd96da63032771 Mon Sep 17 00:00:00 2001
From: jishenghua <752718920@qq.com>
Date: Sun, 27 Apr 2025 22:48:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=9A=E5=B1=9E=E6=80=A7?=
=?UTF-8?q?=E7=9A=84=E5=B1=95=E7=A4=BA=E5=92=8C=E7=BC=96=E8=BE=91=E8=BE=93?=
=?UTF-8?q?=E5=85=A5=E6=A1=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/material/MaterialAttributeList.vue | 12 +-
.../modules/MaterialAttributeModal.vue | 116 +++++++++++++++---
2 files changed, 107 insertions(+), 21 deletions(-)
diff --git a/jshERP-web/src/views/material/MaterialAttributeList.vue b/jshERP-web/src/views/material/MaterialAttributeList.vue
index 5f8deac4..950eac5a 100644
--- a/jshERP-web/src/views/material/MaterialAttributeList.vue
+++ b/jshERP-web/src/views/material/MaterialAttributeList.vue
@@ -47,6 +47,9 @@
删除
+
+ {{item}}
+
@@ -97,8 +100,10 @@
align:"center",
scopedSlots: { customRender: 'action' },
},
- {title: '属性名', dataIndex: 'attributeName', width: 200},
- {title: '属性值(用竖线隔开)', dataIndex: 'attributeValue', width: 500}
+ {title: '属性名', dataIndex: 'attributeName', width: 150},
+ {title: '属性值', dataIndex: 'attributeValue', width: 750,
+ scopedSlots: { customRender: 'customRenderAttributeValue' }
+ }
],
url: {
list: "/materialAttribute/list",
@@ -111,6 +116,9 @@
},
methods: {
+ getTagArr(attributeValue) {
+ return attributeValue.split('|')
+ },
handleEdit: function (record) {
this.$refs.modalForm.edit(record);
this.$refs.modalForm.title = "编辑";
diff --git a/jshERP-web/src/views/material/modules/MaterialAttributeModal.vue b/jshERP-web/src/views/material/modules/MaterialAttributeModal.vue
index 6b32cddb..30b3bfa2 100644
--- a/jshERP-web/src/views/material/modules/MaterialAttributeModal.vue
+++ b/jshERP-web/src/views/material/modules/MaterialAttributeModal.vue
@@ -14,7 +14,7 @@
@cancel="handleCancel"
cancelText="取消"
okText="保存"
- style="top:100px;height: 50%;">
+ style="top:100px;height: 60%;">
取消
@@ -28,8 +28,34 @@
-
- 注意:属性值请用竖线隔开,比如:红色|橙色|黄色|绿色
+
+
+
+ handleClose(tag)">
+ {{ tag }}
+
+
+
+
+ 请输入属性值
+
+
+
+
+ 注意:属性值请用竖线隔开,比如:红色|橙色|黄色|绿色
+
+
@@ -38,8 +64,9 @@