feat(in-transit-transfer): 异常恢复一键重建预检并支持按行批量处理

- 新增 resume_service:可恢复阻断行按(来源×收料日期)分组重建范围预检,收料文件不可用自动触发 RPA 重抓,单组失败不影响其余组
- precheck 新增 list_recent_prechecks 最近预检入口:未执行未过期可继续执行,解决预检卡关闭后无处恢复
- manual_close 支持按 item_ids 批量关闭并带审计,retry/backlog 配合按行口径调整
- 前端三区接线换新:首页待办/预检卡/待处理异常接恢复与批量动作,新增 transferDate 日期工具与 e2e 用例
- i18n chat/errors 四语言同步,technical.md 与 funclist 更新,落行归属解耦与 ERP 写路径两份实施计划
This commit is contained in:
hugo committed 2026-09-23 15:30:07 +08:00
1 parent 42b271f92b
commit 556d3fd3db
35 files changed
+2895 -121

No files matched your search

@@ -10,6 +10,7 @@ import { mount } from '@vue/test-utils';
import { describe, expect, it } from 'vitest';
import i18n from '@/i18n';
import TransferSourceSelectCard from './TransferSourceSelectCard.vue';
import { eligibleReceiptDateTo } from './transferDate';
const readySources = [
{ source_code: 'DBS-AWSBI', display_name: 'AWSBI 在途仓', platform: 'dbs', enabled: true, has_ready_file: true, file_status: 'ready' },
@@ -85,7 +86,33 @@ describe('TransferSourceSelectCard', () => {
it('D+1 规则提示收进 ⓘ 悬浮(title),不再平铺占宽', () => {
// [断言意图] 长规则文案通过原生 title 渐进披露,紧凑日期行不换行错位。
const wrapper = mountCard();
expect(wrapper.find('[data-testid="transfer-source-date-hint"]').attributes('title')).toBe('截止不超出 D+1 规则(业务日期前一天)');
const title = wrapper.find('[data-testid="transfer-source-date-hint"]').attributes('title') ?? '';
expect(title).toContain('D+1 规则');
expect(title).toContain('业务日期前一天');
});
it('收料日期默认为 D+1 规则日期(T-1)且上限锁定(输入期限制)', () => {
// [断言意图] 默认值与 max 均为上海口径 T-1,未来日期在选择器层面不可选。
const wrapper = mountCard();
const from = wrapper.find('[data-testid="transfer-source-date-from"]').element as HTMLInputElement;
const to = wrapper.find('[data-testid="transfer-source-date-to"]').element as HTMLInputElement;
const cutoff = eligibleReceiptDateTo();
expect(from.value).toBe(cutoff);
expect(to.value).toBe(cutoff);
expect(from.max).toBe(cutoff);
expect(to.max).toBe(cutoff);
});
it('起始晚于截止时行内提示并禁用确认(不等提交报错)', async () => {
// [断言意图] 日期维护期即时卡控:非法区间直接禁用确认并显示行内红字。
const wrapper = mountCard();
await wrapper.find('[data-testid="transfer-source-option-DBS-AWSBI"] input').setValue(true);
await wrapper.find('[data-testid="transfer-source-date-from"]').setValue('2026-09-20');
await wrapper.find('[data-testid="transfer-source-date-to"]').setValue('2026-09-10');
expect(wrapper.find('[data-testid="transfer-source-date-invalid"]').exists()).toBe(true);
expect((wrapper.find('[data-testid="transfer-source-confirm"]').element as HTMLButtonElement).disabled).toBe(true);
await wrapper.find('[data-testid="transfer-source-date-to"]').setValue('2026-09-22');
expect(wrapper.find('[data-testid="transfer-source-date-invalid"]').exists()).toBe(false);
});
it('“只选可重试”勾选无文件/失败来源', async () => {