Compare commits

..
Author SHA1 Message Date
zlwuandCursor 6df6306ef0 fix(web-admin): 客服导出协议编号列改用样本编码
验收反馈要求客户服务管理导出表头「协议编号」填样本编码,避免与协议号混淆。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-06 11:52:45 +08:00
cykj 57049f17b0 Merge pull request 'feat(web-admin): 按采集大表导出预签约、自存、科研和客服表' (#66) from codex/issue-26-collection-ledger-b0b170257c35 into V2.0
按采集大表导出预签约、自存、科研和客服表。
2026-11-06 02:25:49 +00:00
2 changed files with 4 additions and 3 deletions

No files matched your search

@@ -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',
@@ -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),