feat: 交叉验证 AI vs LAMP(#15,一致确认/不一致升级会诊)

This commit is contained in:
weijuesen
2026-08-12 18:00:02 +08:00
parent 6f367d19ae
commit 1798b2909e
9 changed files with 199 additions and 0 deletions
+2
View File
@@ -11,6 +11,8 @@ export interface LampTest {
resultImageUrl?: string;
operatorId?: string;
resultedAt?: string;
crossStatus?: string;
crossReason?: string;
note?: string;
createdAt?: string;
}
+23
View File
@@ -94,6 +94,19 @@ function LampTab() {
render: (_, r) => <Tag color={r.status === 'resulted' ? 'green' : 'default'}>{STATUS_LABELS[r.status] || r.status}</Tag>,
},
{ title: '结果', dataIndex: 'result', search: false, render: (_, r) => (r.result ? RESULT_LABELS[r.result] || r.result : '-') },
{
title: '交叉验证',
dataIndex: 'crossStatus',
search: false,
render: (_, r) =>
r.crossStatus === 'consistent' ? (
<Tag color="green"></Tag>
) : r.crossStatus === 'inconsistent' ? (
<Tag color="red"></Tag>
) : (
'-'
),
},
{ title: '创建时间', dataIndex: 'createdAt', search: false, render: (_, r) => (r.createdAt ? dayjs(r.createdAt).format('YYYY-MM-DD HH:mm') : '-') },
{
title: '操作',
@@ -211,6 +224,16 @@ function LampTab() {
]}
/>
</Form.Item>
{resultTarget?.crossStatus && resultTarget.crossStatus !== 'pending' ? (
<div style={{ marginBottom: 12 }}>
<Tag color={resultTarget.crossStatus === 'consistent' ? 'green' : 'red'}>
{resultTarget.crossStatus === 'consistent' ? '交叉验证:一致' : '交叉验证:不一致'}
</Tag>
{resultTarget.crossReason ? (
<span style={{ marginLeft: 8, color: '#666' }}>{resultTarget.crossReason}</span>
) : null}
</div>
) : null}
<Form.Item label="结果照片">
<Upload
listType="picture-card"