diff --git a/web/src/i18n/lang/en.ts b/web/src/i18n/lang/en.ts index 6aff4e5..0243854 100644 --- a/web/src/i18n/lang/en.ts +++ b/web/src/i18n/lang/en.ts @@ -12,6 +12,7 @@ export default { }, router: { home: 'Home', + dashboard: 'Dashboard', system: 'System MGT', config: 'General MGT', log: 'Log MGT', diff --git a/web/src/i18n/lang/zh-cn.ts b/web/src/i18n/lang/zh-cn.ts index cf6fb4d..17011a8 100644 --- a/web/src/i18n/lang/zh-cn.ts +++ b/web/src/i18n/lang/zh-cn.ts @@ -49,6 +49,7 @@ export default { }, router: { home: '首页', + dashboard: '仪表盘', system: '系统管理', config: '常规配置', log: '日志管理', diff --git a/web/src/i18n/lang/zh-tw.ts b/web/src/i18n/lang/zh-tw.ts index 01cc961..7234ba7 100644 --- a/web/src/i18n/lang/zh-tw.ts +++ b/web/src/i18n/lang/zh-tw.ts @@ -12,6 +12,7 @@ export default { }, router: { home: '首頁', + dashboard: '儀表盤', system: '系統設置', config: '常規配置', log: '日誌管理', diff --git a/web/src/views/pissupplier/quotation/crud.tsx b/web/src/views/pissupplier/quotation/crud.tsx index dd91c6c..d173441 100644 --- a/web/src/views/pissupplier/quotation/crud.tsx +++ b/web/src/views/pissupplier/quotation/crud.tsx @@ -85,9 +85,9 @@ type Quote = { type SummaryRow = { section: string; amount: number; isSubtotal?: boolean } /** 与杂采询价列表列展示一致 */ -export const buyingMethodDict = [ - { value: 1, label: '询价' }, - { value: 2, label: '招标' } +export const buyingMethodDict = (t: Function) => [ + { value: 1, label: t('message.pages.pissupplier.quotation.buyingMethodInquiry') }, + { value: 2, label: t('message.pages.pissupplier.quotation.buyingMethodBid') } ] export function formatQuoteDeadlineDisplay(value: unknown) { diff --git a/web/src/views/pissupplier/quotation/index.vue b/web/src/views/pissupplier/quotation/index.vue index a93a748..cf33c28 100644 --- a/web/src/views/pissupplier/quotation/index.vue +++ b/web/src/views/pissupplier/quotation/index.vue @@ -199,7 +199,7 @@ const crudOptions = { buyingMethod: { title: t('message.pages.pissupplier.quotation.buyingMethod'), type: 'dict-select', - dict: dict({ data: buyingMethodDict }), + dict: dict({ data: buyingMethodDict(t) }), search: { show: true, component: { props: { placeholder: t('message.pages.pissupplier.quotation.buyingMethod'), clearable: true } } @@ -210,7 +210,7 @@ const crudOptions = { const v = value ?? row?.buyingMethod const n = Number(v) if (!Number.isFinite(n)) return v != null && v !== '' ? String(v) : '' - return buyingMethodDict.find((d) => d.value === n)?.label ?? String(v) + return buyingMethodDict(t).find((d: any) => d.value === n)?.label ?? String(v) } } },