feat(shipping-notice): 支持发货通知解析延后至 Dify 画布,优化任务创建流程

This commit is contained in:
hugo committed 2026-06-22 16:59:38 +08:00
1 parent d46d61bfa1
commit 70e8f700ff
38 files changed
+3215 -714

No files matched your search

@@ -60,10 +60,14 @@ export function createShippingParseReviewHandlers(ctx: ShippingParseReviewContex
const removeParseReviewMessageForTask = (taskId: string) => {
const normalized = String(taskId || '').trim().toUpperCase();
if (!normalized) return;
ctx.messages.value = ctx.messages.value.filter((msg) => {
for (let i = ctx.messages.value.length - 1; i >= 0; i -= 1) {
const msg = ctx.messages.value[i];
if (!msg) continue;
const payload = getShippingParseReviewPayload(msg);
return payload?.taskId?.trim().toUpperCase() !== normalized;
});
if (payload?.taskId?.trim().toUpperCase() === normalized) {
ctx.messages.value.splice(i, 1);
}
}
};
const upsertParseReviewMessage = async (payload: ShippingParseReviewPayload) => {