From eab91c266ea74779c91f6238dcfc4463b50cec52 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 20 Oct 2026 22:08:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BA=93=E5=AD=98=E6=8A=A5=E5=91=8A):=20?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E6=89=B9=E6=AC=A1=E5=90=8C=E6=97=B6=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=85=A5=E5=BA=93=E6=97=B6=E9=97=B4=E4=B8=8E=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E6=97=A5=E6=9C=9F=EF=BC=88=E6=96=B9=E6=A1=88A?= =?UTF-8?q?=EF=BC=89=EF=BC=8C=E6=8E=92=E5=BA=8F=E4=BB=8D=E6=8C=89=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E6=97=B6=E9=97=B4=E5=80=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/inventory/BatchReportUploadModal.tsx | 4 ++-- src/i18n/locales/en/inventory.ts | 1 + src/i18n/locales/id/inventory.ts | 1 + src/i18n/locales/zh-CN/inventory.ts | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/inventory/BatchReportUploadModal.tsx b/src/components/inventory/BatchReportUploadModal.tsx index 73de756..59ea369 100644 --- a/src/components/inventory/BatchReportUploadModal.tsx +++ b/src/components/inventory/BatchReportUploadModal.tsx @@ -375,7 +375,7 @@ const ManualBatchPicker: React.FC<{ {t('inventory.batchReport.candidateBatch')}: {r.batch_no || '—'} - {r.inbound_at || (r.production_date ? String(r.production_date).slice(0, 10) : '—')} + {r.inbound_at ? `${t('inventory.batchReport.inboundAt')} ${r.inbound_at}` : '—'}{r.production_date ? ` · ${t('inventory.col.prodDate')} ${String(r.production_date).slice(0, 10)}` : ''} {r.available_qty ?? '—'} {r.unit || ''} @@ -475,7 +475,7 @@ const ReportCard: React.FC<{ {t('inventory.batchReport.candidateBatch')}: {c.batch_no || '—'} - {c.inbound_at || c.production_date || '—'} + {c.inbound_at ? `${t('inventory.batchReport.inboundAt')} ${c.inbound_at}` : '—'}{c.production_date ? ` · ${t('inventory.col.prodDate')} ${String(c.production_date).slice(0, 10)}` : ''} {c.available_qty ?? '—'} {c.unit || ''} diff --git a/src/i18n/locales/en/inventory.ts b/src/i18n/locales/en/inventory.ts index 3542126..50d1007 100644 --- a/src/i18n/locales/en/inventory.ts +++ b/src/i18n/locales/en/inventory.ts @@ -393,6 +393,7 @@ export const inventory: MessageDict = { 'batchReport.type.quarantine': 'Quarantine certificate', 'batchReport.type.annual': 'Annual inspection', 'batchReport.presentCount': '{n} report(s)', + 'batchReport.inboundAt': 'Inbound', 'batchReport.button': 'Upload report', 'batchReport.title': 'Upload report', 'batchReport.hint': diff --git a/src/i18n/locales/id/inventory.ts b/src/i18n/locales/id/inventory.ts index 0154389..f627350 100644 --- a/src/i18n/locales/id/inventory.ts +++ b/src/i18n/locales/id/inventory.ts @@ -400,6 +400,7 @@ export const inventory: MessageDict = { 'batchReport.type.quarantine': 'Sertifikat karantina', 'batchReport.type.annual': 'Inspeksi tahunan', 'batchReport.presentCount': '{n} laporan', + 'batchReport.inboundAt': 'Masuk', 'batchReport.button': 'Unggah laporan', 'batchReport.title': 'Unggah laporan', 'batchReport.hint': diff --git a/src/i18n/locales/zh-CN/inventory.ts b/src/i18n/locales/zh-CN/inventory.ts index b058762..3ebebe5 100644 --- a/src/i18n/locales/zh-CN/inventory.ts +++ b/src/i18n/locales/zh-CN/inventory.ts @@ -392,6 +392,7 @@ export const inventory: MessageDict = { 'batchReport.type.quarantine': '检疫证明', 'batchReport.type.annual': '年度检测', 'batchReport.presentCount': '存在 {n} 个', + 'batchReport.inboundAt': '入库', 'batchReport.button': '上传报告', 'batchReport.title': '上传报告', 'batchReport.hint':