fix(web-admin): 样本接收弹窗不展示协议附件项

验收要求仅展示知情同意书与孕妇健康调查表,移除第三项「协议附件」分组。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-11-05 23:00:37 +08:00
1 parent 00635740f1
commit 9f37181478
2 files changed
+3 -10

No files matched your search

@@ -37,17 +37,13 @@ export function getConsentProtocolAttachment(
/**
* 样本接收弹窗:按来源返回质检需查看的协议附件分组。
* 细胞存储:知情同意书 / 孕妇健康调查表 / 协议附件(评论优先前两项)
* 细胞存储:仅知情同意书 / 孕妇健康调查表(不展示「协议附件」项)
* 科研捐赠:知情同意书 / 传染病检测报告 / 其他附件
* 兼容 attachments 别名(协议详情字段名)。
*/
export function getSourceProtocolAttachmentGroups(
row: Record<string, unknown>
): ProtocolSourceAttachmentMeta[] {
const source = String(row.sourceType || 'cell_storage').trim()
const protocolFiles = normalizeAttachmentFiles(
row.protocolAttachmentFiles ?? row.attachments
)
if (source === 'research_donation') {
return [
{
@@ -72,10 +68,6 @@ export function getSourceProtocolAttachmentGroups(
{
label: '孕妇健康调查表',
files: normalizeAttachmentFiles(row.healthSurveyAttachmentFiles)
},
{
label: '协议附件',
files: protocolFiles
}
]
}