From 7c2bffa1a495cc4a3a263f654c08c231009c5c4e Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 02 四月 2026 10:59:45 +0800
Subject: [PATCH] #i18n

---
 rsf-design/src/views/basic-info/bas-station-area/index.vue |   90 +++++++++++++++++++++++----------------------
 1 files changed, 46 insertions(+), 44 deletions(-)

diff --git a/rsf-design/src/views/basic-info/bas-station-area/index.vue b/rsf-design/src/views/basic-info/bas-station-area/index.vue
index 9ec13a5..a3d8b83 100644
--- a/rsf-design/src/views/basic-info/bas-station-area/index.vue
+++ b/rsf-design/src/views/basic-info/bas-station-area/index.vue
@@ -12,9 +12,9 @@
       <ArtTableHeader v-model:columns="columnChecks" :loading="loading" @refresh="refreshData">
         <template #left>
           <ElSpace wrap>
-            <ElButton v-auth="'add'" @click="handleShowDialog('add')" v-ripple
-              >鏂板绔欑偣鍖哄煙</ElButton
-            >
+            <ElButton v-auth="'add'" @click="handleShowDialog('add')" v-ripple>
+              {{ t('pages.basicInfo.basStationArea.actions.add') }}
+            </ElButton>
             <ElButton
               v-auth="'delete'"
               type="danger"
@@ -22,7 +22,7 @@
               @click="handleBatchDelete"
               v-ripple
             >
-              鎵归噺鍒犻櫎
+              {{ t('common.actions.batchDelete') }}
             </ElButton>
             <ListExportPrint
               class="inline-flex"
@@ -77,6 +77,7 @@
 <script setup>
   import { computed, onMounted, ref } from 'vue'
   import { ElMessage } from 'element-plus'
+  import { useI18n } from 'vue-i18n'
   import ListExportPrint from '@/components/biz/list-export-print/index.vue'
   import { useAuth } from '@/hooks/core/useAuth'
   import { useTable } from '@/hooks/core/useTable'
@@ -126,6 +127,7 @@
 
   const { hasAuth } = useAuth()
   const userStore = useUserStore()
+  const { t } = useI18n()
 
   const searchForm = ref(createBasStationAreaSearchState())
   const detailDrawerVisible = ref(false)
@@ -192,56 +194,56 @@
 
   const searchItems = computed(() => [
     {
-      label: '鍏抽敭瀛�',
+      label: t('pages.basicInfo.basStationArea.search.condition'),
       key: 'condition',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ョ珯鐐瑰尯鍩熷悕绉�/缂栧彿/澶囨敞'
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.condition')
       }
     },
     {
-      label: '寮�濮嬫椂闂�',
+      label: t('pages.basicInfo.basStationArea.search.timeStart'),
       key: 'timeStart',
       type: 'date',
       props: {
         clearable: true,
         type: 'date',
         valueFormat: 'YYYY-MM-DD',
-        placeholder: '璇烽�夋嫨寮�濮嬫椂闂�'
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.timeStart')
       }
     },
     {
-      label: '缁撴潫鏃堕棿',
+      label: t('pages.basicInfo.basStationArea.search.timeEnd'),
       key: 'timeEnd',
       type: 'date',
       props: {
         clearable: true,
         type: 'date',
         valueFormat: 'YYYY-MM-DD',
-        placeholder: '璇烽�夋嫨缁撴潫鏃堕棿'
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.timeEnd')
       }
     },
     {
-      label: '绔欑偣鍖哄煙鍚嶇О',
+      label: t('pages.basicInfo.basStationArea.search.stationAreaName'),
       key: 'stationAreaName',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ョ珯鐐瑰尯鍩熷悕绉�'
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.stationAreaName')
       }
     },
     {
-      label: '绔欑偣鍖哄煙缂栧彿',
+      label: t('pages.basicInfo.basStationArea.search.stationAreaId'),
       key: 'stationAreaId',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ョ珯鐐瑰尯鍩熺紪鍙�'
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.stationAreaId')
       }
     },
     {
-      label: '绔欑偣绫诲瀷',
+      label: t('pages.basicInfo.basStationArea.search.type'),
       key: 'type',
       type: 'select',
       props: {
@@ -250,7 +252,7 @@
       }
     },
     {
-      label: '鎵�灞炲簱鍖�',
+      label: t('pages.basicInfo.basStationArea.search.area'),
       key: 'area',
       type: 'select',
       props: {
@@ -260,7 +262,7 @@
       }
     },
     {
-      label: '浣跨敤鐘舵��',
+      label: t('pages.basicInfo.basStationArea.search.useStatus'),
       key: 'useStatus',
       type: 'select',
       props: {
@@ -270,7 +272,7 @@
       }
     },
     {
-      label: '鍙叆',
+      label: t('pages.basicInfo.basStationArea.search.inAble'),
       key: 'inAble',
       type: 'select',
       props: {
@@ -279,7 +281,7 @@
       }
     },
     {
-      label: '鍙嚭',
+      label: t('pages.basicInfo.basStationArea.search.outAble'),
       key: 'outAble',
       type: 'select',
       props: {
@@ -288,7 +290,7 @@
       }
     },
     {
-      label: '鏄惁璺ㄥ尯',
+      label: t('pages.basicInfo.basStationArea.search.isCrossZone'),
       key: 'isCrossZone',
       type: 'select',
       props: {
@@ -297,16 +299,16 @@
       }
     },
     {
-      label: '璺ㄥ尯鍖哄煙',
+      label: t('pages.basicInfo.basStationArea.search.crossZoneArea'),
       key: 'crossZoneArea',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ヨ法鍖哄尯鍩�'
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.crossZoneArea')
       }
     },
     {
-      label: '鏄惁WCS',
+      label: t('pages.basicInfo.basStationArea.search.isWcs'),
       key: 'isWcs',
       type: 'select',
       props: {
@@ -315,25 +317,25 @@
       }
     },
     {
-      label: 'WCS鏁版嵁',
+      label: t('pages.basicInfo.basStationArea.search.wcsData'),
       key: 'wcsData',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏CS鏁版嵁'
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.wcsData')
       }
     },
     {
-      label: '瀹瑰櫒绫诲瀷',
+      label: t('pages.basicInfo.basStationArea.search.containerType'),
       key: 'containerType',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ュ鍣ㄧ被鍨�'
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.containerType')
       }
     },
     {
-      label: '鑷姩璋冩嫧',
+      label: t('pages.basicInfo.basStationArea.search.autoTransfer'),
       key: 'autoTransfer',
       type: 'select',
       props: {
@@ -342,25 +344,25 @@
       }
     },
     {
-      label: '鏉$爜',
+      label: t('pages.basicInfo.basStationArea.search.barcode'),
       key: 'barcode',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ユ潯鐮�'
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.barcode')
       }
     },
     {
-      label: '绔欑偣鍒悕',
+      label: t('pages.basicInfo.basStationArea.search.stationAlias'),
       key: 'stationAlias',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ョ珯鐐瑰埆鍚�'
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.stationAlias')
       }
     },
     {
-      label: '鐘舵��',
+      label: t('pages.basicInfo.basStationArea.search.status'),
       key: 'status',
       type: 'select',
       props: {
@@ -369,12 +371,12 @@
       }
     },
     {
-      label: '澶囨敞',
+      label: t('pages.basicInfo.basStationArea.search.memo'),
       key: 'memo',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ュ娉�'
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.memo')
       }
     }
   ])
