feat(shipping-notice,receipt-report): 新增收料报表功能并优化发货通知流程
清理废弃的shipping xfa ocr automark相关代码和job配置 新增收料报表管理的前端页面、路由和侧边栏入口 新增后端收料报表配置接口、数据库模型和RPA脚本 优化发货通知流程的重试策略,将shipping相关job默认不自动重试 移除废弃的库存源确认相关逻辑,更新流程门禁规则 重构订单模板的值适配器模块,新增坐标OCR值适配器 清理前端shipping菜单和action的废弃选项 更新相关文档和测试用例,调整.gitignore忽略规则
This commit is contained in:
1 parent
260465b72d
commit
1b6483a4ea
466 files changed
+32115
-33796
No files matched your search
@@ -297,8 +297,8 @@ def test_openapi_spec_public(app, client):
|
||||
assert "submit_decision" not in spec_text
|
||||
|
||||
|
||||
def test_confirm_inventory_source_route_returns_json(app, client):
|
||||
"""confirm_inventory_source HTTP 路由必须存在且可调用。"""
|
||||
def test_confirm_inventory_source_route_is_removed(app, client):
|
||||
"""库存源人工确认已下线,任何旧 Tool 写入口均不得可达。"""
|
||||
headers = _tool_headers(app)
|
||||
with app.app_context():
|
||||
task = ShippingNotice(
|
||||
@@ -316,8 +316,7 @@ def test_confirm_inventory_source_route_returns_json(app, client):
|
||||
headers=headers,
|
||||
json={"task_id": "SN-HTTP-CONFIRM-SRC", "source_code": "DSV360_AWSDU"},
|
||||
)
|
||||
assert res.status_code == 200
|
||||
assert res.get_json()["status"] in {"ok", "needs_human", "running"}
|
||||
assert res.status_code == 404
|
||||
|
||||
|
||||
def test_static_openapi_snapshot_contains_shipping_contract_keywords():
|
||||
@@ -396,7 +395,7 @@ def test_reparse_inventory_clears_derived_state_and_deactivates_current_link(app
|
||||
body = response.get_json()
|
||||
assert body["status"] == "needs_human"
|
||||
assert body["checkpoint"] == "upload_req"
|
||||
assert body["human_options"] == ["upload_inventory_file", "retry_rpa"]
|
||||
assert "human_options" not in body
|
||||
with app.app_context():
|
||||
task = ShippingNotice.query.filter_by(task_no="SN-REUPLOAD-INVENTORY").one()
|
||||
link = ShippingTaskInventoryLink.query.filter_by(task_id=task.id).one()
|
||||
@@ -875,7 +874,6 @@ def test_parse_inventory_oversized_text_route_is_removed(app, client):
|
||||
|
||||
|
||||
def test_chat_actions_empty_when_task_rejected(app):
|
||||
from app.services.shipping_notice.chat_actions import human_options_for_task
|
||||
from app.services.shipping_notice.ui_state import build_task_ui_state
|
||||
|
||||
with app.app_context():
|
||||
@@ -884,7 +882,6 @@ def test_chat_actions_empty_when_task_rejected(app):
|
||||
source_type="manual",
|
||||
review_status="rejected",
|
||||
)
|
||||
assert human_options_for_task(task) == []
|
||||
ui_state = build_task_ui_state(task)
|
||||
assert ui_state["checkpoint"]["code"] == "rejected"
|
||||
assert ui_state["actions"] == {"primary": None, "secondary": []}
|
||||
|
||||
Reference in new issue
Block a user