feat(shipping-notice): 实现滚动履约功能,优化发货通知流程与代码清理
清理废弃的ShippingCase相关代码与依赖,统一使用ShippingNotice直接关联客户数据。调整库存网关依赖规则,支持仅对库存满足或已人工放行的订单行生成发货Excel,实现滚动履约逻辑。
This commit is contained in:
1 parent
7cfd5d167e
commit
1e5aedb9ed
235 files changed
+11394
-9613
No files matched your search
@@ -154,6 +154,25 @@ describe('workbenchActionRegistry', () => {
|
||||
expect(resolved?.todoActionCode).toBe('retry_inventory_matching');
|
||||
});
|
||||
|
||||
it('routes reload inventory result through the formal Gate todo action', () => {
|
||||
const result = resolveProcessingActionPresentation(projection({
|
||||
uiState: {
|
||||
status: 'retryable', stage: 'inventory_preparation', blocking_reason: null,
|
||||
primary_action: { code: 'reload_inventory_result', label_key: 'x' }, secondary_actions: [],
|
||||
},
|
||||
currentGate: {
|
||||
gateCode: 'inventory_preparation',
|
||||
status: 'blocked_retryable',
|
||||
nextActionCode: 'reload_inventory_result',
|
||||
},
|
||||
}), { surface: 'review' });
|
||||
|
||||
const resolved = resolveWorkbenchActionItem(result.primary!, { postCreate: true });
|
||||
expect(result.primary?.intent).toBe('reload_inventory_result');
|
||||
expect(resolved?.reviewBehavior).toBe('todo_panel');
|
||||
expect(resolved?.todoActionCode).toBe('reload_inventory_result');
|
||||
});
|
||||
|
||||
it('shows RPA upload retry instead of manual upload entries when Gate 19 is blocked', () => {
|
||||
const result = resolveProcessingActionPresentation(projection({
|
||||
stage: 'freight_uploading',
|
||||
|
||||
Reference in new issue
Block a user