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
@@ -64,10 +64,28 @@ LIFECYCLE_STAGE_RANGES: tuple[tuple[str, set[str]], ...] = (
|
||||
)
|
||||
|
||||
|
||||
def lifecycle_entries(*, lifecycle_stage: str | None, has_candidate_context: bool) -> list[dict[str, str]]:
|
||||
"""返回只读生命周期入口;无有效 Candidate/正式任务时不开放任何订单生命周期面。"""
|
||||
if not has_candidate_context or lifecycle_stage not in LIFECYCLE_STAGE_CODES:
|
||||
def lifecycle_entries(
|
||||
*,
|
||||
lifecycle_stage: str | None,
|
||||
has_candidate_context: bool,
|
||||
has_intake_parse_context: bool = False,
|
||||
) -> list[dict[str, str]]:
|
||||
"""返回只读生命周期入口;空 Case 仅允许停留在接收解析阶段。"""
|
||||
if lifecycle_stage not in LIFECYCLE_STAGE_CODES:
|
||||
return []
|
||||
if not has_candidate_context:
|
||||
# 接收解析 Case 是已持久化的受控对象,允许在批次页展示其当前阶段;
|
||||
# 但不能借此开放订单复核及后续阶段。
|
||||
if not has_intake_parse_context or lifecycle_stage != 'intake_parse':
|
||||
return []
|
||||
return [
|
||||
{
|
||||
'code': code,
|
||||
'state': 'current' if code == 'intake_parse' else 'unavailable',
|
||||
'target_surface': 'order_lifecycle_workbench',
|
||||
}
|
||||
for code in LIFECYCLE_STAGE_CODES
|
||||
]
|
||||
current_index = LIFECYCLE_STAGE_CODES.index(str(lifecycle_stage))
|
||||
return [
|
||||
{
|
||||
@@ -85,6 +103,7 @@ def project_lifecycle(
|
||||
blocking_reason: dict[str, Any] | None,
|
||||
legacy_stage: str | None,
|
||||
has_candidate_context: bool,
|
||||
has_intake_parse_context: bool = False,
|
||||
) -> dict[str, Any]:
|
||||
"""按 Gate → 阻断归属 → 历史阶段的固定优先级裁决生命周期和入口。
|
||||
|
||||
@@ -114,6 +133,7 @@ def project_lifecycle(
|
||||
'lifecycle_entries': lifecycle_entries(
|
||||
lifecycle_stage=lifecycle_stage,
|
||||
has_candidate_context=has_candidate_context,
|
||||
has_intake_parse_context=has_intake_parse_context,
|
||||
),
|
||||
'lifecycle_authority': authority,
|
||||
}
|
||||
Reference in new issue
Block a user