feat(shipping-notice): 添加订单文档 Profile 盲测集和样本管理功能,支持创建、执行和批准盲测,增强订单冻结和库存核验功能

This commit is contained in:
hugo committed 2026-07-23 00:15:34 +08:00
1 parent c35223d49d
commit abd8fc1e16
98 files changed
+4629 -528

No files matched your search

@@ -101,6 +101,23 @@ describe('useChatShippingMenuHandler', () => {
);
});
it('reads the displayed order version before freezing through Chat Turn', async () => {
getWorkspaceShippingTask.mockResolvedValue({ order_data_version: 9 });
const ctx = createContext();
const { handleShippingMenuAction } = createShippingMenuHandlers(ctx);
await handleShippingMenuAction(
{ id: 'freeze_order', label: '冻结订单', message: '冻结已复核订单' },
undefined,
{ taskId: 'sn-freeze-901' },
);
expect(ctx.startChatTurn).toHaveBeenCalledWith(expect.objectContaining({
actionType: 'shipping.freeze_order',
payload: { task_no: 'SN-FREEZE-901', expected_order_data_version: 9 },
}));
});
it('passes explicit taskId into inventory picker actions', async () => {
const ctx = createContext();
const { handleShippingMenuAction } = createShippingMenuHandlers(ctx);