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/orders/transfer/index.vue |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/rsf-design/src/views/orders/transfer/index.vue b/rsf-design/src/views/orders/transfer/index.vue
index 618f804..2088f25 100644
--- a/rsf-design/src/views/orders/transfer/index.vue
+++ b/rsf-design/src/views/orders/transfer/index.vue
@@ -106,7 +106,6 @@
   import { createTransferTableColumns } from './transferTable.columns.js'
   import {
     TRANSFER_REPORT_STYLE,
-    TRANSFER_REPORT_TITLE,
     buildTransferDetailOrderQueryParams,
     buildTransferDialogModel,
     buildTransferPageQueryParams,
@@ -117,6 +116,7 @@
     createTransferFormState,
     createTransferSearchState,
     getTransferPaginationKey,
+    getTransferReportTitle,
     getTransferSourceOptions,
     getTransferStatusOptions,
     getTransferExceStatusOptions,
@@ -134,7 +134,7 @@
   const router = useRouter()
   const { t } = useI18n()
 
-  const reportTitle = TRANSFER_REPORT_TITLE
+  const reportTitle = computed(() => getTransferReportTitle(t))
   const searchForm = ref(createTransferSearchState())
   const typeOptions = ref([])
   const areaOptions = ref([])
@@ -177,7 +177,7 @@
       label: t('pages.orders.transfer.search.exceStatus'),
       key: 'exceStatus',
       type: 'select',
-      props: { clearable: true, options: getTransferExceStatusOptions() }
+      props: { clearable: true, options: getTransferExceStatusOptions(t) }
     },
     { label: t('pages.orders.transfer.search.orgWareName'), key: 'orgWareName', type: 'input', props: { clearable: true, placeholder: t('pages.orders.transfer.placeholder.orgWareName') } },
     { label: t('pages.orders.transfer.search.tarWareName'), key: 'tarWareName', type: 'input', props: { clearable: true, placeholder: t('pages.orders.transfer.placeholder.tarWareName') } },
@@ -187,7 +187,7 @@
       label: t('pages.orders.transfer.search.status'),
       key: 'status',
       type: 'select',
-      props: { clearable: true, options: getTransferStatusOptions() }
+      props: { clearable: true, options: getTransferStatusOptions(t) }
     },
     { label: t('pages.orders.transfer.search.memo'), key: 'memo', type: 'input', props: { clearable: true, placeholder: t('pages.orders.transfer.placeholder.memo') } }
   ])
@@ -205,7 +205,7 @@
         {},
         { timeoutMessage: t('pages.orders.transfer.messages.detailTimeout') }
       )
-      detailData.value = normalizeTransferDetailRecord(response)
+      detailData.value = normalizeTransferDetailRecord(response, t)
     } finally {
       detailLoading.value = false
     }
@@ -226,7 +226,7 @@
         { timeoutMessage: t('pages.orders.transfer.messages.ordersTimeout') }
       )
       const normalized = defaultResponseAdapter(response)
-      detailOrderRows.value = normalized.records.map((item) => normalizeTransferOrderRow(item))
+      detailOrderRows.value = normalized.records.map((item) => normalizeTransferOrderRow(item, t))
       detailOrderPagination.total = Number(normalized.total || 0)
       detailOrderPagination.current = Number(normalized.current || detailOrderPagination.current || 1)
       detailOrderPagination.size = Number(normalized.size || detailOrderPagination.size || 20)
@@ -349,7 +349,7 @@
       columnsFactory: () => createTransferTableColumns({ handleActionClick })
     },
     transform: {
-      dataTransformer: (records) => (Array.isArray(records) ? records.map((item) => normalizeTransferRow(item)) : [])
+      dataTransformer: (records) => (Array.isArray(records) ? records.map((item) => normalizeTransferRow(item, t)) : [])
     }
   })
 
@@ -454,11 +454,11 @@
         }
       }),
     resolvePrintRecords,
-    buildPreviewRows: (records) => buildTransferPrintRows(records),
+    buildPreviewRows: (records) => buildTransferPrintRows(records, t),
     buildPreviewMeta: (rows) => {
       const now = new Date()
       return {
-        reportTitle,
+        reportTitle: reportTitle.value,
         reportDate: now.toLocaleDateString('zh-CN'),
         printedAt: now.toLocaleString('zh-CN', { hour12: false }),
         operator: userStore.getUserInfo?.name || userStore.getUserInfo?.username || '',
@@ -478,7 +478,8 @@
     buildTransferReportMeta({
       previewMeta: rawPreviewMeta.value,
       count: previewRows.value.length,
-      orientation: rawPreviewMeta.value?.reportStyle?.orientation || TRANSFER_REPORT_STYLE.orientation
+      orientation: rawPreviewMeta.value?.reportStyle?.orientation || TRANSFER_REPORT_STYLE.orientation,
+      t
     })
   )
 

--
Gitblit v1.9.1