From 081f242ea3c019f4eddd0fe342c5cf6189da1468 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 03 七月 2026 13:58:01 +0800
Subject: [PATCH] fix: 产品设计

---
 src/views/basicData/mdm/index.vue |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/views/basicData/mdm/index.vue b/src/views/basicData/mdm/index.vue
index 2331b95..c10a75f 100644
--- a/src/views/basicData/mdm/index.vue
+++ b/src/views/basicData/mdm/index.vue
@@ -19,7 +19,7 @@
 } from '#/api/mdm/item';
 import { $t } from '#/locales';
 
-import { useGridColumns, useGridFormSchema } from './data';
+import { useGridColumns, useGridFormSchema, ITEM_TYPE_MAP, ITEM_TYPE_COLOR_MAP } from './data';
 import Form from './modules/form.vue';
 
 defineOptions({ name: 'MdmItem' });
@@ -175,6 +175,12 @@
           ]"
         />
       </template>
+      <template #itemType="{ row }">
+        <Tag v-if="row.itemType === 1" color="green">鍘熸枡</Tag>
+        <Tag v-else-if="row.itemType === 2" color="orange">鍗婃垚鍝�</Tag>
+        <Tag v-else-if="row.itemType === 3" color="blue">鎴愬搧</Tag>
+        <Tag v-else-if="row.itemType === 4" color="purple">杈呮枡</Tag>
+      </template>
       <template #isBatchManaged="{ row }">
         <Tag v-if="row.isBatchManaged" color="success">鏄�</Tag>
         <Tag v-else>鍚�</Tag>
@@ -188,12 +194,6 @@
               icon: ACTION_ICON.EDIT,
               auth: ['mdm:item:update'],
               onClick: handleEdit.bind(null, row),
-            },
-            {
-              label: row.status === 0 ? '鍋滅敤' : '鍚敤',
-              type: 'link',
-              auth: ['mdm:item:update'],
-              onClick: handleStatusChange.bind(null, row, row.status === 0),
             },
             {
               label: $t('common.delete'),

--
Gitblit v1.9.3