feat(in-transit-transfer): 更新证据下载与待匹配清单逻辑

- 修改证据下载接口,分别签发预览地址与带保存名的下载地址,避免浏览器使用对象键哈希作为保存名。
- 待匹配清单接口调整,按外部单号合计数量,不再返回外部项次,提升数据展示的清晰度。
- 移除待匹配桶的「清空并重新解析」功能,简化操作流程,确保用户体验一致性。
- 新增跨页全选支持的 API,允许用户在待处理池中选择全部待处理明细 ID,优化批量操作体验。
This commit is contained in:
hugo committed 2026-10-22 22:08:20 +08:00
1 parent 4c2a7e2a23
commit 663f401873
50 files changed
+2156 -1309

No files matched your search

@@ -430,8 +430,8 @@ describe('TransferSourceSelectCard', () => {
it('只在清单第一行显示重新解析,点击不发出 retry', async () => {
transferApiMocks.listEvidenceFiles.mockResolvedValue([
{ file_id: 25, original_filename: 'outbound_TRIG-BATCH-A629464D_DBS-AWSBI_NA_20261021101739.xlsx', created_at: '2026-10-21T10:00:00', sha256: 'abc', file_size: 10, presigned_url: 'https://files.example/current' },
{ file_id: 9, original_filename: 'older.xlsx', created_at: '2026-10-20T10:00:00', sha256: 'def', file_size: 10, presigned_url: 'https://files.example/older' },
{ file_id: 25, original_filename: 'outbound_TRIG-BATCH-A629464D_DBS-AWSBI_NA_20261021101739.xlsx', created_at: '2026-10-21T10:00:00', sha256: 'abc', file_size: 10, presigned_url: 'https://files.example/current', download_url: 'https://files.example/current?filename=DBS-AWSBI_20261021_1800.xlsx' },
{ file_id: 9, original_filename: 'older.xlsx', created_at: '2026-10-20T10:00:00', sha256: 'def', file_size: 10, presigned_url: 'https://files.example/older', download_url: 'https://files.example/older?filename=DBS-AWSBI_20261020_1800.xlsx' },
]);
transferApiMocks.reparseCurrentFile.mockResolvedValue({
source_code: 'DBS-AWSBI', record_kind: 'inbound', ok: true, file_status: 'ready',
@@ -447,8 +447,12 @@ describe('TransferSourceSelectCard', () => {
// [断言意图] 行内对齐排程包的来源名,不展示 Worker 落盘名;完整原名在 title。
const list = wrapper.get('[data-testid="transfer-evidence-list-DBS-AWSBI-inbound"]');
expect(list.text()).toContain('DBS-AWSBI.xlsx');
expect(list.text()).toContain('10-21 18:00');
expect(list.text()).not.toContain('10-21 10:00');
expect(list.text()).not.toContain('TRIG-BATCH');
expect(list.get('p').attributes('title')).toContain('outbound_TRIG-BATCH-A629464D_DBS-AWSBI_NA_20261021101739.xlsx');
expect(list.get('p').attributes('title')).toContain('2026-10-21 18:00');
expect(wrapper.get('[data-testid="transfer-evidence-download-25"]').attributes('href')).toBe('https://files.example/current?filename=DBS-AWSBI_20261021_1800.xlsx');
expect(wrapper.text()).not.toContain('older.xlsx');
expect(wrapper.text()).not.toContain('abc');
const buttons = wrapper.findAll('[data-testid="transfer-evidence-reparse-DBS-AWSBI-inbound"]');