feat(shipping, admin, workspace, docs): 迭代货代模块、补充文档并处理合并冲突问题

This commit is contained in:
hugo committed 2026-08-12 09:27:33 +08:00
1 parent 4587b56900
commit 3c0e08377c
94 files changed
+29222 -1218

No files matched your search

@@ -327,7 +327,7 @@ function synthesizeWorkItemFromReviewContext(params: {
};
}
export function useShippingOrderReview() {
export function useShippingOrderReview(options: { onWorkflowRefresh?: () => void } = {}) {
const reviewRun = ref<ShippingOrderReviewRun | null>(null);
const activeCase = ref<ShippingOrderReviewCase | null>(null);
const caseProjectionVersion = ref<number | null>(null);
@@ -612,13 +612,18 @@ export function useShippingOrderReview() {
if (!authoritativeOrderTaskNo.value && !targetRunNo) return;
showWorkflowProgress.value = true;
workflowProgressPolling.value = true;
const UNIFIED_TERMINAL = new Set(['completed', 'failed', 'cancelled']);
const UNIFIED_TERMINAL = new Set(['completed', 'failed', 'cancelled', 'retryable', 'needs_review', 'waiting_human']);
let lastUnifiedStatus = '';
const RUN_TERMINAL = new Set(['completed', 'partially_completed', 'failed', 'cancelled']);
const tick = async () => {
try {
if (authoritativeOrderTaskNo.value) {
await refreshShippingProcessing();
const unifiedStatus = String(shippingProcessingProjection.value?.status || '').trim().toLowerCase();
if (unifiedStatus !== lastUnifiedStatus) {
lastUnifiedStatus = unifiedStatus;
options.onWorkflowRefresh?.();
}
if (UNIFIED_TERMINAL.has(unifiedStatus)) {
stopWorkflowProgressPolling();
}