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

+21 -1
View File
@@ -1114,6 +1114,26 @@ def _handle_inventory_batch_trigger(trigger_path: Path, drop_dir: Path, processe
)
if identity_errors:
try:
# 即使 trigger 身份不完整,也保留每个 source 已携带的身份片段;
# 后端据此将可定位的 Attempt/Gate 立即收口,不能等轮询超时。
rejected_results = [
{
**{
key: source.get(key)
for key in (
"callback_id", "task_no", "source_code", "attempt_no",
"source_run_no", "lease_token", "candidate_set_id",
"execution_id", "gate_id", "expected_warehouse_id",
)
},
"status": "failed",
"success": False,
"error_code": "trigger_identity_invalid",
"error_message": "RPA trigger identity is invalid.",
}
for source in sources
if isinstance(source, dict)
]
_post_callback("/api/shipping-notice/rpa/inventory-batch-ready", {
"schema_version": "shipping_inventory_rpa.v2",
"callback_id": body.get("callback_id"),
@@ -1122,7 +1142,7 @@ def _handle_inventory_batch_trigger(trigger_path: Path, drop_dir: Path, processe
"status": "rejected",
"error_code": "trigger_identity_invalid",
"identity_errors": list(dict.fromkeys(identity_errors)),
"results": [],
"results": rejected_results,
})
finally:
_move_trigger(trigger_path, failed_dir, "invalid v2 identity")