From 50e95b985a72fcec4a93a2470e9efdfb2620148a Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 02 四月 2026 15:46:09 +0800
Subject: [PATCH] #i18n

---
 rsf-design/src/views/basic-info/companys/companysTable.columns.js |   52 ++++++++++++++++++++++++++++------------------------
 1 files changed, 28 insertions(+), 24 deletions(-)

diff --git a/rsf-design/src/views/basic-info/companys/companysTable.columns.js b/rsf-design/src/views/basic-info/companys/companysTable.columns.js
index 01935b6..510373b 100644
--- a/rsf-design/src/views/basic-info/companys/companysTable.columns.js
+++ b/rsf-design/src/views/basic-info/companys/companysTable.columns.js
@@ -1,9 +1,11 @@
 import { h } from 'vue'
 import { ElTag } from 'element-plus'
 import ArtButtonMore from '@/components/core/forms/art-button-more/index.vue'
+import { $t } from '@/locales'
 import { getCompanysStatusMeta } from './companysPage.helpers'
 
 export function createCompanysTableColumns({
+  t = $t,
   handleView,
   handleEdit,
   handleDelete,
@@ -11,80 +13,82 @@
   canDelete = true,
   resolveTypeLabel
 } = {}) {
-  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 [
     { type: 'selection', width: 48, align: 'center' },
-    { type: 'globalIndex', label: '搴忓彿', width: 72, align: 'center' },
-    { prop: 'code', label: '浼佷笟缂栫爜', minWidth: 140, showOverflowTooltip: true, formatter: (row) => row.code || '--' },
-    { prop: 'name', label: '浼佷笟鍚嶇О', minWidth: 170, showOverflowTooltip: true, formatter: (row) => row.name || '--' },
-    { prop: 'nameEn', label: '鑻辨枃鍒悕', minWidth: 160, showOverflowTooltip: true, formatter: (row) => row.nameEn || '--' },
-    { prop: 'breifCode', label: '鍔╄鐮�', minWidth: 120, showOverflowTooltip: true, formatter: (row) => row.breifCode || '--' },
+    { type: 'globalIndex', label: $t('table.index'), width: 72, align: 'center' },
+    { prop: 'code', label: $t('pages.basicInfo.companys.table.code'), minWidth: 140, showOverflowTooltip: true, formatter: (row) => row.code || '--' },
+    { prop: 'name', label: $t('pages.basicInfo.companys.table.name'), minWidth: 170, showOverflowTooltip: true, formatter: (row) => row.name || '--' },
+    { prop: 'nameEn', label: $t('pages.basicInfo.companys.table.nameEn'), minWidth: 160, showOverflowTooltip: true, formatter: (row) => row.nameEn || '--' },
+    { prop: 'breifCode', label: $t('pages.basicInfo.companys.table.briefCode'), minWidth: 120, showOverflowTooltip: true, formatter: (row) => row.breifCode || '--' },
     {
       prop: 'typeText',
-      label: '浼佷笟绫诲瀷',
+      label: $t('pages.basicInfo.companys.table.type'),
       minWidth: 140,
       showOverflowTooltip: true,
       formatter: (row) =>
         row.typeText || (typeof resolveTypeLabel === 'function' ? resolveTypeLabel(row.type) : '') || '--'
     },
-    { prop: 'contact', label: '鑱旂郴浜�', minWidth: 120, showOverflowTooltip: true, formatter: (row) => row.contact || '--' },
-    { prop: 'tel', label: '鑱旂郴鐢佃瘽', minWidth: 140, showOverflowTooltip: true, formatter: (row) => row.tel || '--' },
-    { prop: 'email', label: '閭', minWidth: 180, showOverflowTooltip: true, formatter: (row) => row.email || '--' },
-    { prop: 'pcode', label: '閭紪', minWidth: 120, showOverflowTooltip: true, formatter: (row) => row.pcode || '--' },
-    { prop: 'province', label: '鐪佷唤', minWidth: 120, showOverflowTooltip: true, formatter: (row) => row.province || '--' },
-    { prop: 'city', label: '鍩庡競', minWidth: 120, showOverflowTooltip: true, formatter: (row) => row.city || '--' },
-    { prop: 'address', label: '鍦板潃', minWidth: 220, showOverflowTooltip: true, formatter: (row) => row.address || '--' },
+    { prop: 'contact', label: $t('pages.basicInfo.companys.table.contact'), minWidth: 120, showOverflowTooltip: true, formatter: (row) => row.contact || '--' },
+    { prop: 'tel', label: $t('pages.basicInfo.companys.table.tel'), minWidth: 140, showOverflowTooltip: true, formatter: (row) => row.tel || '--' },
+    { prop: 'email', label: $t('pages.basicInfo.companys.table.email'), minWidth: 180, showOverflowTooltip: true, formatter: (row) => row.email || '--' },
+    { prop: 'pcode', label: $t('pages.basicInfo.companys.table.postCode'), minWidth: 120, showOverflowTooltip: true, formatter: (row) => row.pcode || '--' },
+    { prop: 'province', label: $t('pages.basicInfo.companys.table.province'), minWidth: 120, showOverflowTooltip: true, formatter: (row) => row.province || '--' },
+    { prop: 'city', label: $t('pages.basicInfo.companys.table.city'), minWidth: 120, showOverflowTooltip: true, formatter: (row) => row.city || '--' },
+    { prop: 'address', label: $t('pages.basicInfo.companys.table.address'), minWidth: 220, showOverflowTooltip: true, formatter: (row) => row.address || '--' },
     {
       prop: 'status',
-      label: '鐘舵��',
+      label: $t('table.status'),
       width: 100,
       align: 'center',
       formatter: (row) => {
         const statusMeta = getCompanysStatusMeta(row.statusBool ?? row.status)
-        return h(ElTag, { type: statusMeta.type, effect: 'light' }, () => statusMeta.text)
+        return h(ElTag, { type: statusMeta.type, effect: 'light' }, () =>
+          statusMeta.textKey ? t(statusMeta.textKey) : statusMeta.fallback
+        )
       }
     },
-    { prop: 'memo', label: '澶囨敞', minWidth: 180, showOverflowTooltip: true, formatter: (row) => row.memo || '--' },
+    { prop: 'memo', label: $t('table.remark'), minWidth: 180, showOverflowTooltip: true, formatter: (row) => row.memo || '--' },
     {
       prop: 'createByText',
-      label: '鍒涘缓浜�',
+      label: $t('table.createBy'),
       minWidth: 120,
       showOverflowTooltip: true,
       formatter: (row) => row.createByText || row.createBy$ || '--'
     },
     {
       prop: 'createTimeText',
-      label: '鍒涘缓鏃堕棿',
+      label: $t('table.createTime'),
       minWidth: 170,
       showOverflowTooltip: true,
       formatter: (row) => row.createTimeText || row.createTime$ || '--'
     },
     {
       prop: 'updateByText',
-      label: '鏇存柊浜�',
+      label: $t('table.updateBy'),
       minWidth: 120,
       showOverflowTooltip: true,
       formatter: (row) => row.updateByText || row.updateBy$ || '--'
     },
     {
       prop: 'updateTimeText',
-      label: '鏇存柊鏃堕棿',
+      label: $t('table.updateTime'),
       minWidth: 170,
       showOverflowTooltip: true,
       formatter: (row) => row.updateTimeText || row.updateTime$ || '--'
     },
     {
       prop: 'operation',
-      label: '鎿嶄綔',
+      label: $t('table.operation'),
       width: 120,
       align: 'center',
       fixed: 'right',

--
Gitblit v1.9.1