perf(shipping-notice): 优化发货任务性能,修复上传流程与终态问题

This commit is contained in:
hugo committed 2026-08-27 19:25:16 +08:00
1 parent 434c04ed2d
commit bcdd8285ae
29 files changed
+1074 -128

No files matched your search

@@ -522,7 +522,8 @@ export function useShippingOrderReview(options: { onWorkflowRefresh?: () => void
showWorkflowProgress.value = true;
workflowProgressPolling.value = true;
// RPA 超时、可重试失败和人工复核都可能被后续回调推进,页面留存期间持续读取 Projection。
const UNIFIED_TERMINAL = new Set(['completed', 'cancelled']);
// needs_human(等待人工)视为线性终态:结果不会自行变化,继续轮询浪费资源。
const UNIFIED_TERMINAL = new Set(['completed', 'cancelled', 'needs_human']);
let lastUnifiedStatus = '';
let lastLifecycleFingerprint = '';
const RUN_TERMINAL = new Set(['completed', 'partially_completed', 'failed', 'cancelled']);