feat(freight-rpa): 增加出站报表配置与回调支持,重构相关服务

- 将 RPA 管理 API 扩展至出站报表配置,新增出站相关的回调接口。
- 重构 freight_rpa_report_config_service,支持入站与出站报表配置的管理。
- 更新 ORM 模型,增加出站报表相关的持久化模型。
- 统一命名规范,确保在手、入站与出站的概念一致性。
This commit is contained in:
hugo committed 2026-10-19 18:45:16 +08:00
1 parent 39fe3c05f2
commit 911afa0f73
152 files changed
+9861 -2984

No files matched your search

@@ -13,7 +13,7 @@ from pathlib import Path
class NoInboundDataError(RuntimeError):
"""收料报表可打开且有表头,但无业务明细行(合法 empty / no_receipt_data)。"""
"""入站报表可打开且有表头,但无业务明细行(合法 empty / no_inbound_data)。"""
def _normalize_row_joined(row: tuple | list) -> str:
@@ -97,10 +97,10 @@ def inbound_excel_has_detail_rows(path: Path) -> bool | None:
def enforce_inbound_excel_not_empty(path: Path) -> None:
"""
有表头无明细时记为无收料(NoInboundDataError → empty / no_receipt_data)。
有表头无明细时记为无入站(NoInboundDataError → empty / no_inbound_data)。
Raises:
NoInboundDataError: 可识别表头但无业务行;message 固定为 no_receipt_data。
NoInboundDataError: 可识别表头但无业务行;message 固定为 no_inbound_data。
"""
if inbound_excel_has_detail_rows(path) is False:
raise NoInboundDataError('no_receipt_data')
raise NoInboundDataError('no_inbound_data')