feat(shipping-notice,receipt-report): 新增收料报表功能并优化发货通知流程

清理废弃的shipping xfa ocr automark相关代码和job配置
新增收料报表管理的前端页面、路由和侧边栏入口
新增后端收料报表配置接口、数据库模型和RPA脚本
优化发货通知流程的重试策略,将shipping相关job默认不自动重试
移除废弃的库存源确认相关逻辑,更新流程门禁规则
重构订单模板的值适配器模块,新增坐标OCR值适配器
清理前端shipping菜单和action的废弃选项
更新相关文档和测试用例,调整.gitignore忽略规则
This commit is contained in:
hugo committed 2026-08-20 20:23:10 +08:00
1 parent 260465b72d
commit 1b6483a4ea
466 files changed
+32115 -33796

No files matched your search

@@ -18,6 +18,7 @@ const props = defineProps<{
caseNo: string;
draftVersion: number | null | undefined;
conflicts: ShippingOrderReviewFieldConflict[] | null | undefined;
evidenceIssues?: ShippingOrderReviewFieldConflict[] | null | undefined;
editable: boolean;
}>();
@@ -33,6 +34,7 @@ const customOpenKey = ref<string | null>(null);
const customValue = ref('');
const openConflicts = computed(() => props.conflicts || []);
const openEvidenceIssues = computed(() => props.evidenceIssues || []);
/**
* 字段编码本地化标签(无文案时回退 field_code)。
@@ -50,6 +52,17 @@ function reasonLabel(reason: string): string {
return te(key) ? t(key) : reason;
}
/**
* 区分订单头与明细字段;同名字段不能被误读成同一份业务值。
*/
function scopeLabel(scope: string | null | undefined): string {
const code = ['header', 'line', 'line_unassigned', 'unscoped'].includes(String(scope || ''))
? String(scope)
: 'unscoped';
const key = `chat.shippingOrderReview.fieldConflict.scope.${code}`;
return t(key);
}
/**
* 证据角色本地化(主 PDF / 辅助 / 邮件正文)。
*/
@@ -170,11 +183,11 @@ async function submitCustom(conflict: ShippingOrderReviewFieldConflict) {
<template>
<section
v-if="openConflicts.length"
v-if="openConflicts.length || openEvidenceIssues.length"
class="rounded-xl border border-rose-200 bg-rose-50/70 p-3 shadow-sm dark:border-rose-900 dark:bg-rose-950/40"
data-testid="review-field-conflict-panel"
>
<header class="flex flex-wrap items-start justify-between gap-2">
<header v-if="openConflicts.length" class="flex flex-wrap items-start justify-between gap-2">
<div>
<h2 class="text-sm font-semibold text-rose-950 dark:text-rose-50">
{{ t('chat.shippingOrderReview.fieldConflict.title', { count: openConflicts.length }) }}
@@ -276,5 +289,38 @@ async function submitCustom(conflict: ShippingOrderReviewFieldConflict) {
</div>
</li>
</ul>
<div
v-if="openEvidenceIssues.length"
class="mt-3 rounded-lg border border-amber-200 bg-amber-50/80 p-2.5 dark:border-amber-900 dark:bg-amber-950/30"
data-testid="review-evidence-issue-panel"
>
<h2 class="text-sm font-semibold text-amber-950 dark:text-amber-50">
{{ t('chat.shippingOrderReview.fieldConflict.evidenceIssueTitle', { count: openEvidenceIssues.length }) }}
</h2>
<p class="mt-0.5 text-xs text-amber-800 dark:text-amber-200">
{{ t('chat.shippingOrderReview.fieldConflict.evidenceIssueSubtitle') }}
</p>
<ul class="mt-2 space-y-1.5">
<li
v-for="issue in openEvidenceIssues"
:key="`${issue.conflict_key}-${issue.reason}`"
class="flex flex-wrap items-center justify-between gap-2 rounded border border-amber-200 bg-white/95 px-2.5 py-2 text-xs dark:border-amber-900 dark:bg-slate-900"
>
<span class="text-amber-950 dark:text-amber-50">
<span class="text-muted">{{ scopeLabel(issue.scope) }} · </span>
<span class="font-mono">{{ fieldLabel(issue.field_code) }}</span>
</span>
<button
type="button"
class="text-[11px] text-primary underline-offset-2 hover:underline"
data-testid="review-evidence-issue-focus"
@click="onFocus(issue)"
>
{{ t('chat.shippingOrderReview.fieldConflict.focusEvidence') }}
</button>
</li>
</ul>
</div>
</section>
</template>