From 6df6306ef0290a40bd78f68f69307131f28fdd91 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Fri, 6 Nov 2026 11:52:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(web-admin):=20=E5=AE=A2=E6=9C=8D=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=8D=8F=E8=AE=AE=E7=BC=96=E5=8F=B7=E5=88=97=E6=94=B9?= =?UTF-8?q?=E7=94=A8=E6=A0=B7=E6=9C=AC=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 验收反馈要求客户服务管理导出表头「协议编号」填样本编码,避免与协议号混淆。 Co-authored-by: Cursor --- web-admin/src/utils/collection-ledger-export.test.ts | 5 +++-- web-admin/src/utils/collection-ledger-export.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web-admin/src/utils/collection-ledger-export.test.ts b/web-admin/src/utils/collection-ledger-export.test.ts index d2a1738e..fba8db49 100644 --- a/web-admin/src/utils/collection-ledger-export.test.ts +++ b/web-admin/src/utils/collection-ledger-export.test.ts @@ -157,14 +157,15 @@ describe('buildResearchLedgerRows', () => { }) describe('buildCustomerServiceLedgerRows', () => { - it('keeps identity numbers as text columns', () => { + it('fills protocol-number column with sample code', () => { const [row] = buildCustomerServiceLedgerRows([ { labStorageCode: 'B0000002', protocolStatus: 'sxz', smsSendDate: '20250908', smsSendStatus: '已发', - protocolNo: 'ZKZX34000852', + sampleCode: 'ZKZX34000852', + protocolNo: 'PROTO-SHOULD-NOT-EXPORT', motherName: '高居巧', motherPhone: '17860507206', motherIdCard: '370911199712254424', diff --git a/web-admin/src/utils/collection-ledger-export.ts b/web-admin/src/utils/collection-ledger-export.ts index 3a145af9..ae5836f2 100644 --- a/web-admin/src/utils/collection-ledger-export.ts +++ b/web-admin/src/utils/collection-ledger-export.ts @@ -492,7 +492,7 @@ export function buildCustomerServiceLedgerRows(rows: Row[]): string[][] { String(index + 1), formatLedgerDate(row.smsSendDate), text(row.smsSendStatus), - text(row.protocolNo), + text(row.sampleCode), text(row.motherName), text(row.motherPhone), text(row.motherIdCard), -- 2.54.0