feat(shipping-notice): 增强订单抽取功能,添加进度事件和诊断运行管理,优化数据模型和访问控制

This commit is contained in:
hugo committed 2026-07-21 23:17:29 +08:00
1 parent ce26d6d0c4
commit c4095b08da
175 files changed
+13064 -1814

No files matched your search

+26 -6
View File
@@ -30,7 +30,12 @@
"shippingCustomers": "貨代客戶",
"shippingConfig": "貨代設定",
"shippingInventory": "庫存設定",
"shippingIdentityRules": "客戶識別規則"
"shippingIdentityRules": "客戶識別規則",
"shippingOrderExtractionRuns": "訂單識別運行"
},
"shippingOrderExtractionRuns": {
"eyebrow": "唯讀執行診斷", "title": "訂單識別運行", "subtitle": "用於排查非同步訂單識別的運行、重試嘗試與脫敏節點生命週期;不顯示訂單正文、提示詞、輸入輸出或錯誤堆疊。", "refresh": "重新整理", "status": "狀態", "allStatuses": "全部狀態", "total": "共 {count} 筆", "runNo": "運行編號", "stage": "目前階段", "attempts": "嘗試次數", "createdAt": "建立時間", "totalDuration": "總耗時", "viewDetail": "查看詳情", "previous": "上一頁", "next": "下一頁", "loading": "正在載入...", "empty": "暫無運行記錄", "loadFailed": "載入訂單識別運行失敗", "detailFailed": "載入運行詳情失敗", "detailTitle": "運行診斷詳情", "workflowRunId": "Workflow Run ID", "errorCode": "錯誤碼", "jobAttempts": "Job 執行嘗試", "units": "文件單元診斷", "lifecycle": "脫敏節點生命週期",
"statuses": { "queued": "等待執行", "running": "執行中", "result_persisted": "結果已落庫", "completed": "已完成", "needs_review": "需使用者處理", "failed": "失敗", "cancelled": "已取消" }
},
"shippingOrderSchema": {
"eyebrow": "訂單欄位範本",
@@ -114,6 +119,12 @@
"searchFields": "搜尋顯示名稱或欄位編號",
"fieldCount": "{count} 個欄位",
"selectedInGroup": "目前欄位",
"dragToReorder": "拖曳調整欄位目錄的全域順序",
"dragGuide": "拖動欄位左側把手調整順序,僅支援同一分類內排序",
"globalOrderGuide": "拖動欄位左側把手調整全域順序;無需草稿或已發布版本,重新整理後仍保留",
"orderSaved": "欄位順序已儲存",
"orderSaveMismatch": "欄位順序儲存後不一致,請重新整理後再試",
"dragDisabledBySearch": "清除搜尋條件後即可拖曳排序",
"noMatchingFields": "沒有符合的欄位",
"cancelAddField": "收起新增",
"publishedRuleViewer": "已發佈欄位設定",
@@ -205,7 +216,9 @@
"difyExposurePolicy": "Dify 唯讀暴露策略",
"difyExposurePolicyOption": {"never":"永不暴露","redacted":"遮罩唯讀","confirmed_readonly":"凍結值唯讀"},
"difyExposurePolicyHint": {"never":"此欄位不會進入 Dify 輸入。","redacted":"僅傳入不可逆佔位值,不含原始電子郵件、網域或可恢復特徵。","confirmed_readonly":"傳入目前 Run 已凍結的 HXOPS 確定性值;不代表客戶已確認,Dify 不得回寫。"},
"availableForCustomerIdentity": "允許已發布版本用於客戶識別"
"availableForCustomerIdentity": "允許已發布版本用於客戶識別",
"orderHeaderIdentityTitle": "可作為客戶識別候選證據",
"orderHeaderIdentityHint": "訂單資訊屬於 Header 欄位,可作為客戶或送貨站點候選證據;系統不會只憑此欄位自動確認客戶。貨品明細不支援此設定。"
},
"shippingInventory": {
"title": "貨代設定",
@@ -641,6 +654,11 @@
"title": "應用配置",
"subtitle": "管理 AI 助手及其集成配置",
"new": "新建應用",
"newInternalExecutor": "新建內部執行器",
"editInternalExecutor": "編輯內部執行器",
"createInternalExecutor": "建立內部執行器",
"tabs": { "applications": "應用", "executors": "內部執行器" },
"executor": { "internalOnly": "僅供後台呼叫", "empty": "暫無內部執行器", "formSubtitle": "設定供後台能力綁定呼叫的內部執行器", "workflowExecutor": "Workflow 執行器" },
"edit": "編輯應用",
"create": "創建應用",
"noAgents": "暫無應用配置",
@@ -651,7 +669,9 @@
"config": "配置",
"status": "狀態",
"actions": "操作",
"aggregation": "聚合設定"
"aggregation": "聚合設定",
"executorType": "執行器類型",
"runtimeProtocol": "執行協議"
},
"fields": {
"name": "名稱",
@@ -838,7 +858,7 @@
"normalListHint": "僅目前應用"
}
,
"runtimeBinding": {"title":"後台業務能力綁定","subtitle":"為目前入口應用明確選擇後台業務 Provider,不按名稱或環境變數回退。","exposureMode":"應用可見性","exposureWorkspace":"工作台入口","exposureInternal":"內部業務 Provider","exposureHint":"內部應用僅供後台業務綁定,不向一般使用者顯示。","enabled":"啟用訂單抽取服務","provider":"訂單抽取服務 Provider","selectProvider":"請選擇內部 Dify Workflow","timeout":"逾時時間(秒)","maxAttempts":"最大嘗試次數","noProvider":"暫無符合條件的內部 Dify Workflow,請先建立並測試服務 Provider 應用。","providerRequired":"請先選擇訂單抽取服務 Provider。"}
"runtimeBinding": {"title":"後台業務能力綁定","subtitle":"為目前入口應用明確選擇後台業務 Provider,不按名稱或環境變數回退。","exposureMode":"應用可見性","exposureWorkspace":"工作台入口","exposureInternal":"內部業務 Provider","exposureHint":"內部應用僅供後台業務綁定,不向一般使用者顯示。","enabled":"啟用訂單抽取服務","provider":"訂單抽取服務 Provider","selectProvider":"請選擇內部 Dify Workflow","timeout":"逾時時間(秒)","maxAttempts":"最大嘗試次數","unitConcurrency":"文件並行數(2-4)","unitMaxAttempts":"單文件最大嘗試次數(1-3)","unitRetryBackoff":"單文件重試退避(毫秒)","maxModelUnits":"單次 Run 最大模型文件數","providerMaxConcurrency":"Provider 行程並行上限","circuitFailureThreshold":"熔斷連續失敗門檻","circuitCooldown":"熔斷冷卻時間(秒)","autoCreateEnabled":"通過全部業務門禁後允許自動建立任務","noProvider":"暫無符合條件的內部 Dify Workflow,請先建立並測試服務 Provider 應用。","providerRequired":"請先選擇訂單抽取服務 Provider。"}
},
"question": {
"title": "常用問題",
@@ -1635,10 +1655,10 @@
"loading": "正在載入識別規則...",
"definitions": "識別定義",
"definitionHint": "請選擇目前已發布 Schema 中允許客戶識別的 Header 欄位;執行時只使用該欄位的已裁決值。",
"code": "定義編碼", "target": "識別對象", "source": "來源", "automation": "自動化上限", "normalizer": "文字處理方式",
"code": "定義編碼", "target": "識別對象", "source": "來源", "automation": "自動化上限", "automationPolicy": "自動化上限(由使用者授權)", "automationPolicyHint": "預設僅作為候選;選擇受控自動確認後,仍須通過證據審核、唯一命中與系統品質門禁。", "normalizer": "文字處理方式",
"displayName": "規則名稱", "displayNamePlaceholder": "例如:美國客戶寄件者電子郵件", "evidenceLabel": "客戶主資料中的證據名稱", "evidenceLabelPlaceholder": "例如:客戶業務電子郵件", "description": "使用說明(可選)", "descriptionPlaceholder": "例如:用於識別美國區域的帳款客戶", "formGuide": "填寫業務名稱並選擇識別欄位;採集方式、格式與校驗規則全部繼承已發布訂單 Schema。", "emailType": "郵件識別內容", "identityAttribute": "用於識別什麼", "templateValue": "目前單據的版式特徵", "selectionResult": "本次規則將使用",
"selectField": "請選擇已發布識別欄位", "addDefinition": "新增業務定義", "definitionSaved": "識別定義已儲存", "workflowTitle": "設定順序", "workflowHint": "1. 新增識別定義;2. 建立、儲存並發布規則集;3. 返回客戶主資料維護客戶或送貨站點證據。", "openCustomerMaster": "前往客戶主資料維護證據",
"ruleSets": "規則集版本", "ruleSetHint": "發布後快照不可修改;退役訂單欄位前必須先替換或退役其引用定義。",
"ruleSets": "規則集版本", "ruleSetHint": "發布後快照不可修改;退役訂單欄位前必須先替換或退役其引用定義。", "publishedDefinitions": "本版本實際發布的識別定義", "publishedDefinitionsEmpty": "此版本未包含識別定義。",
"createDraft": "建立規則草稿", "saveDraft": "儲存草稿", "publish": "發布規則集", "ruleSetSaved": "規則草稿已儲存", "ruleSetPublished": "識別規則集已發布", "operationFailed": "客戶識別規則操作失敗",
"targets": { "customer": "客戶主體", "site": "送貨站點" }, "automations": { "none": "僅候選/人工確認", "conditional": "受控自動確認" }, "status": { "draft": "草稿", "published": "目前發布", "retired": "已退役" }
,