refactor(shipping-notice): 重构货代发货通知状态管理,移除废弃的process_status字段

统一货代发货通知的业务阶段为四个标准阶段:接收解析、订单复核、发货准备、上传完成
设置 ui_state 为前端唯一状态数据源,不再依赖 process_status 驱动业务流程
删除 shipping_notices 表的废弃 process_status 列及对应复合索引,新增数据库迁移脚本
替换全栈代码中所有对 process_status 的引用为生命周期、上传状态等领域字段
更新相关文档、测试用例与前端展示逻辑适配新的状态管理规则
This commit is contained in:
hugo committed 2026-08-15 10:19:10 +08:00
1 parent 6684e7181a
commit 5ef8329bd8
178 files changed
+5091 -1734

No files matched your search

+32 -2
View File
@@ -558,6 +558,7 @@
"resolveFailed": "Failed to resolve conflict. Refresh and try again."
},
"shippingNoticeUi": {
"stage": {"intakeParse": "Intake and parsing", "orderReview": "Order review", "fulfillmentPrep": "Fulfillment preparation", "uploadComplete": "Upload complete"},
"rpaModeBrowser": "Real RPA",
"rpaModeMock": "Mock RPA",
"rpaModeUnknown": "RPA mode unknown",
@@ -2579,6 +2580,33 @@
},
"shippingProcessing": {
"batchStatusTitle": "Batch Processing Status",
"batchWorkbench": {
"overview": {
"totalFiles": "Total files",
"processing": "Processing",
"completed": "Completed",
"needsAction": "Needs action",
"completion": "{percent}% complete",
"processedOfTotal": "{completed}/{total} processed"
},
"groups": {
"failed": "Exceptions · {count} files",
"waitingHuman": "Recognition confirmation required · {count} files",
"processing": "Processing · {count} files",
"failedFallback": "Failed",
"waitingFallback": "Needs confirmation",
"processingFallback": "Processing"
},
"artifacts": {
"title": "Batch outputs",
"downloadAll": "Download batch Excel files",
"download": "Download",
"empty": "No downloadable outputs",
"downloadFailed": "{count} batch output download(s) failed. Retry individually.",
"singleDownloadFailed": "Batch output download failed"
},
"fileProcessing": "File processing"
},
"batchFilesTotal": "{count} files total",
"batchComplete": "Complete",
"batchProcessed": "processed",
@@ -2595,8 +2623,9 @@
"parsingAttachments": "Parsing Attachments",
"emailMeta": "Attachments · System processing",
"batchFilesUnavailable": "File details are temporarily unavailable. Open the batch workbench to view them.",
"openBatchWorkbench": "Open Batch Workbench",
"panelTitle": "Processing in this conversation",
"openBatchWorkbench": "Open Batch Progress Center",
"closeWorkbench": "Close batch workbench",
"panelTitle": "Batch Progress Center",
"pendingMaterials": "Pending materials",
"orderTasks": "Order tasks",
"groupNeedsAction": "Needs your action · {count} tasks",
@@ -2645,6 +2674,7 @@
"status": {
"processing": "Processing",
"waiting_review": "Waiting for review",
"waiting_human": "Waiting for manual handling",
"blocked": "Blocked",
"automating": "Automating",
"completed": "Completed",
+2 -3
View File
@@ -289,7 +289,7 @@
"poll_freight_upload_rpa": "Refresh freight upload progress",
"retry_freight_upload_rpa": "Retry freight upload RPA",
"regenerate_manual_upload_todo": "Regenerate manual-upload todo",
"mark_manual_uploaded": "Record manual upload"
"mark_manual_uploaded": "Confirm manual upload"
},
"reasons": {
"freeze_not_ready": "Order is not ready to build or freeze",
@@ -426,7 +426,6 @@
"line_index": "Line no.",
"field_code": "Field",
"request_id": "Request ID",
"process_status": "Process status",
"match_status": "Match status",
"task_no": "Task no.",
"has_inventory_lines": "Has inventory lines",
@@ -445,7 +444,7 @@
"openTask": "Open task",
"openProcessingHint": "Review, edit, and fulfillment registration happen in the order processing workbench.",
"openProcessingUnavailable": "Unable to locate the extraction run. Open order processing from the original conversation.",
"progressSummary": "Current: {stage} · {current}/{total}",
"progressSummary": "Current stage: {stage}",
"progressBlocker": "Blocked: {reason}",
"intakeParseBadge": "Material parsing",
"buckets": {