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

@@ -48,6 +48,7 @@ const props = defineProps<{
const emit = defineEmits<{
select: [caseNo: string];
'mode-change': [mode: ReviewDocumentNavMode];
'collapse-change': [collapsed: boolean];
}>();
const { t, te } = useI18n();
@@ -93,6 +94,7 @@ const mode = computed<ReviewDocumentNavMode>(() => {
});
watch(mode, (value) => emit('mode-change', value), { immediate: true });
watch(collapsed, (value) => emit('collapse-change', value), { immediate: true });
const activeIndex = computed(() => {
const idx = props.items.findIndex((item) => item.case_no === props.activeCaseNo);
@@ -181,7 +183,7 @@ function onSelect(caseNo: string) {
? 'rounded-xl border border-slate-200 bg-white p-2 shadow-sm dark:border-slate-800 dark:bg-slate-900'
: mode === 'narrow'
? ''
: 'sticky top-3 flex max-h-[calc(100vh-6rem)] w-full shrink-0 flex-col rounded-xl border border-slate-200 bg-white shadow-sm dark:border-slate-800 dark:bg-slate-900 lg:w-64'"
: ['sticky top-3 flex max-h-[calc(100vh-6rem)] w-full shrink-0 flex-col rounded-xl border border-slate-200 bg-white shadow-sm transition-[width] duration-200 dark:border-slate-800 dark:bg-slate-900', collapsed ? 'lg:w-20' : 'lg:w-64']"
>
<!-- 2–4:顶部标签 -->
<div
@@ -244,6 +246,7 @@ function onSelect(caseNo: string) {
type="button"
class="rounded p-1 text-muted hover:bg-slate-100 dark:hover:bg-slate-800"
data-testid="review-doc-nav-collapse"
:aria-label="collapsed ? t('chat.shippingOrderReview.documentNavigation') : t('chat.shippingOrderReview.documentNavigation')"
@click="collapsed = !collapsed"
>
<ChevronLeft
@@ -287,6 +290,7 @@ function onSelect(caseNo: string) {
<div
class="min-h-0 flex-1 overflow-y-auto p-1.5"
data-testid="review-doc-nav-list"
:data-collapsed="collapsed"
>
<button
v-for="(item, index) in (collapsed ? items : filteredItems)"
@@ -304,9 +308,13 @@ function onSelect(caseNo: string) {
>
<span
v-if="collapsed"
class="flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-slate-100 text-[10px] font-semibold dark:bg-slate-800"
class="flex h-12 w-full min-w-0 flex-col items-center justify-center rounded-md bg-slate-100 px-1 text-[10px] dark:bg-slate-800"
:title="`${index + 1}. ${item.file_name || item.case_no}`"
>
{{ index + 1 }}
<span class="font-semibold">{{ index + 1 }}</span>
<span class="mt-0.5 w-full truncate text-center text-[9px] font-medium text-slate-600 dark:text-slate-300">
{{ (item.file_name || item.case_no).replace(/\.[^.]+$/, '').slice(0, 7) }}
</span>
</span>
<template v-else>
<TriangleAlert