feat(shipping-notice): 升级货代发货流程为五阶段,完善业务校验
将货代发货流程从四阶段扩展为五阶段,拆分上传相关逻辑至独立的货代上传阶段; 统一多语言文案修正客户状态语义,将"客户尚未识别"调整为符合业务的"客户尚未确认"; 新增严格的上传成功验证谓词,需同时满足任务状态、全部预约单上传成功、存在有效成功上传尝试三个条件方可标记为完成; 新增坐标取值模型配置,支持Legacy冻结绝对坐标和锚点框架受限平移两种模式; 更新全链路相关文档、前端组件、后端服务与测试用例,确保业务逻辑对齐新业务规则。
This commit is contained in:
1 parent
1b6483a4ea
commit
935bf26fa6
86 files changed
+2743
-311
No files matched your search
@@ -1235,7 +1235,9 @@ describe('conversationProcessingProjection — normalize & semantic & stabilize'
|
||||
}],
|
||||
waiting_human: [], processing: [], completed: [], cancelled: [], archived: [],
|
||||
},
|
||||
four_stage_nodes: [{ code: 'intake_parse', label_key: 'shipping.stage.intake', status: 'blocked' }],
|
||||
lifecycle_nodes: [{ code: 'intake_parse', label_key: 'shipping.stage.intake', status: 'blocked' }],
|
||||
// 兼容字段故意给出不同值,验证适配层优先消费 lifecycle_nodes。
|
||||
four_stage_nodes: [{ code: 'upload_complete', label_key: 'shipping.stage.complete', status: 'passed' }],
|
||||
output_artifacts: [{ order_task_no: 'OT-API-1', filename: 'shipping.xlsx', type: 'excel', status: 'ready', action: { code: 'download_excel', enabled: true } }],
|
||||
} as unknown as ConversationProcessingProjection;
|
||||
|
||||
@@ -1247,9 +1249,10 @@ describe('conversationProcessingProjection — normalize & semantic & stabilize'
|
||||
expect(eml.uiState?.primary_action?.i18nKey).toBe('shipping.retry');
|
||||
expect(eml.aggregateChildren?.[0]?.uiState?.primary_action?.code).toBe('retry');
|
||||
expect(eml.aggregateChildren?.[0]?.sourceSummary.filename).toBe('a.pdf');
|
||||
// 批次统计、四阶段与产物均是后端事实,适配时不得从附件重算或丢失。
|
||||
// 批次统计、五阶段与产物均是后端事实,适配时不得从附件重算或丢失。
|
||||
expect(normalized.summary.total_files).toBe(7);
|
||||
expect(normalized.four_stage_nodes).toEqual([{ code: 'intake_parse', label_key: 'shipping.stage.intake', status: 'blocked' }]);
|
||||
expect(normalized.lifecycle_nodes).toEqual([{ code: 'intake_parse', label_key: 'shipping.stage.intake', status: 'blocked' }]);
|
||||
expect(normalized.four_stage_nodes).toEqual([{ code: 'upload_complete', label_key: 'shipping.stage.complete', status: 'passed' }]);
|
||||
expect(normalized.output_artifacts?.[0]?.action.enabled).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user