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/orders/asn-order/asnOrderPage.helpers.js | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/rsf-design/src/views/orders/asn-order/asnOrderPage.helpers.js b/rsf-design/src/views/orders/asn-order/asnOrderPage.helpers.js
index 6bf4f06..3c58d73 100644
--- a/rsf-design/src/views/orders/asn-order/asnOrderPage.helpers.js
+++ b/rsf-design/src/views/orders/asn-order/asnOrderPage.helpers.js
@@ -1,4 +1,6 @@
-export const ASN_ORDER_REPORT_TITLE = '鍏ュ簱閫氱煡鍗曟姤琛�'
+import { $t } from '@/locales'
+
+export const ASN_ORDER_REPORT_TITLE = $t('pages.orders.asnOrder.reportTitle')
export const ASN_ORDER_REPORT_STYLE = {
titleAlign: 'center',
titleLevel: 'strong',
@@ -8,13 +10,13 @@
}
const ASN_ORDER_STATUS_MAP = {
- 0: { label: '鏈墽琛�', tagType: 'info' },
- 1: { label: '鎵ц涓�', tagType: 'warning' },
- 2: { label: '鏀惰揣瀹屾垚', tagType: 'success' },
- 3: { label: '浠诲姟鎵ц涓�', tagType: 'warning' },
- 4: { label: '宸插畬鎴�', tagType: 'success' },
- 8: { label: '鍙栨秷', tagType: 'danger' },
- 9: { label: '宸插叧闂�', tagType: 'info' }
+ 0: { label: $t('pages.orders.asnOrder.status.pending'), tagType: 'info' },
+ 1: { label: $t('pages.orders.asnOrder.status.running'), tagType: 'warning' },
+ 2: { label: $t('pages.orders.asnOrder.status.receiving'), tagType: 'success' },
+ 3: { label: $t('pages.orders.asnOrder.status.taskRunning'), tagType: 'warning' },
+ 4: { label: $t('pages.orders.asnOrder.status.completed'), tagType: 'success' },
+ 8: { label: $t('pages.orders.asnOrder.status.cancelled'), tagType: 'danger' },
+ 9: { label: $t('pages.orders.asnOrder.status.closed'), tagType: 'info' }
}
function normalizeText(value) {
@@ -241,22 +243,22 @@
return [
{
key: 'view',
- label: '鏌ョ湅璇︽儏',
+ label: $t('pages.orders.asnOrder.actions.view'),
icon: 'ri:eye-line'
},
{
key: 'items',
- label: '鏀惰揣鏄庣粏',
+ label: $t('pages.orders.asnOrder.actions.items'),
icon: 'ri:list-check-3'
},
{
key: 'print',
- label: '鎵撳嵃',
+ label: $t('pages.orders.asnOrder.actions.print'),
icon: 'ri:printer-line'
},
{
key: 'complete',
- label: '瀹屾垚',
+ label: $t('pages.orders.asnOrder.actions.complete'),
icon: 'ri:check-line',
color: 'var(--el-color-success)',
disabled: !normalizedRow.canComplete
--
Gitblit v1.9.1