feat(in-transit-transfer): 自动调拨联动收料就绪并分层来源错误

- 调度整合:退役 in_transit_receipt_file_job,收料归档收敛 shipping_receipt_rpa_archive,排程注册表统一
- 自动调拨 Job:调拨前确保各来源当日收料文件就绪(缺失自动触发收料 RPA),严格等量匹配后生成 ERP 调拨单
- worker 手动唤醒:排程工作台支持手动唤醒与 runs 透视,heartbeat 协议同步
- 收料缺失幸存 T2:parse_failed 状态落库(迁移 q4c5)
- 来源错误分层与 stale 时钟换源:改挂 inventory_checked_at 库存查得时刻,展示阈值与执行门禁解耦(迁移 t5a6)
- 新增 wecom_sender 企微通知:每非空 Run 汇总一条,通知失败不影响 ERP 结果
- 同步排程工作台/调拨卡片前端、chat/admin 文案四语言、RPA 脚本与测试全家
This commit is contained in:
hugo committed 2026-09-30 00:20:06 +08:00
1 parent 993e581135
commit abf3d48927
144 files changed
+10161 -2132

No files matched your search

@@ -37,7 +37,7 @@ const FAILED_TICKET = {
created_at: '2026-09-20T08:00:00',
run_no: 'RUN-1',
items: [
{ invoice_no: 'INV-A', material_no: 'MAT-A', material_name: '物料A', lot_no: 'LOT-A', quantity: '500', unit: '个' },
{ invoice_no: 'INV-A', material_no: 'MAT-A', material_name: '物料A', lot_no: 'WTP26062302', quantity: '500', unit: '个' },
{ invoice_no: 'INV-B', material_no: 'MAT-B', material_name: '物料B', lot_no: 'LOT-B', quantity: '300', unit: 'PCS' },
],
};
@@ -161,6 +161,10 @@ describe('TransferExecutedOrders 已执行明细列表子视图', () => {
// [断言意图] 展开=invoice 粒度行明细(逐 Invoice 行可见)。
expect(items.text()).toContain('INV-A');
expect(items.text()).toContain('INV-B');
// [断言意图] 拨出批号上屏为外部形态(WTP→HOW 展示侧镜像,2026-09-29):
// 行数据保持文件原形 WTP26062302,展示必须转为 HOW26062302。
expect(items.text()).toContain('HOW26062302');
expect(items.text()).not.toContain('WTP26062302');
expect(wrapper.find('[data-testid="transfer-executed-retry-D-FAIL-1"]').exists()).toBe(true);
expect(wrapper.find('[data-testid="transfer-executed-close-D-FAIL-1"]').exists()).toBe(true);
});