fix(project): identify storage and donation assignments by sample codes

Replace order number columns with batched sample codes and support sample keyword searches without duplicating parent records. Preserve tenant and soft-delete boundaries, existing assignment writes and preview identifiers.

Related to issue #13. Independent static review completed; tests authored but not run under user self-test arrangement.
This commit is contained in:
zlwu committed 2026-11-04 14:27:57 +08:00
1 parent 74064e137c
commit 6e682f8d18
6 files changed
+64 -8

No files matched your search

+1
View File
@@ -32,6 +32,7 @@ export interface AssignmentRecord {
teamId: string | null
teamName: string | null
createTime: string | null
sampleCodes?: string
motherName?: string
motherPhone?: string
hospitalName?: string
@@ -22,12 +22,12 @@ const collectionColumns: AssignmentColumn[] = [
export const assignmentColumns: Record<AssignmentBizType, AssignmentColumn[]> = {
cell_storage: [
{ prop: 'bizNo', label: '协议单号', minWidth: 180 },
{ prop: 'sampleCodes', label: '样本编码', minWidth: 180 },
...collectionColumns,
{ prop: 'collectionDate', label: '采集日期', minWidth: 140 }
],
research_donation: [
{ prop: 'bizNo', label: '捐赠单号', minWidth: 180 },
{ prop: 'sampleCodes', label: '样本编码', minWidth: 180 },
...collectionColumns,
{ prop: 'donationDate', label: '捐赠日期', minWidth: 140 }
],
@@ -49,8 +49,8 @@ export const assignmentColumns: Record<AssignmentBizType, AssignmentColumn[]> =
}
export const assignmentKeywordHints: Record<AssignmentBizType, string> = {
cell_storage: '协议单号 / 母亲姓名、电话 / 医院 / 市场专员',
research_donation: '捐赠单号 / 母亲姓名、电话 / 医院 / 市场专员',
cell_storage: '样本编码 / 母亲姓名、电话 / 医院 / 市场专员',
research_donation: '样本编码 / 母亲姓名、电话 / 医院 / 市场专员',
pilot_service: '申请单号、名称 / 渠道 / 服务订单 / 患者姓名、电话',
basic_experiment: '申请单号 / 课题 / 客户名称、联系人、电话'
}