From 1553782fd262f97a336fecc8b38f8f309fc08ae6 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期三, 01 四月 2026 11:07:31 +0800
Subject: [PATCH] #前端

---
 rsf-design/src/views/basic-info/matnr-group/matnrGroupTable.columns.js |   81 +++-------------------------------------
 1 files changed, 6 insertions(+), 75 deletions(-)

diff --git a/rsf-design/src/views/basic-info/matnr-group/matnrGroupTable.columns.js b/rsf-design/src/views/basic-info/matnr-group/matnrGroupTable.columns.js
index e878bba..8720615 100644
--- a/rsf-design/src/views/basic-info/matnr-group/matnrGroupTable.columns.js
+++ b/rsf-design/src/views/basic-info/matnr-group/matnrGroupTable.columns.js
@@ -1,13 +1,10 @@
 import { h } from 'vue'
-import { ElTag } from 'element-plus'
 import ArtButtonMore from '@/components/core/forms/art-button-more/index.vue'
-import { getMatnrGroupStatusMeta } from './matnrGroupPage.helpers'
 
 export function createMatnrGroupTableColumns({
   handleView,
   handleEdit,
   handleDelete,
-  resolveParentLabel,
   canEdit = true,
   canDelete = true
 }) {
@@ -28,88 +25,22 @@
       align: 'center'
     },
     {
-      type: 'globalIndex',
-      label: '搴忓彿',
-      width: 72,
-      align: 'center'
-    },
-    {
-      prop: 'name',
-      label: '鍒嗙粍鍚嶇О',
-      minWidth: 180,
-      showOverflowTooltip: true
-    },
-    {
       prop: 'code',
       label: '鍒嗙粍缂栫爜',
-      minWidth: 150,
-      showOverflowTooltip: true
-    },
-    {
-      prop: 'parentLabel',
-      label: '涓婄骇鍒嗙粍',
       minWidth: 160,
-      showOverflowTooltip: true,
-      formatter: (row) => {
-        if (typeof resolveParentLabel === 'function') {
-          const resolved = resolveParentLabel(row.parentId)
-          if (resolved) {
-            return resolved
-          }
-        }
-        return row.parentLabel || (Number(row.parentId) === 0 ? '椤剁骇鍒嗙粍' : '--')
-      }
+      showOverflowTooltip: true
     },
     {
       prop: 'parCode',
       label: '涓婄骇缂栫爜',
       minWidth: 160,
-      showOverflowTooltip: true
+      showOverflowTooltip: true,
+      formatter: (row) => row.parCode || '--'
     },
     {
-      prop: 'sort',
-      label: '鎺掑簭',
-      width: 90,
-      align: 'center'
-    },
-    {
-      prop: 'status',
-      label: '鐘舵��',
-      width: 100,
-      align: 'center',
-      formatter: (row) => {
-        const statusMeta = getMatnrGroupStatusMeta(row.statusBool ?? row.status)
-        return h(ElTag, { type: statusMeta.type, effect: 'light' }, () => statusMeta.text)
-      }
-    },
-    {
-      prop: 'memo',
-      label: '澶囨敞',
-      minWidth: 180,
-      showOverflowTooltip: true
-    },
-    {
-      prop: 'createByText',
-      label: '鍒涘缓浜�',
-      minWidth: 120,
-      showOverflowTooltip: true
-    },
-    {
-      prop: 'createTimeText',
-      label: '鍒涘缓鏃堕棿',
-      minWidth: 170,
-      showOverflowTooltip: true
-    },
-    {
-      prop: 'updateByText',
-      label: '鏇存柊浜�',
-      minWidth: 120,
-      showOverflowTooltip: true
-    },
-    {
-      prop: 'updateTimeText',
-      label: '鏇存柊鏃堕棿',
-      minWidth: 170,
+      prop: 'name',
+      label: '鍒嗙粍鍚嶇О',
+      minWidth: 240,
       showOverflowTooltip: true
     },
     {

--
Gitblit v1.9.1