perf(shipping-notice): 优化发货任务性能,修复上传流程与终态问题

This commit is contained in:
hugo committed 2026-08-27 19:25:16 +08:00
1 parent 434c04ed2d
commit bcdd8285ae
29 files changed
+1074 -128

No files matched your search

@@ -852,6 +852,12 @@ def build_task_ui_state(
}
if download_action['code'] not in action_codes:
actions['secondary'].append(download_action)
if stage['code'] == 'upload_complete':
# [STEP] 上传成功已核验即为生命周期终态。历史 Gate 可能在异步收口窗口仍
# 可读取,但不能继续下发“下一步”或下载 Excel 等工作台动作;完成面只提供
# 同 PO 成功通知明细与批次 ZIP 的只读留档入口。
process_gate = None
actions = {'primary': None, 'secondary': []}
# summary 仅作为 ui_state.actions 的只读镜像,禁止由 checkpoint 或任务字段另行推导。
summary['allowed_actions'] = [
str(item.get('code'))