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
@@ -81,7 +81,7 @@ describe('useChatShippingMenuHandler', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('uses explicit taskId for generate_excel via Chat Turn', async () => {
|
||||
it('does not dispatch legacy generate_excel Chat Turn', async () => {
|
||||
const ctx = createContext();
|
||||
const { handleShippingMenuAction } = createShippingMenuHandlers(ctx);
|
||||
|
||||
@@ -91,14 +91,22 @@ describe('useChatShippingMenuHandler', () => {
|
||||
{ taskId: 'sn-target-777' },
|
||||
);
|
||||
|
||||
expect(ctx.startChatTurn).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
inputType: 'action',
|
||||
actionType: 'shipping.generate_excel',
|
||||
payload: { task_no: 'SN-TARGET-777' },
|
||||
refs: expect.objectContaining({ task_no: 'SN-TARGET-777' }),
|
||||
}),
|
||||
expect(ctx.startChatTurn).not.toHaveBeenCalled();
|
||||
expect(ctx.refreshShippingActions).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('does not dispatch legacy match_inventory Chat Turn', async () => {
|
||||
const ctx = createContext();
|
||||
const { handleShippingMenuAction } = createShippingMenuHandlers(ctx);
|
||||
|
||||
await handleShippingMenuAction(
|
||||
{ id: 'match_inventory', label: '匹配库存', message: '请匹配库存' },
|
||||
undefined,
|
||||
{ taskId: 'sn-target-778' },
|
||||
);
|
||||
|
||||
expect(ctx.startChatTurn).not.toHaveBeenCalled();
|
||||
expect(ctx.refreshShippingActions).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('reads the displayed order version before freezing through Chat Turn', async () => {
|
||||
|
||||
Reference in new issue
Block a user