fix(web-admin): 科研捐赠导出补齐运费并按批次合并单元格
列表未返回样本运费批次导致运费列为空。导出按同一运费批次合并运输方式与运费列,并按模板对齐储存状态等字段。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
6be55186b0
commit
d413398b3d
6 files changed
+193
-17
No files matched your search
@@ -110,7 +110,18 @@ describe('flattenProtocolAuditRows', () => {
|
||||
infectiousDiseaseReportUrls: '',
|
||||
attachmentUrls: 'https://x/b.pdf',
|
||||
remark: '备注一',
|
||||
sampleItems: [{ sampleTypeName: 'NK', sampleCode: 'D2', labStorageCode: 'A1' }]
|
||||
sampleItems: [
|
||||
{
|
||||
sampleTypeName: 'NK',
|
||||
sampleCode: 'D2',
|
||||
labStorageCode: 'A1',
|
||||
freight: {
|
||||
id: 'fr-1',
|
||||
transportModeLabel: '专线车',
|
||||
freightAmountLabel: '100'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
])
|
||||
assert.equal(rows[0].monthlyVerifyNo, '202508001')
|
||||
@@ -122,6 +133,9 @@ describe('flattenProtocolAuditRows', () => {
|
||||
assert.equal(rows[0].infectiousDiseaseReportUrls, '')
|
||||
assert.equal(rows[0].attachmentUrls, 'https://x/b.pdf')
|
||||
assert.equal(rows[0].remark, '备注一')
|
||||
assert.equal(rows[0].freightId, 'fr-1')
|
||||
assert.equal(rows[0].freightTransportLabel, '专线车')
|
||||
assert.equal(rows[0].freightAmountLabel, '100')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user