feat(库存报告): 匹配批次同时展示入库时间与生产日期(方案A),排序仍按入库时间倒序
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s

This commit is contained in:
Ubuntu
2026-10-20 22:08:54 +08:00
parent dee4ee2e3c
commit eab91c266e
4 changed files with 5 additions and 2 deletions
@@ -375,7 +375,7 @@ const ManualBatchPicker: React.FC<{
{t('inventory.batchReport.candidateBatch')}: {r.batch_no || '—'}
</span>
<span className="app-foreground-muted">
{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)}` : ''}
</span>
<span className="app-foreground-muted">
{r.available_qty ?? '—'} {r.unit || ''}
@@ -475,7 +475,7 @@ const ReportCard: React.FC<{
{t('inventory.batchReport.candidateBatch')}: {c.batch_no || '—'}
</span>
<span className="app-foreground-muted">
{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)}` : ''}
</span>
<span className="app-foreground-muted">
{c.available_qty ?? '—'} {c.unit || ''}
+1
View File
@@ -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':
+1
View File
@@ -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':
+1
View File
@@ -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':