feat(web-admin): show external target on temporary QC task view section

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-20 10:41:53 +08:00
1 parent ae248961cc
commit ef8a50a52b
1 file changed
+13 -7
@@ -1041,17 +1041,23 @@
if (r.etaTime) {
transportFields.push({ label: '预计到达', value: r.etaTime })
}
const external = String(d.externalTargetCode || '').trim()
const cellProductSection: ViewSection[] = isTempQc
? [
{
title: '质检对象',
fields: [
{ label: '产品编码', value: d.cellProductCode || '—' },
{ label: '产品名称', value: d.cellProductName || '—' },
{ label: '产品类型', value: d.cellProductTypeName || '—' },
{ label: '代次', value: d.cellProductPassage || '—' },
{ label: '规格', value: resolveCellProductSpecDisplay(d) || '—' }
]
fields: external
? [
{ label: '外部编号', value: external },
{ label: '对象来源', value: '外部', tagType: 'warning' as const }
]
: [
{ label: '产品编码', value: d.cellProductCode || '—' },
{ label: '产品名称', value: d.cellProductName || '—' },
{ label: '产品类型', value: d.cellProductTypeName || '—' },
{ label: '代次', value: d.cellProductPassage || '—' },
{ label: '规格', value: resolveCellProductSpecDisplay(d) || '—' }
]
}
]
: []