From 4d6b02dada557b4186cdcef843cd3859aeeaac01 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 02 四月 2026 19:28:57 +0800
Subject: [PATCH] #

---
 rsf-design/src/views/basic-info/matnr-group/matnrGroupTable.columns.js |   94 ++++++----------------------------------------
 1 files changed, 13 insertions(+), 81 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..4e44086 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,24 +1,22 @@
 import { h } from 'vue'
-import { ElTag } from 'element-plus'
+import { $t } from '@/locales'
 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
 }) {
-  const operations = [{ key: 'view', label: '璇︽儏', icon: 'ri:eye-line' }]
+  const operations = [{ key: 'view', label: $t('common.actions.detail'), icon: 'ri:eye-line' }]
 
   if (canEdit && handleEdit) {
-    operations.push({ key: 'edit', label: '缂栬緫', icon: 'ri:pencil-line' })
+    operations.push({ key: 'edit', label: $t('common.actions.edit'), icon: 'ri:pencil-line' })
   }
 
   if (canDelete && handleDelete) {
-    operations.push({ key: 'delete', label: '鍒犻櫎', icon: 'ri:delete-bin-5-line', color: 'var(--art-error)' })
+    operations.push({ key: 'delete', label: $t('common.actions.delete'), icon: 'ri:delete-bin-5-line', color: 'var(--art-error)' })
   }
 
   return [
@@ -28,93 +26,27 @@
       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: '涓婄骇鍒嗙粍',
+      label: $t('pages.basicInfo.matnrGroup.table.code'),
       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: '涓婄骇缂栫爜',
+      label: $t('pages.basicInfo.matnrGroup.table.parentCode'),
       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: $t('pages.basicInfo.matnrGroup.table.name'),
+      minWidth: 240,
       showOverflowTooltip: true
     },
     {
       prop: 'operation',
-      label: '鎿嶄綔',
+      label: $t('table.operation'),
       width: 120,
       align: 'center',
       fixed: 'right',

--
Gitblit v1.9.1