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

+10 -3
View File
@@ -582,7 +582,7 @@ def recover_stale_jobs(
sibling: Job | None = None
rowcount = 0
if snap_attempts < max_attempts:
if str(domain or '') != 'shipping_notice' and snap_attempts < max_attempts:
if _subject_to_parse_queued_unique(str(job.job_type or "")):
try:
sibling = _resolve_safe_supersede_sibling(
@@ -616,7 +616,7 @@ def recover_stale_jobs(
)
.values(
status="queued",
message="任务执行超时,已回收等待重试",
message="任务执行超时,已停止,等待用户选择下一步动作",
locked_by=None,
locked_at=None,
started_at=None,
@@ -1054,5 +1054,12 @@ def process_next_job(
return True, job_type_value
except Exception as exc:
db.session.rollback()
fail_job(job_id, error=str(exc), retryable=True, owned_attempt=owned_attempt)
# 发货通知失败必须停在当前 Gate,不能由通用 runner 隐式重新入队。
# 其它领域维持既有技术重试策略。
fail_job(
job_id,
error=str(exc),
retryable=(str(domain or '').strip() != 'shipping_notice'),
owned_attempt=owned_attempt,
)
raise