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
@@ -1,38 +1,14 @@
|
||||
"""
|
||||
services/shipping_notice/chat_actions.py
|
||||
|
||||
用途:发货通知状态机旧模块名的向后兼容 re-export 入口。
|
||||
依赖:state_machine(ACTION_SPECS、CHECKPOINT_REGISTRY、apply_task_transition 等)、ui_state。
|
||||
逻辑:历史代码 import chat_actions;新代码应直接引用 state_machine.py / ui_state.py,本模块仅保留兼容导出。
|
||||
用途:发货通知聊天只读状态适配。
|
||||
依赖:state_machine(checkpoint 与内部状态迁移)、ui_state。
|
||||
逻辑:Chat 不再拥有动作目录或写入口;仅输出 Gate 已裁决的只读 UI State。
|
||||
"""
|
||||
|
||||
from app.services.shipping_notice.state_machine import (
|
||||
ACTION_SPECS,
|
||||
ALL_ACTION_IDS,
|
||||
ALL_CHECKPOINT_IDS,
|
||||
CHECKPOINT_REGISTRY,
|
||||
CP_INVENTORY_SOURCE_REVIEW,
|
||||
TaskTransition,
|
||||
TaskUiState,
|
||||
action_buttons_for_checkpoint,
|
||||
apply_task_transition,
|
||||
build_action_buttons,
|
||||
build_checkpoint_catalog,
|
||||
checkpoint_for_task,
|
||||
human_options_for_checkpoint,
|
||||
human_options_for_task,
|
||||
human_options_for_task_or_checkpoint,
|
||||
inventory_source_action_buttons,
|
||||
resolve_task_ui_state,
|
||||
ui_state_for_checkpoint,
|
||||
upload_req_options_for_task,
|
||||
validate_registry,
|
||||
)
|
||||
from app.services.shipping_notice.state_machine import TaskTransition, apply_task_transition, checkpoint_for_task, resolve_task_ui_state, validate_registry
|
||||
from app.services.shipping_notice.ui_state import build_task_ui_state
|
||||
|
||||
# Legacy alias
|
||||
CHECKPOINT_OPTIONS = CHECKPOINT_REGISTRY
|
||||
|
||||
|
||||
def build_chat_actions_payload(task) -> dict:
|
||||
"""
|
||||
@@ -63,24 +39,10 @@ def build_chat_actions_payload(task) -> dict:
|
||||
}
|
||||
|
||||
__all__ = [
|
||||
"ACTION_SPECS",
|
||||
"ALL_ACTION_IDS",
|
||||
"ALL_CHECKPOINT_IDS",
|
||||
"CHECKPOINT_OPTIONS",
|
||||
"CHECKPOINT_REGISTRY",
|
||||
"TaskTransition",
|
||||
"TaskUiState",
|
||||
"action_buttons_for_checkpoint",
|
||||
"apply_task_transition",
|
||||
"build_action_buttons",
|
||||
"build_chat_actions_payload",
|
||||
"build_checkpoint_catalog",
|
||||
"checkpoint_for_task",
|
||||
"human_options_for_checkpoint",
|
||||
"human_options_for_task",
|
||||
"human_options_for_task_or_checkpoint",
|
||||
"resolve_task_ui_state",
|
||||
"ui_state_for_checkpoint",
|
||||
"upload_req_options_for_task",
|
||||
"validate_registry",
|
||||
]
|
||||
Reference in new issue
Block a user