diff --git a/web-admin/src/views/cell-storage/sample-info/UnifiedSampleInfoPage.vue b/web-admin/src/views/cell-storage/sample-info/UnifiedSampleInfoPage.vue index 8ea14bda..3adbef69 100644 --- a/web-admin/src/views/cell-storage/sample-info/UnifiedSampleInfoPage.vue +++ b/web-admin/src/views/cell-storage/sample-info/UnifiedSampleInfoPage.vue @@ -243,7 +243,7 @@ - + @@ -510,6 +510,7 @@ donationStatusTagType, handleDoneFlagLabel, handleDoneFlagTagType, + newbornSexLabel, protocolStatusDisplayLabel, protocolStatusTagType, sampleCollectionFlagLabel, @@ -571,11 +572,11 @@ const codeCorrectionVisible = ref(false) const codeCorrectionOldCode = ref('') - function sexLabel(sex: unknown) { - const s = String(sex || '').trim() - if (s === '1' || s === '男') return '男' - if (s === '2' || s === '女') return '女' - return s || '—' + /** 与协议表单一致:'1'=男,'0'=女;空值显示 —(勿与客户 sexLabel 0男1女混淆) */ + function formatNewbornSex(sex: unknown) { + const s = sex == null || sex === '' ? '' : String(sex).trim() + if (!s) return '—' + return newbornSexLabel(s) || '—' } function openStorageCertQcEdit(row: Record) {