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
@@ -718,6 +718,37 @@ describe('ShippingOrderReviewView layout phase 1', () => {
|
||||
expect(wrapper.find('[data-testid="review-confirm-create"]').exists()).toBe(false);
|
||||
});
|
||||
|
||||
it('renders a persistent result panel for a completed formal task', async () => {
|
||||
activeCase.value = {
|
||||
...activeCase.value,
|
||||
status: 'confirmed',
|
||||
confirmed_task_no: 'SN-MOCK',
|
||||
confirmed_task_id: 1,
|
||||
has_formal_ot: true,
|
||||
current_stage: { code: 'completed', label_key: 'completed' },
|
||||
automation: { status: 'completed', can_auto_create: false, can_build: false },
|
||||
};
|
||||
const taskApi = await import('@/features/chat/api/shipping.api');
|
||||
vi.mocked(taskApi.getWorkspaceShippingTask).mockResolvedValueOnce({
|
||||
task_no: 'SN-MOCK',
|
||||
status: 'completed',
|
||||
process_status: 'uploaded',
|
||||
upload_status: 'uploaded',
|
||||
lines: [],
|
||||
line_results: [{
|
||||
part_number: 'PN-1', reservation_id: 'RES-1', required_qty: 2,
|
||||
available_qty: 2, shortage_qty: 0, line_status: 'ok',
|
||||
}],
|
||||
export_artifacts: [{ id: 1, artifact_no: 'EXP-1', status: 'ready', file_name: 'result.xlsx' }],
|
||||
events: [],
|
||||
ui_state: { action_buttons: [], summary: {}, process_gate: null },
|
||||
} as any);
|
||||
const wrapper = await mountView();
|
||||
expect(wrapper.find('[data-testid="review-formal-task-result-region"]').exists()).toBe(true);
|
||||
expect(wrapper.find('[data-testid="review-formal-task-result-panel"]').text()).toContain('PN-1');
|
||||
expect(wrapper.find('[data-testid="review-formal-task-result-download"]').exists()).toBe(true);
|
||||
});
|
||||
|
||||
it('renders empty optional schema fields as editable line columns', async () => {
|
||||
const wrapper = await mountView();
|
||||
const inputs = wrapper.findAll('[data-testid="review-line-field-input"]');
|
||||
|
||||
Reference in new issue
Block a user