refactor(shipping-notice): 重构货代发货通知状态管理,移除废弃的process_status字段
统一货代发货通知的业务阶段为四个标准阶段:接收解析、订单复核、发货准备、上传完成 设置 ui_state 为前端唯一状态数据源,不再依赖 process_status 驱动业务流程 删除 shipping_notices 表的废弃 process_status 列及对应复合索引,新增数据库迁移脚本 替换全栈代码中所有对 process_status 的引用为生命周期、上传状态等领域字段 更新相关文档、测试用例与前端展示逻辑适配新的状态管理规则
This commit is contained in:
1 parent
6684e7181a
commit
5ef8329bd8
178 files changed
+5091
-1734
No files matched your search
@@ -138,7 +138,6 @@ def _build_state_hint(task: ShippingNotice | None, batch: Any | None) -> dict[st
|
||||
if task is not None:
|
||||
for attr, key in (
|
||||
("current_step", "current_step"),
|
||||
("process_status", "status"),
|
||||
("review_status", "review_status"),
|
||||
("match_status", "match_status"),
|
||||
("pending_human_reason", "pending_human_reason"),
|
||||
@@ -177,7 +176,6 @@ def _build_summary(
|
||||
task_no = _task_no(task)
|
||||
batch_no = _batch_no(batch, task)
|
||||
file_name = _clean_text(getattr(task, "source_file_name", None))
|
||||
status = _clean_text(getattr(task, "process_status", None))
|
||||
current_step = _clean_text(getattr(task, "current_step", None))
|
||||
normalized_run_purpose = _clean_text(run_purpose)
|
||||
if task_no:
|
||||
@@ -188,8 +186,6 @@ def _build_summary(
|
||||
pieces.append(f"来源文件 {file_name}")
|
||||
if normalized_run_purpose:
|
||||
pieces.append(f"本次执行目的为 {normalized_run_purpose}")
|
||||
if status:
|
||||
pieces.append(f"当前状态 {status}")
|
||||
if current_step:
|
||||
pieces.append(f"当前步骤 {current_step}")
|
||||
if not pieces:
|
||||
|
||||
Reference in new issue
Block a user