fix(shipping-notice,admin-schedule,frontend): 修复发货通知与后台排程的业务bug并优化各模块功能
1. 后端发货通知模块:
清空重试任务旧状态避免残留,新增RPA进度回调接口
优化库存匹配性能,修复人工确认校验逻辑与登录弹窗遮挡问题
新增排程worker启动脚本,清理冗余环境配置与缓存查询开销
2. 前端后台排程模块:
新增任务key归一化工具兼容历史格式,修复参数表单隐藏问题
添加加载错误处理,更新多语言文案替换裸JSON占位符
This commit is contained in:
1 parent
1e5aedb9ed
commit
06c18b3c7c
81 files changed
+3301
-424
No files matched your search
@@ -2632,16 +2632,27 @@ describe('ShippingOrderReviewView layout phase 1', () => {
|
||||
summary: {}, steps: [],
|
||||
},
|
||||
} as any);
|
||||
// 完成面改版后按「已上传通知聚合」消费同一份 freight groups;仅 uploaded 通知进入完成面。
|
||||
vi.mocked(taskApi.getWorkspaceShippingFreightNoticeGroups).mockResolvedValue({
|
||||
po_number: 'PO-100',
|
||||
items: [
|
||||
{ business_no: 'WYC26082401', po_number: 'PO-100', upload_status: 'uploaded', export_file_name: 'WYC26082401.xlsx', lines: [
|
||||
{ line_no: '00010', part_number: 'PART-A', reservation_id: 'RSV-A', qty: '2' },
|
||||
] },
|
||||
{ business_no: 'WYC26082402', po_number: 'PO-100', upload_status: 'pending', export_file_name: 'WYC26082402.xlsx', lines: [] },
|
||||
],
|
||||
} as any);
|
||||
|
||||
const wrapper = await mountView({ lifecycle_stage: 'upload_complete' });
|
||||
await flushPromises();
|
||||
|
||||
const evidence = wrapper.get('[data-testid="review-lifecycle-upload-complete"]');
|
||||
expect(evidence.text()).toContain('succeeded');
|
||||
expect(evidence.text()).not.toContain('LATEST-FAILED');
|
||||
// 只展示已上传通知(uploaded),未上传(pending)不进入完成面。
|
||||
expect(evidence.text()).toContain('WYC26082401');
|
||||
expect(evidence.text()).not.toContain('WYC26082402');
|
||||
// 人工确认不再展示或依赖货代回执号,即使历史投影仍带有 freight_ref_no。
|
||||
expect(evidence.text()).not.toContain('LEGACY-REF-MUST-NOT-BE-SHOWN');
|
||||
expect(evidence.text()).not.toContain('failed');
|
||||
expect(evidence.text()).not.toContain('LATEST-FAILED');
|
||||
expect(wrapper.find('[data-testid="review-current-task-primary-action"]').exists()).toBe(false);
|
||||
expect(wrapper.find('[data-testid="review-current-processing-retry"]').exists()).toBe(false);
|
||||
});
|
||||
@@ -2894,7 +2905,8 @@ describe('ShippingOrderReviewView audit and progress recovery', () => {
|
||||
expect(wrapper.find('[data-testid="review-confirm-outcome"]').exists()).toBe(false);
|
||||
expect(wrapper.find('[data-testid="retry-auto-progress-after-confirm"]').exists()).toBe(false);
|
||||
expect(wrapper.find('[data-testid="review-current-processing-retry"]').exists()).toBe(false);
|
||||
expect(wrapper.find('[data-testid="review-current-processing-ot"]').text()).toContain('SN-RECOVER-1');
|
||||
// 发货通知单号与订单明细行绑定,不在任务级整单显示;当前任务卡不展示单条通知单号。
|
||||
expect(wrapper.find('[data-testid="review-current-processing-ot"]').exists()).toBe(false);
|
||||
}, 15000);
|
||||
|
||||
it('does not submit an action before the formal OT Gate projection arrives (UI-01)', async () => {
|
||||
@@ -3168,7 +3180,8 @@ describe('ShippingOrderReviewView audit and progress recovery', () => {
|
||||
await flushPromises();
|
||||
expect(wrapper.find('[data-testid="review-confirm-create"]').exists()).toBe(false);
|
||||
expect(wrapper.find('[data-testid="review-current-processing-retry"]').exists()).toBe(false);
|
||||
expect(wrapper.find('[data-testid="review-current-processing-ot"]').text()).toContain('SN-CONFIRM-PROGRESS-FAIL');
|
||||
// 发货通知单号随订单明细绑定,不在任务级整单展示;当前任务卡不含单条通知单号。
|
||||
expect(wrapper.find('[data-testid="review-current-processing-ot"]').exists()).toBe(false);
|
||||
}, 15000);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user