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
@@ -149,7 +149,6 @@ def test_candidate_review_duplicate_api_and_access_guards(app, client):
|
||||
task_no='SN-CANDIDATE-EXISTING-001',
|
||||
user_id=owner.id,
|
||||
source_content_hash=asset.content_hash,
|
||||
process_status='created',
|
||||
)
|
||||
db.session.add_all([document, existing])
|
||||
db.session.flush()
|
||||
@@ -224,7 +223,7 @@ def test_candidate_review_duplicate_api_and_access_guards(app, client):
|
||||
with app.app_context():
|
||||
db.session.add(ShippingNotice(
|
||||
task_no='SN-CANDIDATE-EXISTING-001', user_id=owner.id,
|
||||
source_content_hash='candidate-api-content-hash', process_status='created',
|
||||
source_content_hash='candidate-api-content-hash',
|
||||
))
|
||||
db.session.commit()
|
||||
|
||||
@@ -582,7 +581,7 @@ def test_revision_conflict_when_successor_exists(app, shipping_user):
|
||||
task_no='SN-REV-LOCK-BASE',
|
||||
user_id=shipping_user.id,
|
||||
source_type='manual',
|
||||
process_status='uploaded',
|
||||
upload_status='uploaded',
|
||||
document_version=1,
|
||||
)
|
||||
db.session.add(base)
|
||||
@@ -591,7 +590,6 @@ def test_revision_conflict_when_successor_exists(app, shipping_user):
|
||||
task_no='SN-REV-LOCK-V2',
|
||||
user_id=shipping_user.id,
|
||||
source_type='manual',
|
||||
process_status='pending_review',
|
||||
document_version=2,
|
||||
supersedes_task_id=base.id,
|
||||
duplicate_resolution_type='revision',
|
||||
|
||||
Reference in new issue
Block a user