feat(freight-rpa): 增加出站报表配置与回调支持,重构相关服务
- 将 RPA 管理 API 扩展至出站报表配置,新增出站相关的回调接口。 - 重构 freight_rpa_report_config_service,支持入站与出站报表配置的管理。 - 更新 ORM 模型,增加出站报表相关的持久化模型。 - 统一命名规范,确保在手、入站与出站的概念一致性。
This commit is contained in:
1 parent
39fe3c05f2
commit
911afa0f73
152 files changed
+9861
-2984
No files matched your search
@@ -260,7 +260,7 @@ def test_profile_draft_requires_persisted_sample_evidence(app):
|
||||
"""绕过样本分析直接保存草稿时必须被拒绝,避免来源表头脱离审计依据。"""
|
||||
with app.app_context():
|
||||
field_id = _published_part_number()
|
||||
from app.services.shipping_notice import onhand_parsing_profile
|
||||
from app.services.freight_rpa import parsing_profile as onhand_parsing_profile
|
||||
|
||||
with pytest.raises(ValidationError) as exc_info:
|
||||
onhand_parsing_profile.save_draft({
|
||||
@@ -303,7 +303,7 @@ def test_profile_draft_purpose_passthrough_creates_inbound_profile(app, tmp_path
|
||||
|
||||
def test_publish_inbound_profile_skips_order_match_key_contract(app, tmp_path):
|
||||
"""发布 inbound 规则不需要订单匹配键:其端点契约是定死异动字段,不是订单 Schema。"""
|
||||
from app.services.shipping_notice import onhand_parsing_profile
|
||||
from app.services.freight_rpa import parsing_profile as onhand_parsing_profile
|
||||
|
||||
app.config['SHIPPING_NOTICE_STORAGE_ROOT'] = str(tmp_path / 'shipping')
|
||||
with app.app_context():
|
||||
|
||||
Reference in new issue
Block a user