@@ -387,7 +389,7 @@
         fetchBasStationAreaDetail(row.id),
         {},
         {
-          timeoutMessage: '绔欑偣鍖哄煙璇︽儏鍔犺浇瓒呮椂锛屽凡鍋滄绛夊緟'
+          timeoutMessage: t('pages.basicInfo.basStationArea.messages.detailTimeout')
         }
       )
       detailData.value = normalizeBasStationAreaDetailRecord(detail, {
@@ -401,7 +403,7 @@
     } catch (error) {
       detailDrawerVisible.value = false
       detailData.value = {}
-      ElMessage.error(error?.message || '鑾峰彇绔欑偣鍖哄煙璇︽儏澶辫触')
+      ElMessage.error(error?.message || t('pages.basicInfo.basStationArea.messages.detailLoadFailed'))
     } finally {
       detailLoading.value = false
     }
@@ -430,7 +432,7 @@
         ),
         { records: [] },
         {
-          timeoutMessage: '绔欑偣鍒悕閫夐」鍔犺浇瓒呮椂锛屽凡鍋滄绛夊緟'
+          timeoutMessage: t('pages.basicInfo.basStationArea.messages.stationAliasTimeout')
         }
       )
       stationOptions.value = resolveBasStationAreaStationOptions(
@@ -457,12 +459,12 @@
         fetchBasStationAreaDetail(row.id),
         {},
         {
-          timeoutMessage: '绔欑偣鍖哄煙璇︽儏鍔犺浇瓒呮椂锛屽凡鍋滄绛夊緟'
+          timeoutMessage: t('pages.basicInfo.basStationArea.messages.detailTimeout')
         }
       )
       await handleShowDialog('edit', detail)
     } catch (error) {
-      ElMessage.error(error?.message || '鑾峰彇绔欑偣鍖哄煙璇︽儏澶辫触')
+      ElMessage.error(error?.message || t('pages.basicInfo.basStationArea.messages.detailLoadFailed'))
     }
   }
 
@@ -531,7 +533,7 @@
     saveRequest: fetchSaveBasStationArea,
     updateRequest: fetchUpdateBasStationArea,
     deleteRequest: fetchDeleteBasStationArea,
-    entityName: '绔欑偣鍖哄煙',
+    entityName: t('pages.basicInfo.basStationArea.entity'),
     resolveRecordLabel: (record) => record?.stationAreaName || record?.stationAreaId || record?.id,
     refreshCreate,
     refreshUpdate,
@@ -605,7 +607,7 @@
 
   async function loadAreaOptions() {
     const response = await guardRequestWithMessage(fetchWarehouseAreasList(), [], {
-      timeoutMessage: '搴撳尯閫夐」鍔犺浇瓒呮椂锛屽凡鍋滄绛夊緟'
+      timeoutMessage: t('pages.basicInfo.basStationArea.messages.areaOptionsTimeout')
     })
     const options = resolveBasStationAreaWarehouseAreaOptions(
       defaultResponseAdapter(response).records
@@ -623,7 +625,7 @@
         status: 1
       }),
       { records: [] },
-      { timeoutMessage: '瀹瑰櫒绫诲瀷閫夐」鍔犺浇瓒呮椂锛屽凡鍋滄绛夊緟' }
+      { timeoutMessage: t('pages.basicInfo.basStationArea.messages.containerTypeTimeout') }
     )
     containerTypeOptions.value = resolveBasStationAreaContainerTypeOptions(
       defaultResponseAdapter(response).records
@@ -639,7 +641,7 @@
         status: 1
       }),
       { records: [] },
-      { timeoutMessage: '浣跨敤鐘舵�侀�夐」鍔犺浇瓒呮椂锛屽凡鍋滄绛夊緟' }
+      { timeoutMessage: t('pages.basicInfo.basStationArea.messages.useStatusTimeout') }
     )
     useStatusOptions.value = resolveBasStationAreaUseStatusOptions(
       defaultResponseAdapter(response).records

--
Gitblit v1.9.1