feat(shipping-notice): 实现对话级批量重试自动推进功能,优化库存与PDF匹配逻辑

- 新增对话级批量重试自动推进的完整链路:后端服务、API、数据投影逻辑
- 前端新增对话级重试按钮、多语言国际化支持与API类型定义
- 优化行级库存重试控制,新增retryable字段统一管控重试按钮展示,清理废弃的view_fulfillment_detail动作,标准化前端动作码排序逻辑
- 修复PDF坐标匹配的fail-close防护逻辑,避免生成伪精确匹配分数
- 调整订单确认后流程,提前进入库存获取阶段,移除冗余的确认建单按钮,优化用户流转体验
- 新增对应单元测试用例覆盖核心业务逻辑
This commit is contained in:
hugo committed 2026-08-07 16:30:45 +08:00
1 parent fd6a23f870
commit 1008911a7e
41 files changed
+3956 -1256

No files matched your search

@@ -78,13 +78,14 @@ const statusLabel = computed(() => {
});
/**
* 主卡重试:仅在有 task_no 且非 task_missing 时由父组件控制 showRetry。
* 主卡重试:对象级;建单前无 task_no 也可重试 STP;正式 OT 需 task_no。
*/
const canShowRetry = computed(() => (
Boolean(props.showRetry)
&& !props.taskMissing
&& Boolean(String(props.taskNo || '').trim())
));
const canShowRetry = computed(() => {
if (!props.showRetry || props.taskMissing) return false;
if (String(props.taskNo || '').trim()) return true;
// 建单前 STP:无 OT 号也可重试。
return String(props.automation?.phase || '').trim() !== 'post_ot_progress';
});
</script>
<template>
@@ -149,7 +150,7 @@ const canShowRetry = computed(() => (
@click="emit('retry')"
>
<RefreshCw class="h-3.5 w-3.5" />
{{ t('chat.shippingOrderReview.autoProgress.retryStp') }}
{{ t('chat.shippingOrderReview.autoProgress.retryObject') }}
</button>
</section>
</template>