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/modules/bas-station-area-dialog.vue |   91 +++++++++++++++++++++++----------------------
 1 files changed, 47 insertions(+), 44 deletions(-)

diff --git a/rsf-design/src/views/basic-info/bas-station-area/modules/bas-station-area-dialog.vue b/rsf-design/src/views/basic-info/bas-station-area/modules/bas-station-area-dialog.vue
index 698219f..03f889c 100644
--- a/rsf-design/src/views/basic-info/bas-station-area/modules/bas-station-area-dialog.vue
+++ b/rsf-design/src/views/basic-info/bas-station-area/modules/bas-station-area-dialog.vue
@@ -22,8 +22,8 @@
 
     <template #footer>
       <span class="dialog-footer">
-        <ElButton @click="handleCancel">鍙栨秷</ElButton>
-        <ElButton type="primary" @click="handleSubmit">纭畾</ElButton>
+        <ElButton @click="handleCancel">{{ t('common.cancel') }}</ElButton>
+        <ElButton type="primary" @click="handleSubmit">{{ t('common.confirm') }}</ElButton>
       </span>
     </template>
   </ElDialog>
@@ -31,6 +31,7 @@
 
 <script setup>
   import { computed, nextTick, reactive, ref, watch } from 'vue'
+  import { useI18n } from 'vue-i18n'
   import ArtForm from '@/components/core/forms/art-form/index.vue'
   import {
     buildBasStationAreaDialogModel,
@@ -51,68 +52,71 @@
   })
 
   const emit = defineEmits(['update:visible', 'submit'])
+  const { t } = useI18n()
   const formRef = ref()
   const form = reactive(createBasStationAreaFormState())
 
   const isEdit = computed(() => props.dialogType === 'edit')
