feat(库存报告): 匹配批次同时展示入库时间与生产日期(方案A),排序仍按入库时间倒序
This commit is contained in:
@@ -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 || ''}
|
||||
|
||||
@@ -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':
|
||||
|
||||
@@ -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':
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user