feat(shipping-notice): 完成货代发货通知全门禁恢复MVP收口
完成全门禁恢复MVP版本交付:调整自动上传与重试配置,重构正式执行链路;修复多处代码bug,新增测试与审计工具;更新全流程文档与契约规范。
This commit is contained in:
1 parent
8e0bbf7a81
commit
c94d173f92
181 files changed
+12947
-1724
No files matched your search
@@ -124,6 +124,42 @@ describe('workbenchActionRegistry', () => {
|
||||
expect(result.secondary).toBeNull();
|
||||
});
|
||||
|
||||
it('shows RPA upload retry instead of manual upload entries when Gate 19 is blocked', () => {
|
||||
const result = resolveProcessingActionPresentation(projection({
|
||||
stage: 'freight_uploading',
|
||||
currentGate: {
|
||||
gateCode: 'freight_upload_rpa',
|
||||
status: 'blocked',
|
||||
nextActionCode: 'retry_freight_upload_rpa',
|
||||
blockingReasonCode: 'upload_rpa_failed',
|
||||
attemptNo: 1,
|
||||
},
|
||||
availableActions: ['download_excel', 'mark_manual_uploaded'],
|
||||
}), { surface: 'review', actionsExecutable: true });
|
||||
|
||||
expect(result.primary?.actionCode).toBe('retry_freight_upload_rpa');
|
||||
expect(result.primary?.intent).toBe('retry');
|
||||
expect(result.secondary?.actionCode).toBe('download_excel');
|
||||
expect(result.overflow.map((item) => item.actionCode)).not.toContain('mark_manual_uploaded');
|
||||
});
|
||||
|
||||
it('does not turn the admin todo-regeneration recovery action into manual upload', () => {
|
||||
const result = resolveProcessingActionPresentation(projection({
|
||||
stage: 'freight_uploading',
|
||||
currentGate: {
|
||||
gateCode: 'manual_upload_handoff',
|
||||
status: 'blocked',
|
||||
nextActionCode: 'regenerate_manual_upload_todo',
|
||||
blockingReasonCode: 'manual_upload_todo_missing',
|
||||
attemptNo: 1,
|
||||
},
|
||||
availableActions: ['download_excel'],
|
||||
}), { surface: 'review', actionsExecutable: true });
|
||||
|
||||
expect(result.primary?.actionCode).toBe('download_excel');
|
||||
expect(result.overflow.map((item) => item.actionCode)).not.toContain('regenerate_manual_upload_todo');
|
||||
});
|
||||
|
||||
it('hides confirm_customer when customer panel unavailable', () => {
|
||||
const warn = vi.spyOn(console, 'warn').mockImplementation(() => undefined);
|
||||
expect(shouldRenderWorkbenchAction(WORKBENCH_ACTION_REGISTRY.confirm_customer, {
|
||||
|
||||
Reference in new issue
Block a user