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/manager/task/modules/task-expand-panel.vue |   34 ++++++++++++++++++----------------
 1 files changed, 18 insertions(+), 16 deletions(-)

diff --git a/rsf-design/src/views/manager/task/modules/task-expand-panel.vue b/rsf-design/src/views/manager/task/modules/task-expand-panel.vue
index 9028100..80fa06f 100644
--- a/rsf-design/src/views/manager/task/modules/task-expand-panel.vue
+++ b/rsf-design/src/views/manager/task/modules/task-expand-panel.vue
@@ -1,15 +1,15 @@
 <template>
   <div class="rounded-xl bg-[var(--el-fill-color-blank)] px-4 py-4">
     <div class="mb-3 flex items-center justify-between">
-      <div class="text-sm font-medium text-[var(--art-gray-900)]">浠诲姟鏄庣粏</div>
-      <ElButton text size="small" :loading="loading" @click="loadData">鍒锋柊</ElButton>
+      <div class="text-sm font-medium text-[var(--art-gray-900)]">{{ t('pages.task.expand.title') }}</div>
+      <ElButton text size="small" :loading="loading" @click="loadData">{{ t('common.actions.refresh') }}</ElButton>
     </div>
 
     <ArtTable
       :loading="loading"
       :data="rows"
       :columns="columns"
-      empty-text="鏆傛棤浠诲姟鏄庣粏"
+      :empty-text="t('pages.task.expand.empty')"
       :empty-height="'220px'"
     />
   </div>
@@ -17,6 +17,7 @@
 
 <script setup>
   import { onMounted, ref, watch } from 'vue'
+  import { useI18n } from 'vue-i18n'
   import { guardRequestWithMessage } from '@/utils/sys/requestGuard'
   import { fetchTaskItemPage } from '@/api/task'
   import { normalizeTaskItemRow } from '../taskPage.helpers'
@@ -30,76 +31,77 @@
 
   const loading = ref(false)
   const rows = ref([])
+  const { t } = useI18n()
 
   const columns = [
     {
       type: 'globalIndex',
-      label: '搴忓彿',
+      label: t('table.index'),
       width: 72,
       align: 'center'
     },
     {
       prop: 'orderTypeLabel',
-      label: '鍗曟嵁绫诲瀷',
+      label: t('pages.task.expand.orderType'),
       minWidth: 120,
       showOverflowTooltip: true
     },
     {
       prop: 'wkTypeLabel',
-      label: '涓氬姟绫诲瀷',
+      label: t('pages.task.expand.wkType'),
       minWidth: 120,
       showOverflowTooltip: true
     },
     {
       prop: 'platWorkCode',
-      label: '宸ュ崟鍙�',
+      label: t('pages.task.expand.platWorkCode'),
       minWidth: 150,
       showOverflowTooltip: true
     },
     {
       prop: 'platItemId',
-      label: '琛屽彿',
+      label: t('pages.task.expand.platItemId'),
       minWidth: 100,
       showOverflowTooltip: true
     },
     {
       prop: 'matnrCode',
-      label: '鐗╂枡缂栫爜',
+      label: t('table.materialCode'),
       minWidth: 150,
       showOverflowTooltip: true
     },
     {
       prop: 'maktx',
-      label: '鐗╂枡鍚嶇О',
+      label: t('table.materialName'),
       minWidth: 220,
       showOverflowTooltip: true
     },
     {
       prop: 'batch',
-      label: '鎵规',
+      label: t('table.batch'),
       minWidth: 140,
       showOverflowTooltip: true
     },
     {
       prop: 'unit',
-      label: '鍗曚綅',
+      label: t('table.unit'),
       width: 100
     },
     {
       prop: 'anfme',
-      label: '鏁伴噺',
+      label: t('pages.task.expand.anfme'),
       width: 100,
       align: 'right'
     },
     {
       prop: 'updateByText',
-      label: '鏇存柊浜�',
+      label: t('table.updateBy'),
       minWidth: 120,
       showOverflowTooltip: true
     },
     {
       prop: 'updateTimeText',
-      label: '鏇存柊鏃堕棿',
+      label: t('table.updateTime'),
       minWidth: 180,
       showOverflowTooltip: true
     }
@@ -120,7 +122,7 @@
           pageSize: 50
         }),
         { records: [] },
-        { timeoutMessage: '浠诲姟鏄庣粏鍔犺浇瓒呮椂锛屽凡鍋滄绛夊緟' }
+        { timeoutMessage: t('pages.task.messages.itemsTimeout') }
       )
       rows.value = Array.isArray(response?.records)
         ? response.records.map((record) => normalizeTaskItemRow(record))

--
Gitblit v1.9.1