feat(shipping-order): 迭代货代订单提取与履约全流程功能

添加订单字段自动标注配置,默认仅关键字段参与自动框选
完善字段规范化逻辑,支持更多日期格式解析
添加订单候选人工采纳、驳回的完整流程,包含API、前端交互与状态管理
完善盲测功能,支持订单级字段真值校验,调整盲测集唯一性约束
加固库存校验逻辑,防止重复预约与数量不一致问题
优化坐标匹配逻辑,支持表格外的锚点定位
新增上传结果未知的状态处理,完善任务状态机
更新多语言文案与文档说明,补充功能细节
修复订单合并、重解析的边缘情况问题
补充相关测试用例,完善质量保障
This commit is contained in:
hugo committed 2026-07-27 20:48:40 +08:00
1 parent 11079910ec
commit 90f77634d6
76 files changed
+5056 -338

No files matched your search

+46 -6
View File
@@ -263,6 +263,7 @@
"autoCreationEnabled": "啟用自動建單",
"autoCreationSaved": "自動建單設定已儲存",
"autoCreateKeyField": "建單關鍵欄位",
"autoAnnotationEnabled": "參與自動標記",
"minimumKeyFieldConfidence": "關鍵欄位最低信心度",
"unnamedField": "未命名欄位",
"pendingNameField": "待命名欄位 {number}",
@@ -2497,18 +2498,37 @@
"title": "盲測",
"samples": "樣本:{count} · {status}",
"notRun": "尚未執行",
"approvedHint": "盲測已批准,無須重複執行或批准。",
"selectIndependentSample": "選擇獨立樣本",
"selectSamplePlaceholder": "請選擇未參與目前範本標註的訂單",
"noIndependentSamples": "沒有可用的獨立樣本;請先上傳並完成解析另一份同類訂單。",
"reviewHint": "請逐項勾選正確或錯誤;標示錯誤時填寫更正值,未勾選不能加入盲測。",
"row": "明細 {index}",
"correct": "正確",
"incorrect": "錯誤",
"confirmReview": "確認複核並加入盲測",
"correctionInvalid": "明細更正值必須是 JSON 欄位物件。",
"expectedRows": "人工真值(JSON 陣列)",
"expectedRowsPlaceholder": "[{\"line_no\": \"00010\", \"part_number\": \"PN-1\", \"qty\": \"3\"}]",
"expectedRowsHint": "請輸入至少一筆人工確認的明細真值;不可複製候選結果。",
"expectedRowsInvalid": "真值必須是至少包含一個非空明細物件的 JSON 陣列。",
"trainingAdded": "已綁定目前訓練樣本",
"addTrainingSample": "新增訓練樣本",
"addCurrentSample": "新增目前盲測樣本",
"expectedOrderFields": "訂單欄位真值(JSON 物件)",
"expectedOrderFieldsPlaceholder": "{\"customer_po\": \"PO-45001\"}",
"expectedOrderFieldsHint": "已設定訂單欄位時,必須填寫每個欄位的人工確認值。",
"expectedOrderFieldsInvalid": "訂單欄位真值必須是 JSON 物件。",
"trainingAdded": "已綁定目前訓練樣本",
"addTrainingSample": "新增訓練樣本",
"addedSamples": "已加入的盲測樣本",
"addedSamplesHint": "草稿可移除;批准後保留稽核記錄。",
"removeSample": "移除樣本",
"sampleRemoved": "盲測樣本已移除",
"addCurrentSample": "新增目前盲測樣本",
"run": "執行",
"approve": "批准"
},
"workbench": {
"intro": "在受控文件頁面拖曳證據區域;儲存定義不含 HTML 或儲存位址。",
"workbench": {
"boundHistoricalSchema": "已綁定歷史版本",
"intro": "在受控文件頁面拖曳證據區域;儲存定義不含 HTML 或儲存位址。",
"openCanvas": "建立草稿並開啟畫布",
"loadingPage": "正在載入頁面…",
"canvasZoom": "頁面縮放",
@@ -2532,6 +2552,8 @@
"regionSuggestionReady": "已產生待複核的行和欄位標記,請確認欄位綁定後儲存。",
"unboundColumn": "待綁定欄 {count}",
"drawHeader": "繪製表頭",
"drawOrderField": "繪製訂單欄位",
"drawOrderAnchor": "繪製訂單欄位標籤",
"drawLine": "繪製實體行",
"drawField": "繪製欄位",
"drawExclusion": "繪製排除區",
@@ -2559,6 +2581,21 @@
"undo": "復原",
"redo": "重做",
"header": "表頭",
"orderField": "訂單欄位",
"orderFieldCandidates": "訂單單頭欄位",
"unbound": "待綁定",
"noAnnotatedOrderFields": "目前頁面尚未標記訂單單頭欄位。",
"suggestedValue": "識別值",
"orderAnchor": "訂單欄位標籤",
"orderAnchorTool": "欄位標籤",
"headerTool": "明細表頭",
"lineTool": "明細行項",
"fieldTool": "明細欄位",
"exclusionTool": "排除區域",
"orderFieldValueMode": "讀取方式",
"orderFieldStopAnchor": "結束標籤",
"orderFieldStopAnchorPlaceholder": "例如 SHIP TO",
"orderFieldModes": { "singleLine": "單行", "rightOfAnchor": "標籤右側", "belowAnchor": "標籤下方", "multiLine": "多行" },
"matchCurrentHeader": "比對目前表頭",
"matchAllHeaders": "比對全部表頭",
"confirmHeaderBinding": "確認「{text}」綁定為 {field}",
@@ -2590,6 +2627,8 @@
"regionLabels": {
"header": "表頭 {count}",
"header_field": "表頭欄位 {count}",
"order_field": "訂單欄位 {count}",
"order_anchor": "訂單欄位標籤 {count}",
"line": "實體行 {count}",
"field": "欄位 {count}",
"exclusion": "排除區 {count}"
@@ -2599,7 +2638,8 @@
"table": "請選擇目前頁面的表格。",
"line": "請至少新增一個主行布局。",
"field": "請至少綁定一個明細欄位。",
"coordinateField": "目前訂單欄位版本沒有授權 PDF 座標來源的啟用明細欄位,請先在訂單欄位範本中授權後再建立。"
"coordinateField": "目前訂單欄位版本沒有授權 PDF 座標來源的啟用明細欄位,請先在訂單欄位範本中授權後再建立。",
"orderFieldStopAnchor": "多行訂單欄位必須填寫結束標籤。"
}
}
}