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
@@ -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",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -558,6 +558,7 @@
|
||||
"resolveFailed": "แก้ความขัดแย้งไม่สำเร็จ กรุณารีเฟรชแล้วลองใหม่"
|
||||
},
|
||||
"shippingNoticeUi": {
|
||||
"stage": {"intakeParse": "รับและแยกวิเคราะห์", "orderReview": "ตรวจสอบคำสั่งซื้อ", "fulfillmentPrep": "เตรียมการจัดส่ง", "uploadComplete": "อัปโหลดเสร็จสิ้น"},
|
||||
"rpaModeBrowser": "RPA จริง",
|
||||
"rpaModeMock": "Mock RPA",
|
||||
"rpaModeUnknown": "ไม่ทราบโหมด RPA",
|
||||
@@ -2579,6 +2580,33 @@
|
||||
},
|
||||
"shippingProcessing": {
|
||||
"batchStatusTitle": "สถานะการประมวลผลเป็นชุด",
|
||||
"batchWorkbench": {
|
||||
"overview": {
|
||||
"totalFiles": "ไฟล์ทั้งหมด",
|
||||
"processing": "กำลังประมวลผล",
|
||||
"completed": "เสร็จสิ้น",
|
||||
"needsAction": "ต้องดำเนินการ",
|
||||
"completion": "เสร็จสิ้น {percent}%",
|
||||
"processedOfTotal": "ประมวลผลแล้ว {completed}/{total}"
|
||||
},
|
||||
"groups": {
|
||||
"failed": "ข้อผิดพลาด · {count} ไฟล์",
|
||||
"waitingHuman": "ต้องยืนยันผลการระบุ · {count} ไฟล์",
|
||||
"processing": "กำลังประมวลผล · {count} ไฟล์",
|
||||
"failedFallback": "ล้มเหลว",
|
||||
"waitingFallback": "ต้องยืนยัน",
|
||||
"processingFallback": "กำลังประมวลผล"
|
||||
},
|
||||
"artifacts": {
|
||||
"title": "ผลลัพธ์ของชุดนี้",
|
||||
"downloadAll": "ดาวน์โหลด Excel ทั้งชุด",
|
||||
"download": "ดาวน์โหลด",
|
||||
"empty": "ยังไม่มีผลลัพธ์ที่ดาวน์โหลดได้",
|
||||
"downloadFailed": "ดาวน์โหลดผลลัพธ์ {count} รายการไม่สำเร็จ โปรดลองทีละรายการ",
|
||||
"singleDownloadFailed": "ดาวน์โหลดผลลัพธ์ของชุดไม่สำเร็จ"
|
||||
},
|
||||
"fileProcessing": "กำลังประมวลผลไฟล์"
|
||||
},
|
||||
"batchFilesTotal": "ทั้งหมด {count} ไฟล์",
|
||||
"batchComplete": "เสร็จสิ้น",
|
||||
"batchProcessed": "ประมวลผลแล้ว",
|
||||
@@ -2595,8 +2623,9 @@
|
||||
"parsingAttachments": "กำลังวิเคราะห์ไฟล์แนบ",
|
||||
"emailMeta": "ไฟล์แนบ · ระบบกำลังประมวลผล",
|
||||
"batchFilesUnavailable": "ยังไม่สามารถโหลดรายละเอียดไฟล์ได้ โปรดเปิดเวิร์กเบนช์",
|
||||
"openBatchWorkbench": "เปิดเวิร์กเบนช์การประมวลผล",
|
||||
"panelTitle": "กำลังประมวลผลในการสนทนานี้",
|
||||
"openBatchWorkbench": "เปิดศูนย์ความคืบหน้าชุดงาน",
|
||||
"closeWorkbench": "ปิดเวิร์กเบนช์การประมวลผล",
|
||||
"panelTitle": "ศูนย์ความคืบหน้าชุดงาน",
|
||||
"pendingMaterials": "เอกสารรอดำเนินการ",
|
||||
"orderTasks": "งานคำสั่งซื้อ",
|
||||
"groupNeedsAction": "ต้องดำเนินการ · {count} งาน",
|
||||
@@ -2645,6 +2674,7 @@
|
||||
"status": {
|
||||
"processing": "กำลังประมวลผล",
|
||||
"waiting_review": "รอตรวจสอบ",
|
||||
"waiting_human": "รอดำเนินการโดยเจ้าหน้าที่",
|
||||
"blocked": "ถูกบล็อก",
|
||||
"automating": "กำลังดำเนินการอัตโนมัติ",
|
||||
"completed": "เสร็จสิ้น",
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
"poll_freight_upload_rpa": "รีเฟรชความคืบหน้าอัปโหลด freight",
|
||||
"retry_freight_upload_rpa": "ลองอัปโหลด freight RPA อีกครั้ง",
|
||||
"regenerate_manual_upload_todo": "สร้างรายการอัปโหลดด้วยตนเองใหม่",
|
||||
"mark_manual_uploaded": "บันทึกการอัปโหลดด้วยตนเอง"
|
||||
"mark_manual_uploaded": "ยืนยันการอัปโหลดด้วยตนเอง"
|
||||
},
|
||||
"reasons": {
|
||||
"freeze_not_ready": "คำสั่งซื้อยังไม่พร้อมสร้างหรือ freeze",
|
||||
@@ -360,7 +360,6 @@
|
||||
"line_index": "แถว",
|
||||
"field_code": "ฟิลด์",
|
||||
"request_id": "รหัสคำขอ",
|
||||
"process_status": "สถานะกระบวนการ",
|
||||
"match_status": "สถานะการจับคู่",
|
||||
"task_no": "หมายเลขงาน",
|
||||
"has_inventory_lines": "มีแถวสต็อกแล้ว",
|
||||
@@ -379,7 +378,7 @@
|
||||
"openTask": "เปิดงาน",
|
||||
"openProcessingHint": "การตรวจแก้ แก้ไข และลงทะเบียนการจัดส่ง ให้ทำในโต๊ะประมวลผลคำสั่งซื้อ",
|
||||
"openProcessingUnavailable": "ไม่พบงานระบุตัวตน โปรดเปิดโต๊ะประมวลผลจากบทสนทนาเดิม",
|
||||
"progressSummary": "ปัจจุบัน: {stage} · {current}/{total}",
|
||||
"progressSummary": "ขั้นตอนปัจจุบัน: {stage}",
|
||||
"progressBlocker": "ถูกบล็อก: {reason}",
|
||||
"intakeParseBadge": "การแยกวิเคราะห์เอกสาร",
|
||||
"buckets": {
|
||||
@@ -608,8 +607,7 @@
|
||||
"uploadFailed": "อัปโหลดล้มเหลว",
|
||||
"rejected": "ถูกปฏิเสธ",
|
||||
"closed": "ปิดแล้ว",
|
||||
"unknown": "กำลังดำเนินการ",
|
||||
"alignReview": "รอยืนยันฟิลด์"
|
||||
"unknown": "กำลังดำเนินการ"
|
||||
},
|
||||
"matchStatus": {
|
||||
"fulfillable": "ส่งได้ครบ",
|
||||
|
||||
@@ -592,6 +592,7 @@
|
||||
"resolveFailed": "解决冲突失败,请刷新后重试"
|
||||
},
|
||||
"shippingNoticeUi": {
|
||||
"stage": {"intakeParse": "接收解析", "orderReview": "订单复核", "fulfillmentPrep": "发货准备", "uploadComplete": "上传完成"},
|
||||
"rpaModeBrowser": "真实 RPA",
|
||||
"rpaModeMock": "Mock RPA",
|
||||
"rpaModeUnknown": "RPA 模式未知",
|
||||
@@ -2653,6 +2654,33 @@
|
||||
},
|
||||
"shippingProcessing": {
|
||||
"batchStatusTitle": "批处理状态",
|
||||
"batchWorkbench": {
|
||||
"overview": {
|
||||
"totalFiles": "总文件",
|
||||
"processing": "处理中",
|
||||
"completed": "已完成",
|
||||
"needsAction": "需处理",
|
||||
"completion": "{percent}% 完成",
|
||||
"processedOfTotal": "{completed}/{total} 已处理"
|
||||
},
|
||||
"groups": {
|
||||
"failed": "异常 · {count} 个文件",
|
||||
"waitingHuman": "识别结果待确认 · {count} 个文件",
|
||||
"processing": "处理中 · {count} 个文件",
|
||||
"failedFallback": "失败",
|
||||
"waitingFallback": "需确认",
|
||||
"processingFallback": "处理中"
|
||||
},
|
||||
"artifacts": {
|
||||
"title": "本批产物",
|
||||
"downloadAll": "批量下载本批 Excel",
|
||||
"download": "下载",
|
||||
"empty": "暂无可下载产物",
|
||||
"downloadFailed": "本批有 {count} 个产物下载失败,请逐项重试",
|
||||
"singleDownloadFailed": "下载本批产物失败"
|
||||
},
|
||||
"fileProcessing": "文件处理中"
|
||||
},
|
||||
"batchFilesTotal": "共 {count} 个文件",
|
||||
"batchComplete": "完成",
|
||||
"batchProcessed": "已处理",
|
||||
@@ -2669,8 +2697,9 @@
|
||||
"parsingAttachments": "正在解析附件",
|
||||
"emailMeta": "附件处理 · 系统处理中",
|
||||
"batchFilesUnavailable": "文件明细暂不可用,请打开批处理工作台查看。",
|
||||
"openBatchWorkbench": "打开批处理工作台",
|
||||
"panelTitle": "本次处理中",
|
||||
"openBatchWorkbench": "打开批次进度中心",
|
||||
"closeWorkbench": "关闭批次工作台",
|
||||
"panelTitle": "批次进度中心",
|
||||
"pendingMaterials": "待处理材料",
|
||||
"orderTasks": "订单任务",
|
||||
"groupNeedsAction": "需要你处理 · {count} 个任务",
|
||||
@@ -2719,6 +2748,7 @@
|
||||
"status": {
|
||||
"processing": "处理中",
|
||||
"waiting_review": "待复核",
|
||||
"waiting_human": "待人工处理",
|
||||
"blocked": "已阻断",
|
||||
"automating": "自动推进中",
|
||||
"completed": "已完成",
|
||||
|
||||
@@ -289,7 +289,7 @@
|
||||
"poll_freight_upload_rpa": "刷新货代上传进度",
|
||||
"retry_freight_upload_rpa": "重试货代上传 RPA",
|
||||
"regenerate_manual_upload_todo": "重新生成待上传待办",
|
||||
"mark_manual_uploaded": "人工上传登记"
|
||||
"mark_manual_uploaded": "确认已人工上传"
|
||||
},
|
||||
"reasons": {
|
||||
"freeze_not_ready": "订单尚未满足建单/冻结条件",
|
||||
@@ -426,7 +426,6 @@
|
||||
"line_index": "行号",
|
||||
"field_code": "字段",
|
||||
"request_id": "请求编号",
|
||||
"process_status": "处理状态",
|
||||
"match_status": "匹配状态",
|
||||
"task_no": "任务编号",
|
||||
"has_inventory_lines": "是否已有库存行",
|
||||
@@ -445,7 +444,7 @@
|
||||
"openTask": "打开任务",
|
||||
"openProcessingHint": "单票校对、改单与履约登记请在订单处理工作台完成。",
|
||||
"openProcessingUnavailable": "暂无法定位识别任务,请从原对话打开订单处理工作台。",
|
||||
"progressSummary": "当前:{stage} · {current}/{total}",
|
||||
"progressSummary": "当前阶段:{stage}",
|
||||
"progressBlocker": "当前阻断:{reason}",
|
||||
"intakeParseBadge": "材料解析",
|
||||
"buckets": {
|
||||
|
||||
@@ -558,6 +558,7 @@
|
||||
"resolveFailed": "解決衝突失敗,請重新整理後再試"
|
||||
},
|
||||
"shippingNoticeUi": {
|
||||
"stage": {"intakeParse": "接收解析", "orderReview": "訂單複核", "fulfillmentPrep": "發貨準備", "uploadComplete": "上傳完成"},
|
||||
"rpaModeBrowser": "真實 RPA",
|
||||
"rpaModeMock": "Mock RPA",
|
||||
"rpaModeUnknown": "RPA 模式未知",
|
||||
@@ -2579,6 +2580,33 @@
|
||||
},
|
||||
"shippingProcessing": {
|
||||
"batchStatusTitle": "批次處理狀態",
|
||||
"batchWorkbench": {
|
||||
"overview": {
|
||||
"totalFiles": "總檔案",
|
||||
"processing": "處理中",
|
||||
"completed": "已完成",
|
||||
"needsAction": "需處理",
|
||||
"completion": "完成 {percent}%",
|
||||
"processedOfTotal": "已處理 {completed}/{total}"
|
||||
},
|
||||
"groups": {
|
||||
"failed": "異常 · {count} 個檔案",
|
||||
"waitingHuman": "識別結果待確認 · {count} 個檔案",
|
||||
"processing": "處理中 · {count} 個檔案",
|
||||
"failedFallback": "失敗",
|
||||
"waitingFallback": "需確認",
|
||||
"processingFallback": "處理中"
|
||||
},
|
||||
"artifacts": {
|
||||
"title": "本批產物",
|
||||
"downloadAll": "批次下載本批 Excel",
|
||||
"download": "下載",
|
||||
"empty": "暫無可下載產物",
|
||||
"downloadFailed": "本批有 {count} 個產物下載失敗,請逐項重試",
|
||||
"singleDownloadFailed": "下載本批產物失敗"
|
||||
},
|
||||
"fileProcessing": "檔案處理中"
|
||||
},
|
||||
"batchFilesTotal": "共 {count} 個檔案",
|
||||
"batchComplete": "完成",
|
||||
"batchProcessed": "已處理",
|
||||
@@ -2595,8 +2623,9 @@
|
||||
"parsingAttachments": "正在解析附件",
|
||||
"emailMeta": "附件處理 · 系統處理中",
|
||||
"batchFilesUnavailable": "檔案明細暫不可用,請開啟批次工作台查看。",
|
||||
"openBatchWorkbench": "開啟批次工作台",
|
||||
"panelTitle": "本次處理中",
|
||||
"openBatchWorkbench": "開啟批次進度中心",
|
||||
"closeWorkbench": "關閉批次工作台",
|
||||
"panelTitle": "批次進度中心",
|
||||
"pendingMaterials": "待處理材料",
|
||||
"orderTasks": "訂單任務",
|
||||
"groupNeedsAction": "需要你處理 · {count} 個任務",
|
||||
@@ -2645,6 +2674,7 @@
|
||||
"status": {
|
||||
"processing": "處理中",
|
||||
"waiting_review": "待複核",
|
||||
"waiting_human": "待人工處理",
|
||||
"blocked": "已阻斷",
|
||||
"automating": "自動推進中",
|
||||
"completed": "已完成",
|
||||
|
||||
@@ -289,7 +289,7 @@
|
||||
"poll_freight_upload_rpa": "重新整理貨代上傳進度",
|
||||
"retry_freight_upload_rpa": "重試貨代上傳 RPA",
|
||||
"regenerate_manual_upload_todo": "重新產生待上傳待辦",
|
||||
"mark_manual_uploaded": "人工上傳登記"
|
||||
"mark_manual_uploaded": "確認已人工上傳"
|
||||
},
|
||||
"reasons": {
|
||||
"freeze_not_ready": "訂單尚未滿足建單/凍結條件",
|
||||
@@ -426,7 +426,6 @@
|
||||
"line_index": "行號",
|
||||
"field_code": "欄位",
|
||||
"request_id": "請求編號",
|
||||
"process_status": "處理狀態",
|
||||
"match_status": "匹配狀態",
|
||||
"task_no": "任務編號",
|
||||
"has_inventory_lines": "是否已有庫存行",
|
||||
@@ -445,7 +444,7 @@
|
||||
"openTask": "打開任務",
|
||||
"openProcessingHint": "單票校對、改單與履約登記請在訂單處理工作台完成。",
|
||||
"openProcessingUnavailable": "暫無法定位識別任務,請從原對話打開訂單處理工作台。",
|
||||
"progressSummary": "目前:{stage} · {current}/{total}",
|
||||
"progressSummary": "目前階段:{stage}",
|
||||
"progressBlocker": "目前阻斷:{reason}",
|
||||
"intakeParseBadge": "材料解析",
|
||||
"buckets": {
|
||||
|
||||
Reference in new issue
Block a user