feat(web-admin): temporary QC external target code UI
Add source toggle in create/edit dialog, API types, and list/detail display. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
caca786051
commit
ae248961cc
5 files changed
+102
-14
No files matched your search
@@ -175,6 +175,11 @@ const temporaryFields: CardMetaField[] = [
|
||||
getValue: (row) => row.productionWorkOrderNo || '—',
|
||||
visible: (row) => isTemporaryQcFromProduction(row)
|
||||
},
|
||||
{
|
||||
label: '质检对象',
|
||||
getValue: (row) => String(row.externalTargetCode || '').trim() || '—',
|
||||
visible: (row) => !!(row.externalTargetCode || '').trim()
|
||||
},
|
||||
{
|
||||
label: '产品名称',
|
||||
getValue: (row) => formatTempCellProductField(row, row.cellProductName)
|
||||
@@ -396,8 +401,10 @@ export function resolveInboundWorkOrderCardTitle(row: QcWorkOrder): string {
|
||||
return String(row.labStorageCode || '').trim() || '—'
|
||||
}
|
||||
|
||||
/** 临时质检 · 工单卡片主标题(展示细胞产品编码) */
|
||||
/** 临时质检 · 工单卡片主标题(外部编号优先,否则细胞产品编码) */
|
||||
export function resolveTemporaryWorkOrderCardTitle(row: QcWorkOrder): string {
|
||||
const external = String(row.externalTargetCode || '').trim()
|
||||
if (external) return external
|
||||
return formatTempCellProductField(row, row.cellProductCode)
|
||||
}
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ export function tabUsesInfusionTimeFilter(tab: QcWorkOrderTabConfig): boolean {
|
||||
|
||||
export function keywordPlaceholderForTab(tab: QcWorkOrderTabConfig): string {
|
||||
if (tab.key === 'all') return '工单号 / 样本编码 / 母亲姓名 / 申请单号 / 产品名称等'
|
||||
if (tab.key === 'temporary') return '工单号'
|
||||
if (tab.key === 'temporary') return '工单号 / 外部编号'
|
||||
if (tab.key === 'outbound_basic_experiment') {
|
||||
return '工单号/申请单号/课题名称/客户'
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user