-  const dialogTitle = computed(() => (isEdit.value ? '缂栬緫绔欑偣鍖哄煙' : '鏂板绔欑偣鍖哄煙'))
+  const dialogTitle = computed(() =>
+    t(isEdit.value ? 'pages.basicInfo.basStationArea.dialog.titleEdit' : 'pages.basicInfo.basStationArea.dialog.titleAdd')
+  )
 
   const rules = computed(() => ({
-    stationAreaName: [{ required: true, message: '璇疯緭鍏ョ珯鐐瑰尯鍩熷悕绉�', trigger: 'blur' }],
-    stationAreaId: [{ required: true, message: '璇疯緭鍏ョ珯鐐瑰尯鍩熺紪鍙�', trigger: 'blur' }],
-    type: [{ required: true, message: '璇烽�夋嫨绔欑偣绫诲瀷', trigger: 'change' }],
-    area: [{ required: true, message: '璇烽�夋嫨鎵�灞炲簱鍖�', trigger: 'change' }],
-    containerType: [{ type: 'array', required: true, message: '璇烽�夋嫨瀹瑰櫒绫诲瀷', trigger: 'change' }],
-    stationAlias: [{ type: 'array', required: true, message: '璇烽�夋嫨绔欑偣鍒悕', trigger: 'change' }]
+    stationAreaName: [{ required: true, message: t('pages.basicInfo.basStationArea.dialog.validation.stationAreaName'), trigger: 'blur' }],
+    stationAreaId: [{ required: true, message: t('pages.basicInfo.basStationArea.dialog.validation.stationAreaId'), trigger: 'blur' }],
+    type: [{ required: true, message: t('pages.basicInfo.basStationArea.dialog.validation.type'), trigger: 'change' }],
+    area: [{ required: true, message: t('pages.basicInfo.basStationArea.dialog.validation.area'), trigger: 'change' }],
+    containerType: [{ type: 'array', required: true, message: t('pages.basicInfo.basStationArea.dialog.validation.containerType'), trigger: 'change' }],
+    stationAlias: [{ type: 'array', required: true, message: t('pages.basicInfo.basStationArea.dialog.validation.stationAlias'), trigger: 'change' }]
   }))
 
   const formItems = computed(() => [
     {
-      label: '绔欑偣鍖哄煙鍚嶇О',
+      label: t('pages.basicInfo.basStationArea.dialog.stationAreaName'),
       key: 'stationAreaName',
       type: 'input',
       props: {
-        placeholder: '璇疯緭鍏ョ珯鐐瑰尯鍩熷悕绉�',
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.stationAreaName'),
         clearable: true
       }
     },
     {
-      label: '绔欑偣鍖哄煙缂栧彿',
+      label: t('pages.basicInfo.basStationArea.dialog.stationAreaId'),
       key: 'stationAreaId',
       type: 'input',
       props: {
-        placeholder: '璇疯緭鍏ョ珯鐐瑰尯鍩熺紪鍙�',
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.stationAreaId'),
         clearable: true
       }
     },
     {
-      label: '绔欑偣绫诲瀷',
+      label: t('pages.basicInfo.basStationArea.dialog.type'),
       key: 'type',
       type: 'select',
       props: {
-        placeholder: '璇烽�夋嫨绔欑偣绫诲瀷',
+        placeholder: t('pages.basicInfo.basStationArea.search.type'),
         clearable: true,
         options: getBasStationAreaTypeOptions()
       }
     },
     {
-      label: '鎵�灞炲簱鍖�',
+      label: t('pages.basicInfo.basStationArea.dialog.area'),
       key: 'area',
       type: 'select',
       props: {
-        placeholder: '璇烽�夋嫨鎵�灞炲簱鍖�',
+        placeholder: t('pages.basicInfo.basStationArea.search.area'),
         clearable: true,
         filterable: true,
         options: props.areaOptions || []
       }
     },
     {
-      label: '鍙法鍖哄簱鍖�',
+      label: t('pages.basicInfo.basStationArea.dialog.crossZoneArea'),
       key: 'crossZoneArea',
       type: 'select',
       span: 24,
       props: {
-        placeholder: '璇烽�夋嫨鍙法鍖哄簱鍖�',
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.crossZoneArea'),
         clearable: true,
         multiple: true,
         collapseTags: true,
@@ -121,12 +125,12 @@
       }
     },
     {
-      label: '瀹瑰櫒绫诲瀷',
+      label: t('pages.basicInfo.basStationArea.dialog.containerType'),
       key: 'containerType',
       type: 'select',
       span: 24,
       props: {
-        placeholder: '璇烽�夋嫨瀹瑰櫒绫诲瀷',
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.containerType'),
         clearable: true,
         multiple: true,
         collapseTags: true,
@@ -135,12 +139,12 @@
       }
     },
     {
-      label: '绔欑偣鍒悕',
+      label: t('pages.basicInfo.basStationArea.dialog.stationAlias'),
       key: 'stationAlias',
       type: 'select',
       span: 24,
       props: {
-        placeholder: '璇烽�夋嫨绔欑偣鍒悕',
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.stationAlias'),
         clearable: true,
         multiple: true,
         collapseTags: true,
@@ -149,106 +153,106 @@
       }
     },
     {
-      label: '鍙叆',
+      label: t('pages.basicInfo.basStationArea.dialog.inAble'),
       key: 'inAble',
       type: 'select',
       props: {
-        placeholder: '璇烽�夋嫨鍙叆',
+        placeholder: t('pages.basicInfo.basStationArea.search.inAble'),
         clearable: true,
         options: getBasStationAreaBinaryOptions()
       }
     },
     {
-      label: '鍙嚭',
+      label: t('pages.basicInfo.basStationArea.dialog.outAble'),
       key: 'outAble',
       type: 'select',
       props: {
-        placeholder: '璇烽�夋嫨鍙嚭',
+        placeholder: t('pages.basicInfo.basStationArea.search.outAble'),
         clearable: true,
         options: getBasStationAreaBinaryOptions()
       }
     },
     {
-      label: '鏄惁璺ㄥ尯',
+      label: t('pages.basicInfo.basStationArea.dialog.isCrossZone'),
       key: 'isCrossZone',
       type: 'select',
       props: {
-        placeholder: '璇烽�夋嫨鏄惁璺ㄥ尯',
+        placeholder: t('pages.basicInfo.basStationArea.search.isCrossZone'),
         clearable: true,
         options: getBasStationAreaBinaryOptions()
       }
     },
     {
-      label: '鏄惁WCS',
+      label: t('pages.basicInfo.basStationArea.dialog.isWcs'),
       key: 'isWcs',
       type: 'select',
       props: {
-        placeholder: '璇烽�夋嫨鏄惁WCS',
+        placeholder: t('pages.basicInfo.basStationArea.search.isWcs'),
         clearable: true,
         options: getBasStationAreaBinaryOptions()
       }
     },
     {
-      label: '鑷姩璋冩嫧',
+      label: t('pages.basicInfo.basStationArea.dialog.autoTransfer'),
       key: 'autoTransfer',
       type: 'select',
       props: {
-        placeholder: '璇烽�夋嫨鑷姩璋冩嫧',
+        placeholder: t('pages.basicInfo.basStationArea.search.autoTransfer'),
         clearable: true,
         options: getBasStationAreaBinaryOptions()
       }
     },
     {
-      label: '浣跨敤鐘舵��',
+      label: t('pages.basicInfo.basStationArea.dialog.useStatus'),
       key: 'useStatus',
       type: 'select',
       props: {
-        placeholder: '璇烽�夋嫨浣跨敤鐘舵��',
+        placeholder: t('pages.basicInfo.basStationArea.search.useStatus'),
         clearable: true,
         filterable: true,
         options: props.useStatusOptions || []
       }
     },
     {
-      label: 'WCS鏁版嵁',
+      label: t('pages.basicInfo.basStationArea.dialog.wcsData'),
       key: 'wcsData',
       type: 'input',
       span: 24,
       props: {
         type: 'textarea',
         rows: 3,
-        placeholder: '璇疯緭鍏CS鏁版嵁',
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.wcsData'),
         clearable: true
       }
     },
     {
-      label: '鏉$爜',
+      label: t('pages.basicInfo.basStationArea.dialog.barcode'),
       key: 'barcode',
       type: 'input',
       props: {
-        placeholder: '璇疯緭鍏ユ潯鐮�',
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.barcode'),
         clearable: true
       }
     },
     {
-      label: '鐘舵��',
+      label: t('pages.basicInfo.basStationArea.dialog.status'),
       key: 'status',
       type: 'select',
       props: {
-        placeholder: '璇烽�夋嫨鐘舵��',
+        placeholder: t('pages.basicInfo.basStationArea.search.status'),
         clearable: true,
         options: getBasStationAreaStatusOptions()
       }
     },
     {
-      label: '澶囨敞',
+      label: t('pages.basicInfo.basStationArea.dialog.memo'),
       key: 'memo',
       type: 'input',
       span: 24,
       props: {
         type: 'textarea',
         rows: 3,
-        placeholder: '璇疯緭鍏ュ娉�',
+        placeholder: t('pages.basicInfo.basStationArea.placeholder.memo'),
         clearable: true
       }
     }
@@ -304,4 +308,3 @@
     { deep: true }
   )
 </script>
-

--
Gitblit v1.9.1