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/companysPage.helpers.js |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/rsf-design/src/views/basic-info/companys/companysPage.helpers.js b/rsf-design/src/views/basic-info/companys/companysPage.helpers.js
index e375f44..63502f4 100644
--- a/rsf-design/src/views/basic-info/companys/companysPage.helpers.js
+++ b/rsf-design/src/views/basic-info/companys/companysPage.helpers.js
@@ -1,9 +1,11 @@
 const STATUS_META = {
-  1: { text: '姝e父', type: 'success', bool: true },
-  0: { text: '鍐荤粨', type: 'danger', bool: false }
+  1: { textKey: 'common.status.normal', fallback: 'Normal', type: 'success', bool: true },
+  0: { textKey: 'common.status.frozen', fallback: 'Frozen', type: 'danger', bool: false }
 }
 
-export const COMPANYS_REPORT_TITLE = '寰�鏉ヤ紒涓氭姤琛�'
+export function getCompanysReportTitle(t) {
+  return typeof t === 'function' ? t('pages.basicInfo.companys.reportTitle') : 'Company Report'
+}
 export const COMPANYS_REPORT_STYLE = {
   titleAlign: 'center',
   titleLevel: 'strong',
@@ -61,10 +63,10 @@
   }
 }
 
-export function getCompanysStatusOptions() {
+export function getCompanysStatusOptions(t) {
   return [
-    { label: '姝e父', value: 1 },
-    { label: '鍐荤粨', value: 0 }
+    { label: typeof t === 'function' ? t('common.status.normal') : 'Normal', value: 1 },
+    { label: typeof t === 'function' ? t('common.status.frozen') : 'Frozen', value: 0 }
   ]
 }
 
@@ -82,7 +84,7 @@
   if (status === false || Number(status) === 0) {
     return STATUS_META[0]
   }
-  return { text: '鏈煡', type: 'info', bool: false }
+  return { textKey: 'common.status.unknown', fallback: 'Unknown', type: 'info', bool: false }
 }
 
 export function buildCompanysTypeOptions(records = []) {
@@ -212,7 +214,8 @@
     city: normalizeText(record.city || ''),
     address: normalizeText(record.address || ''),
     memo: normalizeText(record.memo || ''),
-    statusText: statusMeta.text,
+    statusTextKey: statusMeta.textKey,
+    statusText: statusMeta.fallback,
     statusType: statusMeta.type,
     statusBool: record.statusBool !== void 0 ? Boolean(record.statusBool) : statusMeta.bool,
     createByText: normalizeText(record.createBy$ || record.createByText || ''),
@@ -239,7 +242,7 @@
   orientation = COMPANYS_REPORT_STYLE.orientation
 } = {}) {
   return {
-    reportTitle: COMPANYS_REPORT_TITLE,
+    reportTitle: previewMeta.reportTitle,
     reportDate: previewMeta.reportDate,
     printedAt: previewMeta.printedAt,
     operator: previewMeta.operator,

--
Gitblit v1.9.1