feat(shipping-notice): 升级货代发货流程为五阶段,完善业务校验
将货代发货流程从四阶段扩展为五阶段,拆分上传相关逻辑至独立的货代上传阶段; 统一多语言文案修正客户状态语义,将"客户尚未识别"调整为符合业务的"客户尚未确认"; 新增严格的上传成功验证谓词,需同时满足任务状态、全部预约单上传成功、存在有效成功上传尝试三个条件方可标记为完成; 新增坐标取值模型配置,支持Legacy冻结绝对坐标和锚点框架受限平移两种模式; 更新全链路相关文档、前端组件、后端服务与测试用例,确保业务逻辑对齐新业务规则。
This commit is contained in:
1 parent
1b6483a4ea
commit
935bf26fa6
86 files changed
+2743
-311
No files matched your search
@@ -946,7 +946,7 @@ export function resolveConversationProcessingFromUnified(
|
||||
stabilizer?: { hasSeenOrderTaskBefore?(conversationId?: string | null): boolean; markSeen?(conversationId?: string | null): void; reset?(conversationId?: string | null): void; conversationId?: string | null },
|
||||
): ConversationProcessingProjection | null {
|
||||
const items = Array.isArray(workItems) ? workItems : [];
|
||||
// [AUTHORITY] conversation_processing.status_groups 与 four_stage_nodes / ui_state
|
||||
// [AUTHORITY] conversation_processing.status_groups 与 lifecycle_nodes / ui_state
|
||||
// 同属后端一次裁决。即使顶层 work_items 非空,也不得前端二次聚合或用旧快照覆盖。
|
||||
if (embedded && typeof embedded === 'object' && embedded.status_groups) {
|
||||
return normalizeConversationProcessingProjection(embedded);
|
||||
@@ -1035,11 +1035,11 @@ export function normalizeConversationProcessingProjection(
|
||||
: null)
|
||||
),
|
||||
targetLifecycleStage: (
|
||||
['intake_parse', 'order_review', 'fulfillment_prep', 'upload_complete'].includes(
|
||||
['intake_parse', 'order_review', 'fulfillment_prep', 'freight_upload', 'upload_complete'].includes(
|
||||
String(rawAction.targetLifecycleStage),
|
||||
)
|
||||
? rawAction.targetLifecycleStage
|
||||
: (['intake_parse', 'order_review', 'fulfillment_prep', 'upload_complete'].includes(
|
||||
: (['intake_parse', 'order_review', 'fulfillment_prep', 'freight_upload', 'upload_complete'].includes(
|
||||
String(rawAction.target_lifecycle_stage),
|
||||
)
|
||||
? rawAction.target_lifecycle_stage
|
||||
@@ -1192,7 +1192,8 @@ export function normalizeConversationProcessingProjection(
|
||||
completed,
|
||||
history,
|
||||
status_groups: normalizedGroups || projection.status_groups,
|
||||
four_stage_nodes: projection.four_stage_nodes || [],
|
||||
lifecycle_nodes: projection.lifecycle_nodes || projection.four_stage_nodes || [],
|
||||
four_stage_nodes: projection.four_stage_nodes || projection.lifecycle_nodes || [],
|
||||
unclassified_summary: projection.unclassified_summary || { count: 0 },
|
||||
ui_state: projection.ui_state || undefined,
|
||||
output_artifacts: projection.output_artifacts || [],
|
||||
|
||||
Reference in new issue
Block a user