Merge branch 'dev' into runny827

feat(training): 新增精益培训视频与周任务管理

# Conflicts:
#	backend/app/models/__init__.py
This commit is contained in:
runny committed 2026-09-08 18:30:09 +08:00
1 parent 85d27e9ffa
commit 91b7233872
812 files changed
+73763 -18908

No files matched your search

+105 -41
View File
@@ -46,7 +46,8 @@
"linkedServices": "關聯服務",
"platformApps": "平台應用說明",
"procurementContract": "採購合同審查",
"trainingConfig": "培訓配置"
"trainingConfig": "培訓配置",
"integrationConnector": "整合連接器"
},
"shippingOrderExtractionRuns": {
"eyebrow": "唯讀執行診斷",
@@ -551,33 +552,6 @@
"schemaPolicyGroupHint": "自動建單與欄位派生作用於整份 Schema 版本;改動僅寫入草稿,發布後生效。",
"schemaPolicyDraftBadge": "草稿可編輯 · 待儲存/發布",
"schemaPolicyPublishedBadge": "僅檢視已發布版本",
"derivationRulesTitle": "欄位派生規則(目前 Schema 草稿)",
"derivationRulesHint": "僅允許同行明細欄位派生;發布後規則隨 Schema 版本凍結。",
"derivationRulesNote": "首期僅支援 copy_if_empty:目標為空時從客戶 PO 項次複製到內部項次。",
"derivationEnabled": "啟用",
"derivationSource": "來源欄位",
"derivationTarget": "目標欄位",
"derivationStrategy": "策略",
"derivationStrategyCopyIfEmpty": "僅為空複製",
"derivationSimulate": "樣本模擬",
"derivationSimulateTitle": "派生規則模擬",
"derivationSimulateSample": "樣本 JSON(明細行陣列)",
"derivationSimulateModeHistory": "歷史 Extraction 樣本",
"derivationSimulateModeInline": "手工 JSON",
"derivationSimulateHistorySample": "選擇可追溯樣本",
"derivationSimulateSamplesLoading": "正在載入樣本…",
"derivationSimulateSamplesEmpty": "暫無可用歷史樣本",
"derivationSimulateSampleOption": "Extraction #{id} · {lines} 行 · {status}",
"derivationSimulateSampleRequired": "請選擇歷史樣本",
"derivationSimulateRun": "執行模擬",
"derivationSimulateSampleInvalid": "樣本 JSON 必須是物件陣列",
"derivationSimulateSummary": "規則版本 V{version} · 校驗和 {checksum}… · 已派生 {derived} · 跳過 {skipped}",
"derivationSimulateNoMutate": "本操作不會建立或修改訂單。",
"derivationBefore": "派生前內部項次",
"derivationAfter": "派生後內部項次",
"derivationResult": "結果",
"derivationStatusDerived": "已派生",
"derivationStatusSkipped": "跳過:{reason}",
"viewFieldImpact": "影響分析",
"assetIdentity": "資產身份(唯讀)",
"assetKindLabel": "資產類型",
@@ -805,11 +779,11 @@
"noSourceOptions": "暫無可選欄位",
"systemFact": {
"task_no": "系統任務號",
"business_no": "正式業務單號",
"business_no": "發貨通知單號",
"warehouse_id": "貨代倉庫",
"inventory_source_code": "庫存來源編碼",
"export_date": "匯出日期",
"export_sequence": "匯出行序號"
"export_date": "發貨通知日期",
"notice_line_no": "發貨通知項次"
},
"orderFieldOptionsEmpty": "目前沒有已發布的訂單範本欄位;請先完成訂單範本設定並發布版本,之後此處會顯示可選來源欄位。",
"constantValueHint": "每次匯出都寫入相同內容,例如固定貨代代碼。",
@@ -1588,7 +1562,8 @@
"answerPlaceholder": "填寫命中後直接返回給使用者的完整回答…",
"cacheEnabled": "啟用 FAQ 快取(跳過 Dify)",
"isEnabled": "在前台展示",
"cacheHelp": "開啟後,匹配成功的問題將直接返回下方標準答案,不再呼叫 Dify。",
"isEnabledHelp": "僅控制工作台首頁是否出現快捷入口,不影響聊天是否直答。",
"cacheHelp": "開啟後,匹配成功的問題將直接返回下方標準答案,不再呼叫 Dify。與是否在前台展示無關。",
"expiresAt": "過期時間",
"expiresAtHelp": "可選。到期後不再命中快取,留空表示長期有效。"
},
@@ -2272,15 +2247,11 @@
"difySystemPromptHint": "僅在啟用 Dify Agent 時可配置。保存後將作為 system_prompt 傳入 Workflow;編排中 LLM 節點需引用該變數。",
"difySystemPromptPlaceholder": "例如:你是物料合規判定助手。根據 record 中的檢測資料判定是否合格,僅返回 JSON:dify_result(合格/不合格/人工判定)與 dify_message。",
"platformJobAccountingVoucherCheck": "立帳憑證檢核",
"accountingVoucherCheckHint": "依當前自然月拉取 ERP 發票清單,掃描共用磁碟必檢材料是否存在(不讀檔案內容)。",
"accountingVoucherCheckHint": "每週二檢核上一個自然月的銷售開票附件:拉取 ERP 發票清單,掃描文件庫類型目錄並依 invoice 歸檔(同名略過)。",
"voucherCheckScope": "帳套",
"voucherCheckDirTemplate": "目錄範本",
"voucherCheckDirTemplateHelp": "僅允許 {root}/{YYYY}/{MM}/{invoice_no}",
"voucherCheckRequiredFiles": "必檢材料",
"voucherCheckCaseSensitive": "檔名區分大小寫",
"voucherCheckProfile": "業務方 Profile",
"voucherCheckNotifyMissing": "缺資料通知",
"voucherCheckNotifyFailure": "失敗告警",
"voucherCheckSameDayDedup": "同票同日去重"
"voucherCheckNotifyFailure": "失敗告警"
},
"status": {
"all": "全部狀態",
@@ -2664,8 +2635,7 @@
},
"events": {
"customer_auto_resolution_evaluated": "自動裁決已評估",
"customer_auto_confirmed": "客戶已自動確認",
"customer_correction_applied": "客戶糾錯已套用"
"customer_auto_confirmed": "客戶已自動確認"
},
"gate": {
"title": "自動確認品質門禁",
@@ -3563,6 +3533,10 @@
"schemaBreaking": "欄位版本存在不相容變更,需要遷移",
"regionSuggestionReady": "已產生待複核的行和欄位標記,請確認欄位綁定後儲存。",
"unboundColumn": "待綁定欄 {count}",
"unboundRegionsBanner": "草稿仍有 {count} 個未綁定訂單欄位框(會阻斷發布)。請到對應頁查看橙色框,選取後可刪除,或一鍵清除。",
"unboundRegionsBannerAria": "未綁定訂單欄位框列表",
"unboundRegionChip": "P{page} · {label}",
"clearUnboundRegions": "清除全部未綁定框",
"drawHeader": "繪製表頭",
"drawOrderField": "繪製訂單欄位",
"drawOrderAnchor": "繪製訂單欄位標籤",
@@ -4957,5 +4931,95 @@
"videoUploaded": "培訓影片已上傳並加入配置資源",
"videoUploadFailed": "培訓影片上傳失敗"
}
},
"integrationConnector": {
"title": "整合連接器",
"subtitle": "設定外部系統客戶端、介面範本與回傳映射,並繫結到能力;這是自動調撥能運行的整合設定。",
"add": "新增",
"formHint": "JSON 欄位請在編輯框中維護;發布狀態決定該設定是否被 Worker 使用。",
"call": "呼叫",
"test": "連線測試",
"empty": "暫無資料",
"tabs": {
"client": "客戶端實例",
"interface": "介面定義",
"binding": "繫結",
"credential": "憑證引用",
"capability": "能力清單"
},
"headers": {
"code": "編碼",
"name": "名稱",
"connectorType": "類型",
"environment": "環境",
"status": "狀態",
"clientInstance": "客戶端實例",
"interfaceDef": "介面定義",
"secretRef": "Secret 引用",
"secretProvider": "來源",
"capability": "能力",
"write": "寫入",
"idempotency": "冪等",
"actions": "操作"
},
"fields": {
"code": "編碼",
"name": "名稱",
"connectorType": "連接器類型",
"environment": "環境",
"credentialRef": "憑證引用編碼",
"configJson": "連線設定 JSON(介面位址/逾時/預設 org 等)",
"clientInstance": "客戶端實例",
"requestSpec": "請求範本 JSON",
"inputSchema": "入參 Schema JSON",
"responseMapping": "回傳映射 JSON",
"outputSchema": "出參 Schema JSON",
"status": "狀態",
"enabled": "啟用",
"capability": "能力",
"interfaceDef": "介面定義",
"mappingVersion": "映射版本",
"priority": "優先順序",
"effectiveFrom": "生效開始",
"effectiveTo": "生效結束",
"contextSelector": "上下文選擇器 JSON(鍵值對,如 source_code=DBS-AWSBI)",
"secretRef": "Secret 引用鍵",
"secretProvider": "Secret 來源",
"credentialType": "憑證類型",
"endpoint": "介面位址",
"timeout": "逾時(秒)",
"wsdl": "WSDL 位址",
"httpMethod": "HTTP 方法",
"requestPath": "請求路徑",
"contextSourceCode": "來源實例編碼"
},
"msg": {
"fillClient": "請填寫編碼與名稱",
"fillInterface": "請填寫編碼並選擇客戶端實例",
"fillBinding": "請填寫能力、客戶端實例與介面定義",
"fillCredential": "請填寫編碼與 Secret 引用",
"invalidJson": "{field} JSON 格式無效",
"saved": "已儲存",
"deleted": "已刪除",
"testOk": "連線測試通過"
},
"callModal": {
"title": "呼叫能力:{capability}",
"hint": "僅供偵錯:手動呼叫一個已註冊能力,入參與上下文將依目前繫結解析。",
"params": "入參 JSON",
"paramsHint": "依能力入參 Schema 填寫,例如 invoice_no / from_warehouse / to_warehouse / quantity。",
"context": "上下文 JSON",
"contextHint": "用於繫結選擇器匹配,如 source_code=DBS-AWSBI。",
"result": "呼叫結果",
"run": "呼叫",
"running": "呼叫中…"
},
"placeholders": {
"endpoint": "https://erp-api.example.com/ws",
"wsdl": "https://erp-api.example.com/wsdl",
"requestPath": "路徑支援佔位符,如 /transfer/xxx",
"contextSourceCode": "例如 DBS-AWSBI"
},
"advancedConfig": "進階設定(JSON)"
}
}