+
{{ getUserAvatarLabel(userProfile.profileUser) }}
diff --git a/frontend/src/features/workspace/constants/routes.ts b/frontend/src/features/workspace/constants/routes.ts
index cf86cf67..f7903444 100644
--- a/frontend/src/features/workspace/constants/routes.ts
+++ b/frontend/src/features/workspace/constants/routes.ts
@@ -19,6 +19,7 @@ export const WORKSPACE_PATHS = {
accountingVoucherCheck: '/workspace/accounting-voucher-check',
accountingVoucherCheckDetail: (runId: number | string) => `/workspace/accounting-voucher-check/runs/${runId}`,
contractPayment: '/workspace/contract-payment',
+ orderDeliveryReply: '/workspace/order-delivery-reply',
contractPaymentReview: '/workspace/contract-payment/review',
contractPaymentWeeklyBatches: '/workspace/contract-payment/weekly-batches',
contractPaymentDetail: (contractId: number) => `/workspace/contract-payment/contracts/${contractId}`,
@@ -38,6 +39,7 @@ export const LEGACY_VIEW_TO_PATH: Record = {
shipping_notice: WORKSPACE_PATHS.shippingNotice,
accounting_voucher_check: WORKSPACE_PATHS.accountingVoucherCheck,
contract_payment: WORKSPACE_PATHS.contractPayment,
+ order_delivery_reply: WORKSPACE_PATHS.orderDeliveryReply,
history: WORKSPACE_PATHS.history,
};
diff --git a/frontend/src/locales/en/admin.json b/frontend/src/locales/en/admin.json
index e06e91f2..11dd1621 100644
--- a/frontend/src/locales/en/admin.json
+++ b/frontend/src/locales/en/admin.json
@@ -47,7 +47,8 @@
"linkedServices": "Linked Services",
"procurementContract": "Procurement Contract Review",
"trainingConfig": "Training Config",
- "integrationConnector": "Integration Connector"
+ "integrationConnector": "Integration Connector",
+ "contractPayment": "Contract Payment Alerts"
},
"shippingOrderExtractionRuns": {
"eyebrow": "READ-ONLY RUN DIAGNOSTICS",
@@ -1139,7 +1140,12 @@
"status": "Status",
"enable": "Enable",
"disable": "Disable",
- "save": "Save"
+ "save": "Save",
+ "guideUsage": "Material Usage",
+ "generalGuide": "General Guide",
+ "trainingVideo": "Employee Training Video",
+ "trainingExamPdf": "Employee Training Exam PDF",
+ "guideUsageHint": "The training workspace prioritizes \"Employee Training Video\" and \"Employee Training Exam PDF\" materials."
},
"dash": {
"activeAgents": "Active Agents",
@@ -1208,6 +1214,10 @@
"trainingLeanTeamManage": "Lean training team management",
"contractPaymentAccess": "Contract payment alert access",
"contractPaymentAccessHint": "Allows this user to open the contract payment workbench (ledger, review, weekly batches). Syncing OA, scanning alerts, and sending weekly alerts remain admin-only.",
+ "orderDeliveryReplyManage": "Order Delivery Reply Manage",
+ "orderDeliveryReplyManageHint": "Grants replying delivery batches, sending/batch notifications and manual ERP sync (production planning).",
+ "orderDeliveryReplyAccess": "Order Delivery Reply Access",
+ "orderDeliveryReplyAccessHint": "Grants read-only access to synced orders and replies (business users); managing requires the manage permission.",
"password": "Password",
"passwordHint": "(leave blank to keep)",
"noAgents": "No agents available."
@@ -1249,7 +1259,11 @@
"delete": "Delete",
"viewMembers": "View department members"
},
- "members": { "title": "{name} Members", "count": "{count} members", "empty": "No members" },
+ "members": {
+ "title": "{name} Members",
+ "count": "{count} members",
+ "empty": "No members"
+ },
"fields": {
"name": "Name",
"namePlaceholder": "e.g. IT Department",
@@ -1796,7 +1810,12 @@
"employeeIdSource": "Employee ID Source",
"mobileNormalize": "Normalize mobile number",
"publicBaseUrl": "Public HTTPS base (extranet)",
- "userSelect": "Select user"
+ "userSelect": "Select user",
+ "callbackToken": "Callback Token",
+ "encodingAesKey": "EncodingAESKey",
+ "callbackUrl": "Callback URL",
+ "homepageUrl": "Homepage URL",
+ "trustedDomain": "Trusted Domain"
},
"bindModes": {
"match_rules": "Match automatically",
@@ -1909,8 +1928,23 @@
"filterName": "Filter by Name/Username",
"filterDept": "Filter by Department",
"allRoles": "All Roles",
- "views": { "apps": "By Application", "members": "By Member" },
- "appHeaders": { "app": "Application", "type": "Type", "authorized": "Authorized", "actions": "Actions", "viewMembers": "View members", "accessHint": "Open member permissions", "memberHint": "Add or remove access to this application", "memberSearch": "Search name, username, employee ID, or department", "addMember": "Grant access", "removeMember": "Remove access", "noMembers": "No matching members" },
+ "views": {
+ "apps": "By Application",
+ "members": "By Member"
+ },
+ "appHeaders": {
+ "app": "Application",
+ "type": "Type",
+ "authorized": "Authorized",
+ "actions": "Actions",
+ "viewMembers": "View members",
+ "accessHint": "Open member permissions",
+ "memberHint": "Add or remove access to this application",
+ "memberSearch": "Search name, username, employee ID, or department",
+ "addMember": "Grant access",
+ "removeMember": "Remove access",
+ "noMembers": "No matching members"
+ },
"headers": {
"user": "User",
"realName": "Real Name",
@@ -2147,7 +2181,7 @@
"tokens_completion": "Completion Tokens",
"total_tokens": "Total Tokens",
"latency_ms": "Latency (ms)",
- "latency": "Latency",
+ "latency": "Latency (ms)",
"cost": "Cost",
"ip": "IP",
"user_agent": "User Agent",
@@ -2166,7 +2200,6 @@
"source_page": "Source Page",
"risk_status": "Risk Status",
"risk_score": "Risk Score",
- "latency": "Latency (ms)",
"is_empty_answer": "Empty Answer",
"is_system_failure": "System Failure",
"feedback_score": "Rating",
@@ -2183,7 +2216,8 @@
"agents": "App Ops",
"ops_overview": "Ops Overview",
"issue_analysis": "Issue Analysis",
- "usage_analysis": "Usage Analytics"
+ "usage_analysis": "Usage Analytics",
+ "permission_requests": "Permission Requests"
},
"feedbackValues": {
"types": {
@@ -2391,6 +2425,14 @@
"topApp": "App to optimize",
"topAppHint": "Attention signal share {ratio}%"
}
+ },
+ "usageRangeLabel": "Time range",
+ "usageRanges": {
+ "7d": "Last 7 days",
+ "30d": "Last 30 days",
+ "90d": "Last 3 months",
+ "180d": "Last 6 months",
+ "365d": "Last 12 months"
}
},
"batchEdit": {
@@ -2650,7 +2692,9 @@
"voucherCheckNotifyMissing": "Notify on missing materials",
"voucherCheckNotifyMissingHint": "Master switch. Set missing-file recipients in Chat “Accounting voucher check → Notification config” by file type. The schedule people picker is only for failure alerts.",
"voucherCheckNotifyFailure": "Failure alert",
- "voucherCheckNotifyFailureHint": "Technical failures go to the people selected below."
+ "voucherCheckNotifyFailureHint": "Technical failures go to the people selected below.",
+ "dynamicParamsSearchPlaceholder": "Search options (name / ID / dept)…",
+ "dynamicParamsSearchNoMatch": "No matching options"
},
"testRun": {
"title": "Test run — {name}",
@@ -2734,7 +2778,8 @@
"notConfiguredUseDefault": "(Not configured; using Dify workflow default prompt)",
"notEnabledTest": "Dify was not enabled for this test",
"notEnabledRun": "Dify Agent was not enabled for this run"
- }
+ },
+ "excelExportFailedHint": "Inventory source succeeded, but schedule Excel generation failed"
},
"shippingIdentityRules": {
"eyebrow": "Shipping customer governance",
@@ -4380,7 +4425,8 @@
"rejected": "Rejected",
"needs_review": "Needs review"
},
- "confirmRequiresNativePreview": "Load the native PDF preview before confirming a visual binding"
+ "confirmRequiresNativePreview": "Load the native PDF preview before confirming a visual binding",
+ "createBlockersTitle": "Pre-creation Blockers"
},
"xfaAutoMark": {
"title": "Auto-mark suggestions",
@@ -5422,7 +5468,17 @@
"trainingAgentRequired": "The Employee Training agent was not found, so a video resource cannot be created",
"videoUploaded": "Training video uploaded and added to configuration resources",
"videoUploadFailed": "Failed to upload training video"
- }
+ },
+ "eyebrow": "Training Operations Center",
+ "pageHint": "Configuration changes take effect after saving",
+ "footerHint": "All configuration items can be adjusted after saving",
+ "stats": {
+ "total": "Total Configs",
+ "published": "Published",
+ "resources": "Current Materials",
+ "levels": "Configured Levels"
+ },
+ "questionBankTitle": "Onboarding Question Bank"
},
"integrationConnector": {
"title": "Integration Connector",
diff --git a/frontend/src/locales/en/chat.json b/frontend/src/locales/en/chat.json
index 82a0852f..38d051f3 100644
--- a/frontend/src/locales/en/chat.json
+++ b/frontend/src/locales/en/chat.json
@@ -1188,7 +1188,11 @@
"departmentLabel": "Department",
"allStatuses": "All statuses",
"allDepartments": "All departments",
- "noLimit": "No limit"
+ "noLimit": "No limit",
+ "typeLabel": "Training Type",
+ "allTypes": "All Training",
+ "typeOnboarding": "Onboarding Training",
+ "typeSafety": "Safety Training"
},
"columns": {
"joinDate": "Join date",
@@ -1543,6 +1547,75 @@
"Which employees have not finished training?",
"I want this month training score statistics"
]
+ },
+ "safety": {
+ "tabs": {
+ "onboarding": "入职培训",
+ "safety": "安全培训"
+ },
+ "progressTitle": "三级安全教育培训进度",
+ "progressHint": "按国家安全生产法要求,新员工须依次完成公司级、部门级、班组级三级安全教育。学完三级的全部资料/视频后,进入1次统一考试,≥90分及格方可结业。",
+ "steps": {
+ "company": "01 · 公司级",
+ "department": "02 · 部门级",
+ "team": "03 · 班组级",
+ "exam": "04 · 统一考试"
+ },
+ "stepStatus": {
+ "watchVideo": "观看视频",
+ "examReq": "≥90 分及格",
+ "completed": "已完成",
+ "inProgress": "进行中",
+ "pending": "待学习",
+ "examPending": "需先学完三级"
+ },
+ "videoPanelTitle": "{level} 第{step}步",
+ "videoPanelSubtitle": "观看安全教育培训视频",
+ "videoPanelPassLine": "及格线:≥ 90分方可进入考试",
+ "videoTitle": "部门安全生产管理制度宣导",
+ "videoDuration": "时长 35 分钟 · 已完成 12%",
+ "materialsTitle": "培训资料清单 (共 3 个文件/视频)",
+ "materials": {
+ "m1": "部门安全生产管理制度宣导.mp4",
+ "m2": "危险化学品安全操作规程.pdf",
+ "m3": "消防应急疏散演练视频.mp4"
+ },
+ "flowTitle": "学习与考试流程",
+ "flowSteps": {
+ "company": "公司级安全教育",
+ "department": "部门级安全教育",
+ "team": "班组级安全教育",
+ "exam": "统一考试 ≥90分"
+ },
+ "summaryTitle": "培训总结",
+ "summaryContent": {
+ "company": [
+ "1公司教育:国家有关安全生产方针、政策、法律、法规和有关规定。",
+ "2公司安全生产特点、有关安全管理标准和制度、安全生产情况及安全生产基本知识。",
+ "3企业安全生产规章制度、安全纪律和劳动纪律。",
+ "4安全生产和职业卫生的基本知识(防机械伤害、安全用电、防火防爆、防尘防毒、急救、危险因素、应急预案等)。",
+ "5作业场所和工作岗位存在的危险因素、防范措施及事故应急措施;",
+ "6安全生产正反方面的经验和教训,及重大事故安全案例教训。",
+ "7从业人员安全生产权利和义务;"
+ ],
+ "department": [
+ "1部门概况、生产或作业特点、可能存在的不安全因素及必须遵守的事项。",
+ "2公司、部门安全生产状况、管理制度规定和安全注意事项。",
+ "3所从事工种的安全技术操作规程、安全职责、操作技能及强制性标准。",
+ "4一般的机械设备、电气、触电、中暑、中毒急救安全基础知识",
+ "5作业场所和工作岗位存在的风险、部门危险因素分布、安全通道、职业危害、伤亡事故、应急救缓预案内容。防火、防毒、防尘、防爆知识及紧急情况安全处置、自救互救、急救方法、疏散和现场紧急情况的处理。",
+ "6部门安全设施(工具)、安全警示标志、急救器材、消防器材和个人防护用品的性能、使用方法和维护。",
+ "7部门以往发生的典型安全和职业危害事故教育、岗位预防措施等。",
+ "8有关事故案例。"
+ ],
+ "team": [
+ "1本班组(岗位)生产工艺流程、作业特点和注意事项、安全操作规程及细则。",
+ "2本班组安全活动制度及纪律、岗位之间工作衔接配合的安全与职业卫生事项。",
+ "3本班组(岗位)设备、工具的性能和安全装置、安全设施、监控仪器的作用原理、正确使用方法、防护用品及消防器材的使用和保管方法等。",
+ "4危害因素及防范、应急措施,本岗位易发生事故的不安全因素及其防范对策,本工种事故案例剖析。",
+ "5本岗位发现紧急情况应采取的应救措施和报告办法。"
+ ]
+ }
}
},
"shippingOrderReview": {
@@ -2679,7 +2752,8 @@
"inventory_source_unresolved": "Inventory source unresolved",
"effective_reservation_missing": "A valid reservation number is missing",
"unknown": "The system found an item that needs confirmation"
- }
+ },
+ "autoCreateBlocked": "Manual creation qualified, but auto-creation is not; after confirmation it will proceed manually."
},
"inventoryCandidates": {
"title": "Manual inventory selection",
diff --git a/frontend/src/locales/en/errors.json b/frontend/src/locales/en/errors.json
index 5af1f498..b25e9963 100644
--- a/frontend/src/locales/en/errors.json
+++ b/frontend/src/locales/en/errors.json
@@ -1,6 +1,21 @@
{
"generic": "Request failed.",
"codes": {
+ "ORDER_DELIVERY_REPLY.FORBIDDEN": "You do not have permission to view order delivery replies. Contact an administrator.",
+ "ORDER_DELIVERY_REPLY.LINE_NOT_FOUND": "Order delivery line not found or no longer in sync scope.",
+ "ORDER_DELIVERY_REPLY.ADMIN_REQUIRED": "Only platform administrators can grant permissions by department.",
+ "ORDER_DELIVERY_REPLY.GRANT_DEPARTMENT_REQUIRED": "Please specify the department to grant permissions to.",
+ "ORDER_DELIVERY_REPLY.GRANT_PERMISSION_INVALID": "Permission type must be manage or access.",
+ "ORDER_DELIVERY_REPLY.BATCH_REPLY_EMPTY": "Batch reply requires at least one line and at most 200 per request.",
+ "ORDER_DELIVERY_REPLY.NOTIFY_BATCH_EMPTY": "Batch notify requires at least one line and at most 200 per request.",
+ "ORDER_DELIVERY_REPLY.SALESPERSON_UNMAPPED": "The salesperson has no linked account or WeCom binding; notification cannot be sent.",
+ "ORDER_DELIVERY_REPLY.NOTIFY_FAILED": "WeCom notification failed. The line remains unlocked; please retry later.",
+ "ORDER_DELIVERY_REPLY.LINE_LOCKED": "The delivery schedule of this line is locked after notification and cannot be modified.",
+ "ORDER_DELIVERY_REPLY.MANAGE_FORBIDDEN": "You do not have manage permission for order delivery replies.",
+ "ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "Please provide at least one delivery batch.",
+ "ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "Too many batches for a single line.",
+ "ORDER_DELIVERY_REPLY.BATCH_INVALID": "Invalid batch format. Check the date, quantity, or remark.",
+ "ORDER_DELIVERY_REPLY.BATCH_QTY_TOTAL_MISMATCH": "The total of all batch quantities must equal the order quantity. Please adjust and save again.",
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "The selected ODM ID is not among the feasible candidates. Please choose again.",
"SHIPPING.FULFILLMENT_POLICY_INVALID": "The fulfillment policy or field capability binding is invalid.",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "The fulfillment policy was not found.",
diff --git a/frontend/src/locales/en/workspace.json b/frontend/src/locales/en/workspace.json
index 2cab7882..fa73bcff 100644
--- a/frontend/src/locales/en/workspace.json
+++ b/frontend/src/locales/en/workspace.json
@@ -113,7 +113,8 @@
"contractPayment": "Contract Payment Alerts",
"contractPaymentLedger": "Contract Ledger",
"contractPaymentReview": "Contracts for Confirmation",
- "contractPaymentWeeklyBatches": "Weekly Summary Batches"
+ "contractPaymentWeeklyBatches": "Weekly Summary Batches",
+ "orderDeliveryReply": "Order Delivery Reply"
},
"kb": {
"accessDenied": "Administrator access is required to open the knowledge base."
@@ -202,7 +203,21 @@
"resend": "Resend to WeCom",
"failedUnits": "Failed receipt units",
"retry": "Retry with reason",
- "retryReasonPrompt": "Enter the reason for retrying {target}"
+ "retryReasonPrompt": "Enter the reason for retrying {target}",
+ "batch": {
+ "selectAll": "全選目前頁通知單",
+ "selected": "已選 {count} 張",
+ "download": "批次下載 Excel",
+ "confirm": "批次確認已上傳",
+ "rpa": "批次啟動 RPA",
+ "downloadStarted": "已開始下載所選發貨通知 Excel",
+ "success": "{action}:已處理 {count} 張通知單",
+ "partialResult": "{action}:成功 {accepted} 張,阻斷 {blocked} 張,請查看重新整理後的通知狀態。",
+ "lines": "項次",
+ "parts": "料號",
+ "quantities": "本次發貨 / 可用庫存",
+ "uploadStatus": "貨代狀態"
+ }
},
"shippingNotice": {
"title": "Shipping Notice Tasks",
@@ -968,5 +983,100 @@
"notifyExcel": "Excel",
"downloadExcel": "Download Excel",
"downloadExcelFailed": "Failed to download Excel"
+ },
+ "orderDeliveryReply": {
+ "deepLinkLocated": "Located the order line from the notification: {order}:{item}",
+ "search": "Search",
+ "reset": "Reset",
+ "saving": "Saving…",
+ "syncNow": "Refresh now",
+ "syncing": "Syncing…",
+ "syncNever": "Never synced",
+ "syncAt": "Last sync: {time}",
+ "syncRunning": "Sync in progress…",
+ "syncFailedAt": "Last sync failed ({time}); list shows the last successful snapshot",
+ "syncDone": "Sync completed, {count} lines",
+ "syncSkipped": "A sync is already running; try again later",
+ "syncFailedTitle": "Sync failed; last snapshot kept",
+ "filterKeyword": "Keyword (order / product / customer / salesperson / replier)",
+ "filterKeywordPh": "Search by order no., part no., name, customer part no., customer, salesperson, or reply person",
+ "filterOrderDate": "Order Date",
+ "filterStatus": "Reply Status",
+ "statusAll": "All",
+ "statusReplied": "Replied",
+ "statusNotFully": "Not fully replied",
+ "statusNotReplied": "Not replied",
+ "statusPartial": "Partially replied",
+ "totalCount": "{count} product lines",
+ "selectAll": "Select all (this page)",
+ "selectedCount": "{count} lines selected",
+ "batchReply": "+ Batch reply",
+ "batchNotify": "Batch notify",
+ "toolbarHint": "Batch reply only saves; click \"Batch notify\" to send and lock.",
+ "colOrderLine": "Order : Item",
+ "colOrderDate": "Order Date",
+ "colCustomer": "Customer",
+ "colSalesperson": "Salesperson",
+ "colDept": "Department",
+ "colCustomerPo": "Customer PO",
+ "colPartNo": "Part No.",
+ "colPartName": "Part Name",
+ "colSpec": "Spec",
+ "colCustomerPartNo": "Customer Part No.",
+ "colAgreedDate": "Agreed Date",
+ "colUnit": "Unit",
+ "colQty": "Qty",
+ "colDelivered": "Delivered",
+ "colUndelivered": "Undelivered",
+ "colStatus": "Reply Status",
+ "colReply": "Delivery Reply",
+ "colNotify": "Notify",
+ "colReplyPerson": "Replied By",
+ "batchCount": "{count} batches",
+ "repliedOf": "replied {replied}/{remain}",
+ "overTag": "OVER",
+ "collapse": "Collapse ▲",
+ "expand": "+{count} more ▾",
+ "lockedTag": "Locked",
+ "replyAction": "Reply",
+ "editReplyAction": "Edit reply",
+ "notifiedTag": "Notified {name}",
+ "replyFirst": "Reply first",
+ "notifyAction": "Send notification",
+ "pendingNotify": "Recorded after notify",
+ "empty": "No matching order lines",
+ "pageInfo": "Page {page} / {pages}",
+ "modalTitleSingle": "Reply · {order} / item {item}",
+ "modalTitleBatch": "Batch reply ({count} lines)",
+ "quickDate": "Quick unified date",
+ "applyQuickDate": "Apply to all",
+ "modalHint": "Fill one date, or split into multiple date+qty batches; the batch quantity total must equal the order quantity.",
+ "itemLabel": "Item {item}",
+ "qtyPh": "Qty",
+ "remarkPh": "Remark (optional)",
+ "removeBatch": "Remove batch",
+ "addBatch": "+ Add batch (date + qty + remark)",
+ "saveReply": "Save reply",
+ "noValidBatches": "Fill a date and quantity for at least one line",
+ "saveSingleDone": "Batches saved (not notified; still editable)",
+ "saveBatchDone": "Saved batches for {ok} lines (not notified)",
+ "saveBatchPartial": "Saved: {ok} ok, {fail} failed: {detail}",
+ "saveFailedTitle": "Save failed",
+ "loadFailed": "Failed to load order lines",
+ "notifyConfirm": "Send to salesperson \"{salesperson}\"?\nYou have order {order}:{item} to fill/confirm/check delivery.\nThe schedule will be locked after sending.",
+ "notifyDone": "Notified and locked: {order}:{item}",
+ "notifyBatchConfirm": "Send notifications for {count} lines; successful lines will be locked. Continue?",
+ "notifyPartial": "Partial success: {ok} ok, {fail} failed, {skip} skipped. Failed: {detail}",
+ "notifyAllFailed": "All failed ({fail} lines): {detail}",
+ "notifyBatchDone": "Notified and locked {ok} lines, skipped {skip}",
+ "notifyFailedTitle": "Notification failed; line not locked",
+ "entryHint": "Query orders, reply delivery, notify sales",
+ "notNotified": "Not notified",
+ "orderQtyLabel": "Order qty: {qty} {unit}",
+ "batchMissingDate": "Batch {batches}: delivery date missing",
+ "batchMissingQty": "Batch {batches}: quantity missing",
+ "qtyTotalMismatchLine": "Batch total {total} must equal order quantity {qty}",
+ "saveBlocked": "These lines are incomplete and cannot be saved: {detail}",
+ "batchDuplicateDate": "Different batches of the same order line cannot have the same delivery date (duplicates: {dates})"
}
}
diff --git a/frontend/src/locales/th/admin.json b/frontend/src/locales/th/admin.json
index 74c16744..26e65c57 100644
--- a/frontend/src/locales/th/admin.json
+++ b/frontend/src/locales/th/admin.json
@@ -47,7 +47,8 @@
"platformApps": "แอปแพลตฟอร์ม",
"procurementContract": "ตรวจสอบสัญญาจัดซื้อ",
"trainingConfig": "การกำหนดค่าการฝึกอบรม",
- "integrationConnector": "ตัวเชื่อมต่อระบบ"
+ "integrationConnector": "ตัวเชื่อมต่อระบบ",
+ "contractPayment": "合同付款预警"
},
"shippingOrderExtractionRuns": {
"eyebrow": "การวินิจฉัยการทำงานแบบอ่านอย่างเดียว",
@@ -1139,7 +1140,12 @@
"status": "สถานะ",
"enable": "เปิดใช้",
"disable": "ปิดใช้",
- "save": "บันทึก"
+ "save": "บันทึก",
+ "guideUsage": "资料用途",
+ "generalGuide": "通用指南",
+ "trainingVideo": "员工培训视频",
+ "trainingExamPdf": "员工培训试题 PDF",
+ "guideUsageHint": "培训工作区会优先读取“员工培训视频”和“员工培训试题 PDF”这两类资料。"
},
"dash": {
"activeAgents": "ตัวแทนที่ใช้งานอยู่",
@@ -1208,6 +1214,10 @@
"trainingLeanTeamManage": "จัดการการฝึกอบรม Lean ระดับทีม",
"contractPaymentAccess": "สิทธิ์แจ้งเตือนการชำระเงินตามสัญญา",
"contractPaymentAccessHint": "เมื่อเปิดแล้ว ผู้ใช้นี้จะเข้าโต๊ะทำงานแจ้งเตือนการชำระเงินตามสัญญา (บัญชีสัญญา รายการรอยืนยัน และชุดสรุปรายสัปดาห์) ได้ การซิงก์ OA สแกนแจ้งเตือน และส่งสรุปรายสัปดาห์ใช้ได้เฉพาะผู้ดูแลระบบ",
+ "orderDeliveryReplyManage": "จัดการการตอบกลับกำหนดส่ง",
+ "orderDeliveryReplyManageHint": "เปิดสิทธิ์บันทึกงวดการส่ง ส่ง/แจ้งเตือนหลายรายการ และซิงค์ ERP ด้วยตนเอง (ฝ่ายวางแผนการผลิต)",
+ "orderDeliveryReplyAccess": "ดูการตอบกลับกำหนดส่ง",
+ "orderDeliveryReplyAccessHint": "เปิดสิทธิ์ดูอย่างอ่านอย่างเดียวสำหรับคำสั่งซื้อที่ซิงค์แล้ว (เจ้าหน้าที่ธุรกิจ)",
"password": "รหัสผ่าน",
"passwordHint": "(เว้นว่างไว้หากไม่ต้องการเปลี่ยน)",
"noAgents": "ไม่มีตัวแทนที่ใช้ได้"
@@ -1241,11 +1251,13 @@
"name": "ชื่อ",
"code": "รหัส",
"company": "บริษัท",
- "actions": "การกระทำ"
+ "actions": "การกระทำ",
+ "members": "Members"
},
"actions": {
"edit": "แก้ไข",
- "delete": "ลบ"
+ "delete": "ลบ",
+ "viewMembers": "View department members"
},
"fields": {
"name": "ชื่อ",
@@ -1260,6 +1272,11 @@
"confirmDelete": "ลบแผนกนี้หรือไม่?",
"msg": {
"nameRequired": "กรุณากรอกชื่อแผนก"
+ },
+ "members": {
+ "title": "{name} Members",
+ "count": "{count} members",
+ "empty": "No members"
}
},
"agent": {
@@ -1792,12 +1809,13 @@
"firstLoginInputFields": "ฟิลด์ที่ใช้กรอกในครั้งแรก",
"employeeIdSource": "แหล่งที่มาของรหัสพนักงาน",
"mobileNormalize": "ปรับรูปแบบเบอร์โทรศัพท์",
- "callbackToken": "Callback Token",
+ "callbackToken": "โทเคนคอลแบ็ก",
"encodingAesKey": "EncodingAESKey",
- "callbackUrl": "Callback URL",
- "homepageUrl": "Application Homepage URL",
- "trustedDomain": "Trusted Domain",
- "publicBaseUrl": "Public HTTPS base"
+ "callbackUrl": "URL คอลแบ็ก",
+ "homepageUrl": "URL หน้าแรกแอป",
+ "trustedDomain": "โดเมนที่เชื่อถือ",
+ "publicBaseUrl": "Public HTTPS base",
+ "userId": "User ID (user_id)"
},
"bindModes": {
"match_rules": "จับคู่อัตโนมัติ",
@@ -1910,8 +1928,23 @@
"filterName": "กรองตามชื่อ/ชื่อผู้ใช้",
"filterDept": "กรองตามแผนก",
"allRoles": "ทุกบทบาท",
- "views": { "apps": "ตามแอปพลิเคชัน", "members": "ตามสมาชิก" },
- "appHeaders": { "app": "แอปพลิเคชัน", "type": "ประเภท", "authorized": "ผู้ได้รับอนุญาต", "actions": "การดำเนินการ", "viewMembers": "ดูสมาชิก", "accessHint": "เปิดสิทธิ์ของสมาชิก", "memberHint": "เพิ่มหรือลบสิทธิ์ของแอปนี้", "memberSearch": "ค้นหาชื่อ ชื่อผู้ใช้ รหัสพนักงาน หรือแผนก", "addMember": "มอบสิทธิ์", "removeMember": "ยกเลิกสิทธิ์", "noMembers": "ไม่พบสมาชิกที่ตรงกัน" },
+ "views": {
+ "apps": "ตามแอปพลิเคชัน",
+ "members": "ตามสมาชิก"
+ },
+ "appHeaders": {
+ "app": "แอปพลิเคชัน",
+ "type": "ประเภท",
+ "authorized": "ผู้ได้รับอนุญาต",
+ "actions": "การดำเนินการ",
+ "viewMembers": "ดูสมาชิก",
+ "accessHint": "เปิดสิทธิ์ของสมาชิก",
+ "memberHint": "เพิ่มหรือลบสิทธิ์ของแอปนี้",
+ "memberSearch": "ค้นหาชื่อ ชื่อผู้ใช้ รหัสพนักงาน หรือแผนก",
+ "addMember": "มอบสิทธิ์",
+ "removeMember": "ยกเลิกสิทธิ์",
+ "noMembers": "ไม่พบสมาชิกที่ตรงกัน"
+ },
"headers": {
"user": "ผู้ใช้",
"realName": "ชื่อจริง",
@@ -2148,7 +2181,7 @@
"tokens_completion": "โทเค็นผลลัพธ์",
"total_tokens": "โทเค็นรวม",
"latency_ms": "ความหน่วง (ms)",
- "latency": "ความหน่วง",
+ "latency": "เวลาแฝง (ms)",
"cost": "ค่าใช้จ่าย",
"ip": "IP",
"user_agent": "User Agent",
@@ -2164,13 +2197,15 @@
"reset_token_expiry": "เวลาหมดอายุโทเค็นรีเซ็ต",
"risk_status": "สถานะความเสี่ยง",
"risk_score": "คะแนนความเสี่ยง",
- "latency": "เวลาแฝง (ms)",
"is_empty_answer": "คำตอบว่าง",
"is_system_failure": "ระบบล้มเหลว",
"feedback_score": "คะแนน",
"feedback_comment": "หมายเหตุคะแนน",
"negative_feedback_count": "จำนวนข้อเสนอแนะเชิงลบ",
- "actions": "การทำงาน"
+ "actions": "การทำงาน",
+ "feedback_module": "Feedback Module",
+ "feedback_type": "Feedback Type",
+ "source_page": "Source Page"
},
"tables": {
"users": "ผู้ใช้",
@@ -2181,7 +2216,8 @@
"agents": "แอปปฏิบัติการ",
"ops_overview": "ภาพรวมการดำเนินงาน",
"issue_analysis": "การวิเคราะห์ปัญหา",
- "usage_analysis": "วิเคราะห์การใช้งาน"
+ "usage_analysis": "วิเคราะห์การใช้งาน",
+ "permission_requests": "คำขอสิทธิ์"
},
"usageIntro": "ดูแนวโน้มการเรียกใช้แอป AI ผู้ใช้ที่ใช้งาน แอปที่ใช้น้อย และช่วงพีคผิดปกติ",
"usageTotalSessions": "จำนวนแชทรวม",
@@ -2371,6 +2407,32 @@
"topApp": "แอปที่ควรปรับปรุง",
"topAppHint": "สัดส่วนสัญญาณที่ต้องให้ความสนใจ {ratio}%"
}
+ },
+ "usageRangeLabel": "ช่วงเวลา",
+ "usageRanges": {
+ "7d": "7 วันล่าสุด",
+ "30d": "30 วันล่าสุด",
+ "90d": "3 เดือนล่าสุด",
+ "180d": "6 เดือนล่าสุด",
+ "365d": "12 เดือนล่าสุด"
+ },
+ "feedbackValues": {
+ "types": {
+ "feature_suggestion": "Feature Suggestion",
+ "issue_feedback": "Issue Feedback",
+ "experience_optimization": "Experience Optimization"
+ },
+ "modules": {
+ "knowledge_base": "Knowledge Base",
+ "general": "General",
+ "workflow": "Workflow",
+ "account_permission": "Account & Permissions"
+ },
+ "pages": {
+ "workspace": "Workspace",
+ "chat": "Chat",
+ "unknown": "Unknown"
+ }
}
},
"batchEdit": {
@@ -2517,7 +2579,35 @@
"voucherCheckNotifyMissing": "แจ้งเตือนเมื่อขาดเอกสาร",
"voucherCheckNotifyMissingHint": "สวิตช์หลัก กำหนดผู้รับไฟล์ขาดในแชท 「ตรวจเอกสารบัญชี → ตั้งค่าการแจ้งเตือน」 ตามประเภทไฟล์ การเลือกคนด้านล่างใช้สำหรับแจ้งเตือนเมื่อล้มเหลวเท่านั้น",
"voucherCheckNotifyFailure": "แจ้งเตือนเมื่อล้มเหลว",
- "voucherCheckNotifyFailureHint": "เมื่อล้มเหลวทางเทคนิคจะส่งให้ผู้ที่เลือกด้านล่าง"
+ "voucherCheckNotifyFailureHint": "เมื่อล้มเหลวทางเทคนิคจะส่งให้ผู้ที่เลือกด้านล่าง",
+ "editTitle": "Edit schedule",
+ "createTitle": "Add schedule",
+ "name": "Schedule name",
+ "namePlaceholder": "e.g. RoHS auto review schedule",
+ "owner": "Schedule owner",
+ "noUsers": "No users available",
+ "selectOwner": "Select an owner",
+ "faqHotAggregate": "FAQ hot aggregate",
+ "querying": "Querying...",
+ "testQuery": "Test query",
+ "expandConfig": "Expand config",
+ "collapseConfig": "Collapse config",
+ "dataSourceSection": "Data source config",
+ "waitSeconds": "Wait time (seconds)",
+ "noAgents": "No agents available",
+ "agentDisabled": "Disabled",
+ "minuteInterval": "Minute interval",
+ "minuteOfHour": "Minute of hour",
+ "weekday": "Weekday",
+ "notifyEnabled": "Enable notifications",
+ "selectNotifyUsers": "Select notification recipients...",
+ "enableOnCreate": "Enable after creation",
+ "cancel": "Cancel",
+ "saving": "Saving...",
+ "saveChanges": "Save changes",
+ "createSchedule": "Create schedule",
+ "dynamicParamsSearchPlaceholder": "ค้นหาตัวเลือก (ชื่อ/รหัส/แผนก)…",
+ "dynamicParamsSearchNoMatch": "ไม่มีตัวเลือกที่ตรง"
},
"status": {
"all": "ทุกสถานะ",
@@ -2554,7 +2644,25 @@
"noKbGroupHint": "โปรดเปิดใช้การซิงค์คลังความรู้และเลือกกลุ่มในการแก้ไขตารางเวลาก่อน",
"kbSyncNoStatus": "มีการขอเขียนคลังความรู้แล้ว แต่ไม่ได้รับสถานะซิงค์ โปรดตรวจการตั้งค่าคลังความรู้หรือบันทึก backend",
"baseFetchSqlReadonly": "SQL ดึงข้อมูลพื้นฐาน (base_fetch_sql) — อ่านอย่างเดียว",
- "limitRows": "จำกัดจำนวนแถว (limit)"
+ "limitRows": "จำกัดจำนวนแถว (limit)",
+ "title": "Test run — {name}",
+ "subtitle": "Edit WHERE clause, limit rows, run quickly and inspect each step",
+ "close": "Close",
+ "running": "Running...",
+ "start": "Start test run",
+ "waitingHint": "Dify calls may take a while, please wait...",
+ "total": "Total",
+ "success": "Success",
+ "failed": "Failed",
+ "skipped": "Skipped",
+ "limitSummary": "Limit {limit} rows | Dify Agent ID: {agentId}",
+ "noAgent": "None",
+ "stepLogs": "Step logs",
+ "viewSql": "View execution SQL",
+ "errors": "Errors ({count})",
+ "queryResult": "Query result",
+ "resultSummary": "{total} total, showing {showing}",
+ "viewGeneratedSql": "View generated SQL"
},
"deleteDialogTitle": "ลบตารางเวลา",
"excelExportFailedHint": "แหล่งสต็อกสำเร็จแล้ว แต่การส่งออก Excel ของตารางเวลาล้มเหลว",
@@ -2572,8 +2680,19 @@
"receiptRawZip": "ใบรับดิบ",
"columns": {
"skippedCount": "ข้าม",
- "skippedCountReceipt": "ไม่มีใบรับ/ข้าม",
- "skippedCountInventory": "ไม่มีสต็อก/ข้าม"
+"runNo": "Run ID",
+"startedAt": "Started at",
+"finishedAt": "Finished at",
+"status": "Status",
+"totalCount": "Processed",
+"successCount": "Success",
+"failedCount": "Failed",
+"excelExportFailedHint": "Inventory sources succeeded, but schedule Excel export failed",
+"wecomNotified": "WeCom notify",
+"detail": "Detail",
+"log": "Log",
+"skippedCountReceipt": "ไม่มีใบรับ/ข้าม",
+"skippedCountInventory": "ไม่มีสต็อก/ข้าม"
},
"deleteConfirmMessage": "ยืนยันการลบตารางเวลา \"{name}\"?",
"msg": {
@@ -2587,8 +2706,9 @@
"runNowWaitTimeout": "รอการรันเสร็จสิ้นเกินเวลาที่กำหนด (ประมาณ 15 นาที) หยุดรีเฟรชอัตโนมัติแล้ว โปรดค้นหาบันทึกด้วยตนเอง",
"downloadExcelFailed": "ดาวน์โหลด Excel ล้มเหลว",
"downloadInventoryRawZipFailed": "ดาวน์โหลด ZIP สต็อกดิบล้มเหลว",
- "downloadReceiptRawZipFailed": "ดาวน์โหลด ZIP ใบรับดิบล้มเหลว",
- "deleteFailed": "ลบตารางเวลาล้มเหลว"
+"deleteFailed": "ลบตารางเวลาล้มเหลว",
+"testQueryFailed": "Test query failed",
+"downloadReceiptRawZipFailed": "ดาวน์โหลด ZIP ใบรับดิบล้มเหลว"
},
"difySnapshot": {
"title": "สแนปช็อตการทำงาน Dify (ตรวจสอบ)",
@@ -2600,6 +2720,65 @@
"notConfiguredUseDefault": "(ยังไม่ได้ตั้งค่า ใช้ prompt เริ่มต้นใน Dify workflow)",
"notEnabledTest": "การทดสอบนี้ไม่ได้เปิดใช้ Dify",
"notEnabledRun": "การรันนี้ไม่ได้เปิดใช้ Dify Agent"
+ },
+ "overviewTitle": "Schedule Management Overview",
+ "workbenchTitle": "Schedule Management Workbench",
+ "overviewSubtitle": "Click a schedule card to open the workbench.",
+ "workbenchSubtitle": "Schedule list on the left, run records on the right.",
+ "refresh": "Refresh schedules",
+ "stats": {
+ "total": "Total schedules",
+ "enabled": "Enabled",
+ "disabled": "Disabled",
+ "running": "Running"
+ },
+ "sectionOverview": "Schedule Management Overview",
+ "switchByCard": "Switch by card",
+ "addTitle": "Add schedule",
+ "addHint": "Click the button to fill in schedule fields in a dialog.",
+ "addButton": "Add schedule",
+ "emptyList": "No schedules yet. Create one first.",
+ "loading": "Loading...",
+ "enabled": "Enabled",
+ "disabled": "Disabled",
+ "scheduleNo": "No.",
+ "config": "Config",
+ "owner": "Owner",
+ "lastRun": "Last run",
+ "nextRun": "Next run",
+ "nextRunDisabled": "Disabled",
+ "nextRunPending": "Not computed (save or restart schedule)",
+ "noSelection": "No schedule selected",
+ "selectedHint": "Selected schedule · Last run {time}",
+ "runBatches": "Run batches",
+ "totalProcessed": "Total processed",
+ "totalSuccess": "Total success",
+ "totalFailed": "Total failed",
+ "listTitle": "Schedule list",
+ "recordsTitle": "{name} · Run records",
+ "recordsSubtitle": "Run record details are shown below.",
+ "noSelectionHint": "Select a schedule from the list on the left first.",
+ "filterStart": "Start",
+ "filterEnd": "End",
+ "query": "Search",
+ "reset": "Reset",
+ "queryingRuns": "Loading records...",
+ "noRunRecords": "No run records yet.",
+ "runLogs": "Run logs",
+ "stepsCount": "{count} steps",
+ "viewDetail": "View details",
+ "resizeColumn": "Drag to resize {label} column",
+ "notified": "Notified",
+ "notifyError": "Error",
+ "download": "Download",
+ "log": "Log",
+ "actions": {
+ "edit": "Edit",
+ "start": "Start",
+ "pause": "Pause",
+ "run": "Run",
+ "test": "Test",
+ "delete": "Delete"
}
},
"shippingIdentityRules": {
@@ -4246,7 +4425,8 @@
"rejected": "ปฏิเสธแล้ว",
"needs_review": "ต้องตรวจ"
},
- "confirmRequiresNativePreview": "โหลดตัวอย่าง PDF ดั้งเดิมก่อนยืนยันการผูกภาพ"
+ "confirmRequiresNativePreview": "โหลดตัวอย่าง PDF ดั้งเดิมก่อนยืนยันการผูกภาพ",
+ "createBlockersTitle": "创建前阻断项"
},
"xfaAutoMark": {
"title": "คำแนะนำทำเครื่องหมายอัตโนมัติ",
@@ -5288,7 +5468,17 @@
"trainingAgentRequired": "ไม่พบ Agent การฝึกอบรมพนักงาน จึงไม่สามารถสร้างทรัพยากรวิดีโอได้",
"videoUploaded": "อัปโหลดวิดีโอการฝึกอบรมและเพิ่มในทรัพยากรการกำหนดค่าแล้ว",
"videoUploadFailed": "อัปโหลดวิดีโอการฝึกอบรมไม่สำเร็จ"
- }
+ },
+ "eyebrow": "培训运营中心",
+ "pageHint": "配置变更将在保存后生效",
+ "footerHint": "所有配置项均支持保存后继续调整",
+ "stats": {
+ "total": "配置总数",
+ "published": "已发布",
+ "resources": "当前资料",
+ "levels": "已配置级别"
+ },
+ "questionBankTitle": "入职培训题库"
},
"integrationConnector": {
"title": "ตัวเชื่อมต่อระบบ",
diff --git a/frontend/src/locales/th/auth.json b/frontend/src/locales/th/auth.json
index 7b05cc91..efa343ba 100644
--- a/frontend/src/locales/th/auth.json
+++ b/frontend/src/locales/th/auth.json
@@ -129,7 +129,17 @@
"notInScopeAction": "ให้ผู้ดูแลเพิ่มสมาชิกคนนี้หรือแผนกของสมาชิกเข้าไปในขอบเขตการมองเห็นของแอป WeCom",
"retryLogin": "เริ่มต้นการเข้าสู่ระบบ WeCom ใหม่อีกครั้ง",
"contactAdmin": "กรุณาติดต่อผู้ดูแลระบบเพื่อขอความช่วยเหลือ"
- }
+ },
+ "newPassword": "New Password",
+ "passwordResetSuccess": "Password reset successfully. Please login.",
+ "featuredAgents": "Featured AI Agents",
+ "pleaseLoginFirst": "Please login to access this agent.",
+ "userNotFound": "User not found",
+ "incorrectPassword": "Incorrect password",
+ "accountDisabled": "Account is disabled",
+ "dbConnectionFailed": "Database connection failed. Please check if the database service is running.",
+ "internalError": "Internal server error. Please try again later.",
+ "passwordResetEmailSent": "If the account exists, a reset link has been sent to your email."
},
"landing": {
"hero": {
@@ -156,7 +166,8 @@
"realName": "ชื่อจริง",
"employeeId": "รหัสพนักงาน",
"phone": "หมายเลขโทรศัพท์"
- }
+ },
+ "emailRequired": "Email is required"
},
"resetPassword": {
"title": "รีเซ็ตรหัสผ่าน",
diff --git a/frontend/src/locales/th/chat.json b/frontend/src/locales/th/chat.json
index ea6e0c45..2996c1e7 100644
--- a/frontend/src/locales/th/chat.json
+++ b/frontend/src/locales/th/chat.json
@@ -1188,7 +1188,11 @@
"departmentLabel": "แผนก",
"allStatuses": "ทุกสถานะ",
"allDepartments": "ทุกแผนก",
- "noLimit": "ไม่จำกัด"
+ "noLimit": "ไม่จำกัด",
+ "typeLabel": "培训类型",
+ "allTypes": "全部培训",
+ "typeOnboarding": "入职培训",
+ "typeSafety": "安全培训"
},
"columns": {
"joinDate": "วันที่เริ่มงาน",
@@ -1543,6 +1547,75 @@
"พนักงานคนไหนยังไม่จบการอบรม?",
"อยากดูสถิติคะแนนอบรมเดือนนี้"
]
+ },
+ "safety": {
+ "tabs": {
+ "onboarding": "入职培训",
+ "safety": "安全培训"
+ },
+ "progressTitle": "三级安全教育培训进度",
+ "progressHint": "按国家安全生产法要求,新员工须依次完成公司级、部门级、班组级三级安全教育。学完三级的全部资料/视频后,进入1次统一考试,≥90分及格方可结业。",
+ "steps": {
+ "company": "01 · 公司级",
+ "department": "02 · 部门级",
+ "team": "03 · 班组级",
+ "exam": "04 · 统一考试"
+ },
+ "stepStatus": {
+ "watchVideo": "观看视频",
+ "examReq": "≥90 分及格",
+ "completed": "已完成",
+ "inProgress": "进行中",
+ "pending": "待学习",
+ "examPending": "需先学完三级"
+ },
+ "videoPanelTitle": "{level} 第{step}步",
+ "videoPanelSubtitle": "观看安全教育培训视频",
+ "videoPanelPassLine": "及格线:≥ 90分方可进入考试",
+ "videoTitle": "部门安全生产管理制度宣导",
+ "videoDuration": "时长 35 分钟 · 已完成 12%",
+ "materialsTitle": "培训资料清单 (共 3 个文件/视频)",
+ "materials": {
+ "m1": "部门安全生产管理制度宣导.mp4",
+ "m2": "危险化学品安全操作规程.pdf",
+ "m3": "消防应急疏散演练视频.mp4"
+ },
+ "flowTitle": "学习与考试流程",
+ "flowSteps": {
+ "company": "公司级安全教育",
+ "department": "部门级安全教育",
+ "team": "班组级安全教育",
+ "exam": "统一考试 ≥90分"
+ },
+ "summaryTitle": "培训总结",
+ "summaryContent": {
+ "company": [
+ "1公司教育:国家有关安全生产方针、政策、法律、法规和有关规定。",
+ "2公司安全生产特点、有关安全管理标准和制度、安全生产情况及安全生产基本知识。",
+ "3企业安全生产规章制度、安全纪律和劳动纪律。",
+ "4安全生产和职业卫生的基本知识(防机械伤害、安全用电、防火防爆、防尘防毒、急救、危险因素、应急预案等)。",
+ "5作业场所和工作岗位存在的危险因素、防范措施及事故应急措施;",
+ "6安全生产正反方面的经验和教训,及重大事故安全案例教训。",
+ "7从业人员安全生产权利和义务;"
+ ],
+ "department": [
+ "1部门概况、生产或作业特点、可能存在的不安全因素及必须遵守的事项。",
+ "2公司、部门安全生产状况、管理制度规定和安全注意事项。",
+ "3所从事工种的安全技术操作规程、安全职责、操作技能及强制性标准。",
+ "4一般的机械设备、电气、触电、中暑、中毒急救安全基础知识",
+ "5作业场所和工作岗位存在的风险、部门危险因素分布、安全通道、职业危害、伤亡事故、应急救缓预案内容。防火、防毒、防尘、防爆知识及紧急情况安全处置、自救互救、急救方法、疏散和现场紧急情况的处理。",
+ "6部门安全设施(工具)、安全警示标志、急救器材、消防器材和个人防护用品的性能、使用方法和维护。",
+ "7部门以往发生的典型安全和职业危害事故教育、岗位预防措施等。",
+ "8有关事故案例。"
+ ],
+ "team": [
+ "1本班组(岗位)生产工艺流程、作业特点和注意事项、安全操作规程及细则。",
+ "2本班组安全活动制度及纪律、岗位之间工作衔接配合的安全与职业卫生事项。",
+ "3本班组(岗位)设备、工具的性能和安全装置、安全设施、监控仪器的作用原理、正确使用方法、防护用品及消防器材的使用和保管方法等。",
+ "4危害因素及防范、应急措施,本岗位易发生事故的不安全因素及其防范对策,本工种事故案例剖析。",
+ "5本岗位发现紧急情况应采取的应救措施和报告办法。"
+ ]
+ }
}
},
"shippingOrderReview": {
@@ -2679,7 +2752,8 @@
"inventory_source_unresolved": "ยังไม่ระบุแหล่งสต็อก",
"effective_reservation_missing": "ไม่มีหมายเลขการจองที่ถูกต้อง",
"unknown": "ระบบพบรายการที่ต้องยืนยันด้วยตนเอง"
- }
+ },
+ "autoCreateBlocked": "人工建单资格已通过,但自动建单资格未通过;确认后将由人工推进。"
},
"inventoryCandidates": {
"title": "เลือกแหล่งสต็อกด้วยตนเอง",
diff --git a/frontend/src/locales/th/errors.json b/frontend/src/locales/th/errors.json
index d2bf2b40..a8db3b22 100644
--- a/frontend/src/locales/th/errors.json
+++ b/frontend/src/locales/th/errors.json
@@ -1,6 +1,21 @@
{
"generic": "คำขอล้มเหลว",
"codes": {
+ "ORDER_DELIVERY_REPLY.FORBIDDEN": "คุณไม่มีสิทธิ์ดูการตอบกลับกำหนดส่งคำสั่งซื้อ โปรดติดต่อผู้ดูแลระบบ",
+ "ORDER_DELIVERY_REPLY.LINE_NOT_FOUND": "ไม่พบรายการคำสั่งซื้อ หรือไม่อยู่ในขอบเขตการซิงค์แล้ว",
+ "ORDER_DELIVERY_REPLY.ADMIN_REQUIRED": "เฉพาะผู้ดูแลระบบเท่านั้นที่ออกสิทธิ์ตามแผนกได้",
+ "ORDER_DELIVERY_REPLY.GRANT_DEPARTMENT_REQUIRED": "โปรดระบุแผนกที่จะออกสิทธิ์",
+ "ORDER_DELIVERY_REPLY.GRANT_PERMISSION_INVALID": "ประเภทสิทธิ์ต้องเป็น manage หรือ access",
+ "ORDER_DELIVERY_REPLY.BATCH_REPLY_EMPTY": "การตอบกลับหลายรายการต้องมีอย่างน้อยหนึ่งรายการ และไม่เกิน 200 รายการต่อครั้ง",
+ "ORDER_DELIVERY_REPLY.NOTIFY_BATCH_EMPTY": "การแจ้งเตือนหลายรายการต้องมีอย่างน้อยหนึ่งรายการ และไม่เกิน 200 รายการต่อครั้ง",
+ "ORDER_DELIVERY_REPLY.SALESPERSON_UNMAPPED": "พนักงานขายไม่ได้เชื่อมโยงบัญชีระบบหรือยังไม่ได้ผูก WeCom จึงส่งแจ้งเตือนไม่ได้",
+ "ORDER_DELIVERY_REPLY.NOTIFY_FAILED": "ส่งแจ้งเตือน WeCom ไม่สำเร็จ รายการยังไม่ถูกล็อก โปรดลองอีกครั้ง",
+ "ORDER_DELIVERY_REPLY.LINE_LOCKED": "กำหนดส่งของรายการนี้ถูกล็อกหลังแจ้งแล้ว ไม่สามารถแก้ไขได้",
+ "ORDER_DELIVERY_REPLY.MANAGE_FORBIDDEN": "คุณไม่มีสิทธิ์ดำเนินการตอบกลับกำหนดส่งคำสั่งซื้อ",
+ "ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "กรุณาระบุอย่างน้อยหนึ่งงวดการส่งมอบ",
+ "ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "จำนวนงวดเกินขีดจำกัดของรายการเดียว",
+ "ORDER_DELIVERY_REPLY.BATCH_INVALID": "รูปแบบงวดไม่ถูกต้อง โปรดตรวจสอบวันที่ จำนวน หรือหมายเหตุ",
+ "ORDER_DELIVERY_REPLY.BATCH_QTY_TOTAL_MISMATCH": "ผลรวมจำนวนทุกงวดต้องเท่ากับจำนวนของคำสั่งซื้อ โปรดปรับแล้วบันทึกอีกครั้ง",
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "ODM ID ที่เลือกไม่อยู่ในตัวเลือกที่ทำได้ โปรดเลือกใหม่",
"SHIPPING.FULFILLMENT_POLICY_INVALID": "นโยบายการปฏิบัติตามหรือการผูกความสามารถของฟิลด์ไม่ถูกต้อง",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "ไม่พบนโยบายการปฏิบัติตาม",
diff --git a/frontend/src/locales/th/workspace.json b/frontend/src/locales/th/workspace.json
index 8bae2250..2360cfc4 100644
--- a/frontend/src/locales/th/workspace.json
+++ b/frontend/src/locales/th/workspace.json
@@ -104,7 +104,8 @@
"contractPayment": "การแจ้งเตือนการชำระเงินตามสัญญา",
"contractPaymentLedger": "ทะเบียนสัญญา",
"contractPaymentReview": "สัญญาที่รอยืนยัน",
- "contractPaymentWeeklyBatches": "ชุดสรุปรายสัปดาห์"
+ "contractPaymentWeeklyBatches": "ชุดสรุปรายสัปดาห์",
+ "orderDeliveryReply": "ตอบกลับกำหนดส่งคำสั่งซื้อ"
},
"receiptReports": {
"title": "ไฟล์รับสินค้า",
@@ -904,5 +905,178 @@
"notifyExcel": "Excel",
"downloadExcel": "ดาวน์โหลด Excel",
"downloadExcelFailed": "ดาวน์โหลด Excel ไม่สำเร็จ"
+ },
+ "orderDeliveryReply": {
+ "deepLinkLocated": "พบบรรทัดคำสั่งขายจากการแจ้งเตือนแล้ว: {order}:{item}",
+ "search": "ค้นหา",
+ "reset": "ล้าง",
+ "saving": "กำลังบันทึก…",
+ "syncNow": "รีเฟรชตอนนี้",
+ "syncing": "กำลังซิงค์…",
+ "syncNever": "ยังไม่เคยซิงค์",
+ "syncAt": "ซิงค์ล่าสุด: {time}",
+ "syncRunning": "กำลังซิงค์…",
+ "syncFailedAt": "ซิงค์ล่าสุดล้มเหลว ({time}) รายการเป็นภาพรวมครั้งล่าสุดที่สำเร็จ",
+ "syncDone": "ซิงค์สำเร็จ รวม {count} รายการ",
+ "syncSkipped": "มีการซิงค์กำลังทำงานอยู่ โปรดลองอีกครั้งภายหลัง",
+ "syncFailedTitle": "ซิงค์ล้มเหลว ยังคงภาพรวมเดิมไว้",
+ "filterKeyword": "คำค้นหา (คำสั่งซื้อ / ผลิตภัณฑ์ / ลูกค้า / พนักงานขาย / ผู้ตอบกำหนดส่ง)",
+ "filterKeywordPh": "ค้นหาด้วยเลขที่คำสั่งซื้อ รหัสสินค้า ชื่อสินค้า รหัสสินค้าลูกค้า ลูกค้า พนักงานขาย หรือผู้ตอบกำหนดส่งได้",
+ "filterOrderDate": "วันที่สั่งซื้อ",
+ "filterStatus": "สถานะการตอบกลับ",
+ "statusAll": "ทั้งหมด",
+ "statusReplied": "ตอบกลับแล้ว",
+ "statusNotFully": "ยังตอบไม่ครบ",
+ "statusNotReplied": "ยังไม่ตอบกลับ",
+ "statusPartial": "ตอบบางส่วน",
+ "totalCount": "รวม {count} รายการสินค้า",
+ "selectAll": "เลือกทั้งหมด (หน้านี้)",
+ "selectedCount": "เลือกแล้ว {count} รายการ",
+ "batchReply": "+ ตอบกลับหลายรายการ",
+ "batchNotify": "แจ้งเตือนหลายรายการ",
+ "toolbarHint": "การตอบกลับหลายรายการเป็นเพียงบันทึก ต้องกดแจ้งเตือนจึงจะส่งและล็อก",
+ "colOrderLine": "เลขที่ : รายการ",
+ "colOrderDate": "วันที่สั่งซื้อ",
+ "colCustomer": "ลูกค้า",
+ "colSalesperson": "พนักงานขาย",
+ "colDept": "แผนก",
+ "colCustomerPo": "PO ลูกค้า",
+ "colPartNo": "รหัสสินค้า",
+ "colPartName": "ชื่อสินค้า",
+ "colSpec": "สเปก",
+ "colCustomerPartNo": "รหัสสินค้าลูกค้า",
+ "colAgreedDate": "กำหนดส่งตามข้อตกลง",
+ "colUnit": "หน่วย",
+ "colQty": "จำนวน",
+ "colDelivered": "ส่งแล้ว",
+ "colUndelivered": "ยังไม่ส่ง",
+ "colStatus": "สถานะตอบกลับ",
+ "colReply": "การตอบกลับกำหนดส่ง",
+ "colNotify": "แจ้งเตือน",
+ "colReplyPerson": "ผู้ตอบกลับ",
+ "batchCount": "{count} งวด",
+ "repliedOf": "ตอบแล้ว {replied}/{remain}",
+ "overTag": "เกิน",
+ "collapse": "ย่อ ▲",
+ "expand": "+{count} งวด ▾",
+ "lockedTag": "ล็อกแล้ว",
+ "replyAction": "ตอบกลับ",
+ "editReplyAction": "แก้ไขการตอบกลับ",
+ "notifiedTag": "แจ้งแล้ว {name}",
+ "replyFirst": "กรุณาตอบกลับก่อน",
+ "notifyAction": "ส่งการแจ้งเตือน",
+ "pendingNotify": "บันทึกหลังแจ้งเตือน",
+ "empty": "ไม่พบรายการที่ตรงเงื่อนไข",
+ "pageInfo": "หน้า {page} / {pages}",
+ "modalTitleSingle": "ตอบกลับ · {order} / รายการ {item}",
+ "modalTitleBatch": "ตอบกลับหลายรายการ ({count} รายการ)",
+ "quickDate": "วันที่รวมด่วน",
+ "applyQuickDate": "ใช้กับทั้งหมด",
+ "modalHint": "กรอกวันที่เดียว หรือแยกเป็นหลายงวด (วันที่+จำนวน) ได้ โดยผลรวมจำนวนทุกงวดต้องเท่ากับจำนวนของคำสั่งซื้อ",
+ "itemLabel": "รายการ {item}",
+ "qtyPh": "จำนวน",
+ "remarkPh": "หมายเหตุ (ไม่บังคับ)",
+ "removeBatch": "ลบงวดนี้",
+ "addBatch": "+ เพิ่มงวด (วันที่ + จำนวน + หมายเหตุ)",
+ "saveReply": "บันทึกการตอบกลับ",
+ "noValidBatches": "กรุณากรอกวันที่และจำนวนอย่างน้อยหนึ่งรายการ",
+ "saveSingleDone": "บันทึกงวดแล้ว (ยังไม่แจ้งเตือน แก้ไขได้)",
+ "saveBatchDone": "บันทึก {ok} รายการแล้ว (ยังไม่แจ้งเตือน)",
+ "saveBatchPartial": "บันทึกแล้ว: สำเร็จ {ok} ล้มเหลว {fail}: {detail}",
+ "saveFailedTitle": "บันทึกไม่สำเร็จ",
+ "loadFailed": "โหลดรายการไม่สำเร็จ",
+ "notifyConfirm": "ยืนยันส่งถึงพนักงานขาย \"{salesperson}\"?\nคุณมีคำสั่งซื้อ {order}:{item} ที่ต้องกรอก/ยืนยัน/ตรวจสอบกำหนดส่ง\nหลังส่งแล้วกำหนดส่งจะถูกล็อก",
+ "notifyDone": "แจ้งเตือนและล็อกแล้ว: {order}:{item}",
+ "notifyBatchConfirm": "จะส่งแจ้งเตือน {count} รายการ รายการที่ส่งสำเร็จจะถูกล็อก ดำเนินการต่อ?",
+ "notifyPartial": "สำเร็จบางส่วน: สำเร็จ {ok} ล้มเหลว {fail} ข้าม {skip} รายการ ที่ล้มเหลว: {detail}",
+ "notifyAllFailed": "ล้มเหลวทั้งหมด ({fail} รายการ): {detail}",
+ "notifyBatchDone": "แจ้งเตือนและล็อก {ok} รายการ ข้าม {skip} รายการ",
+ "notifyFailedTitle": "ส่งแจ้งเตือนไม่สำเร็จ รายการยังไม่ถูกล็อก",
+ "entryHint": "ค้นคำสั่งซื้อ ตอบกำหนดส่ง แจ้งพนักงานขาย",
+ "notNotified": "ยังไม่แจ้ง",
+ "orderQtyLabel": "จำนวนคำสั่งซื้อ: {qty} {unit}",
+ "batchMissingDate": "งวดที่ {batches}: ยังไม่ได้กรอกวันที่",
+ "batchMissingQty": "งวดที่ {batches}: ยังไม่ได้กรอกจำนวน",
+ "qtyTotalMismatchLine": "ผลรวมทุกงวด {total} ต้องเท่ากับจำนวนคำสั่งซื้อ {qty}",
+ "saveBlocked": "รายการต่อไปนี้กรอกไม่ครบถ้วน จึงบันทึกไม่ได้: {detail}",
+ "batchDuplicateDate": "งวดต่างๆ ของคำสั่งซื้อ:รายการเดียวกันต้องไม่มีวันที่กำหนดส่งเดียวกัน (ซ้ำ: {dates})"
+ },
+ "lang": {
+ "zhCN": "Simplified Chinese",
+ "zhTW": "Traditional Chinese"
+ },
+ "schedule": {
+ "title": "Schedule Runs",
+ "refresh": "Refresh",
+ "batch": {
+ "selectAll": "Select all notices on this page",
+ "selected": "{count} selected",
+ "download": "Download Excel",
+ "confirm": "Confirm uploaded",
+ "rpa": "Start RPA upload",
+ "downloadStarted": "Downloading the selected shipping-notice Excel files.",
+ "success": "{action}: {count} notice(s) processed.",
+ "partialResult": "{action}: {accepted} accepted and {blocked} blocked. Refresh to see the latest notice status.",
+ "lines": "Lines",
+ "parts": "Parts",
+ "quantities": "Shipment / available",
+ "uploadStatus": "Freight status"
+ },
+ "uploadNotices": "Upload shipping notices",
+ "search": "Search",
+ "reset": "Reset",
+ "loading": "Loading...",
+ "empty": "No schedule runs",
+ "download": "Download",
+ "noPendingData": "No pending data",
+ "filters": {
+ "name": "Schedule Name",
+ "namePlaceholder": "Enter schedule name",
+ "start": "Start Time",
+ "end": "End Time",
+ "status": "Status"
+ },
+ "columns": {
+ "name": "Schedule Name",
+ "runNo": "Run No.",
+ "triggerType": "Trigger",
+ "start": "Start Time",
+ "end": "End Time",
+ "duration": "Duration",
+ "status": "Status",
+ "total": "Total",
+ "success": "Success",
+ "failed": "Failed",
+ "detail": "Detail"
+ },
+ "trigger": {
+ "manual": "Manual",
+ "test": "Test",
+ "timed": "Scheduled"
+ },
+ "status": {
+ "all": "All",
+ "success": "Success",
+ "partialFailed": "Partial Success",
+ "failed": "Failed",
+ "running": "Running",
+ "queued": "Queued"
+ },
+ "msg": {
+ "downloadExcelFailed": "Failed to download Excel"
+ }
+ },
+ "profile": {
+ "msg": {
+ "loadFailed": "Failed to load profile",
+ "saveFailed": "Failed to save profile",
+ "saved": "Profile saved",
+ "changePasswordFailed": "Failed to change password"
+ }
+ },
+ "msg": {
+ "casdoorNotMatchedContactAdmin": "Casdoor login succeeded, but no local account matched. Please contact the administrator.",
+ "casdoorNotMatchedNeedLocalUser": "Casdoor login succeeded, but no local account matched. Ask the administrator to create a local user with the same username or email.",
+ "localAccountDisabled": "This local account is disabled. Please contact the administrator."
}
}
diff --git a/frontend/src/locales/zh-CN/admin.json b/frontend/src/locales/zh-CN/admin.json
index 431c6034..c953ffba 100644
--- a/frontend/src/locales/zh-CN/admin.json
+++ b/frontend/src/locales/zh-CN/admin.json
@@ -1342,6 +1342,10 @@
"trainingLeanTeamManage": "精益培训班组管理",
"contractPaymentAccess": "合同付款预警访问",
"contractPaymentAccessHint": "勾选后可进入工作台合同付款预警(台账、待确认、周汇总)。同步 OA、扫描预警和发送预警仅管理员可用。",
+ "orderDeliveryReplyManage": "订单交期回复操作",
+ "orderDeliveryReplyManageHint": "勾选后可回复交期批次、发送/批量通知业务员并手动同步 ERP 订单(生管)。",
+ "orderDeliveryReplyAccess": "订单交期回复查看",
+ "orderDeliveryReplyAccessHint": "勾选后可只读查看已同步订单与回复结果(业务人员);回复与通知需另勾「操作」权限。",
"password": "密码",
"passwordHint": "(留空表示不修改)",
"noAgents": "暂无可用应用"
@@ -1383,7 +1387,11 @@
"delete": "删除",
"viewMembers": "查看部门员工"
},
- "members": { "title": "{name}员工", "count": "共 {count} 人", "empty": "暂无员工" },
+ "members": {
+ "title": "{name}员工",
+ "count": "共 {count} 人",
+ "empty": "暂无员工"
+ },
"fields": {
"name": "名称",
"namePlaceholder": "例如:信息技术部",
@@ -1929,7 +1937,13 @@
"firstLoginInputFields": "首次登录可输入字段",
"employeeIdSource": "工号来源字段",
"mobileNormalize": "手机号归一化",
- "publicBaseUrl": "外网 HTTPS 基地址"
+ "publicBaseUrl": "外网 HTTPS 基地址",
+ "callbackToken": "回调Token",
+ "encodingAesKey": "EncodingAESKey",
+ "callbackUrl": "回调URL",
+ "homepageUrl": "应用主页URL",
+ "trustedDomain": "可信域名",
+ "userId": "用户 ID(user_id)"
},
"bindModes": {
"match_rules": "按规则自动匹配",
@@ -2042,8 +2056,23 @@
"filterName": "筛选 姓名/用户名",
"filterDept": "筛选 部门",
"allRoles": "所有角色",
- "views": { "apps": "按应用查看", "members": "按成员查看" },
- "appHeaders": { "app": "应用", "type": "类型", "authorized": "已授权人数", "actions": "操作", "viewMembers": "查看成员", "accessHint": "点击查看成员权限", "memberHint": "可添加或取消此应用的访问权限", "memberSearch": "搜索姓名、用户名、工号或部门", "addMember": "添加权限", "removeMember": "取消权限", "noMembers": "没有匹配的人员" },
+ "views": {
+ "apps": "按应用查看",
+ "members": "按成员查看"
+ },
+ "appHeaders": {
+ "app": "应用",
+ "type": "类型",
+ "authorized": "已授权人数",
+ "actions": "操作",
+ "viewMembers": "查看成员",
+ "accessHint": "点击查看成员权限",
+ "memberHint": "可添加或取消此应用的访问权限",
+ "memberSearch": "搜索姓名、用户名、工号或部门",
+ "addMember": "添加权限",
+ "removeMember": "取消权限",
+ "noMembers": "没有匹配的人员"
+ },
"headers": {
"user": "用户",
"realName": "真实姓名",
@@ -2280,7 +2309,7 @@
"tokens_completion": "补全 Token",
"total_tokens": "总 Token",
"latency_ms": "延迟(毫秒)",
- "latency": "延迟",
+ "latency": "耗时(毫秒)",
"cost": "费用",
"ip": "IP",
"user_agent": "用户代理",
@@ -2296,13 +2325,15 @@
"reset_token_expiry": "重置令牌过期时间",
"risk_status": "风险状态",
"risk_score": "风险分",
- "latency": "耗时(毫秒)",
"is_empty_answer": "空回答",
"is_system_failure": "系统失败",
"feedback_score": "评分",
"feedback_comment": "评分备注",
"negative_feedback_count": "负面反馈数",
- "actions": "操作"
+ "actions": "操作",
+ "feedback_module": "反馈模块",
+ "feedback_type": "反馈类型",
+ "source_page": "来源页面"
},
"tables": {
"users": "用户",
@@ -2313,7 +2344,8 @@
"agents": "应用运营",
"ops_overview": "运营总览",
"issue_analysis": "问题分析",
- "usage_analysis": "使用分析"
+ "usage_analysis": "使用分析",
+ "permission_requests": "权限申请"
},
"usageIntro": "查看 AI 应用调用趋势、活跃用户、低使用应用与异常高峰。",
"usageTotalSessions": "对话总量",
@@ -2503,6 +2535,32 @@
"topApp": "优先优化应用",
"topAppHint": "需要关注信号占比 {ratio}%"
}
+ },
+ "usageRangeLabel": "统计范围",
+ "usageRanges": {
+ "7d": "近一周",
+ "30d": "近一月",
+ "90d": "近三月",
+ "180d": "近半年",
+ "365d": "近一年"
+ },
+ "feedbackValues": {
+ "types": {
+ "feature_suggestion": "功能建议",
+ "issue_feedback": "问题反馈",
+ "experience_optimization": "体验优化"
+ },
+ "modules": {
+ "knowledge_base": "知识库",
+ "general": "通用",
+ "workflow": "工作流",
+ "account_permission": "账号与权限"
+ },
+ "pages": {
+ "workspace": "工作台",
+ "chat": "聊天",
+ "unknown": "未知"
+ }
}
},
"batchEdit": {
@@ -2762,7 +2820,9 @@
"voucherCheckNotifyMissing": "缺资料通知",
"voucherCheckNotifyMissingHint": "总开关。缺件接收人请到 Chat「立账凭证 → 通知配置」按文件类型设置;排程选人只用于技术失败告警。",
"voucherCheckNotifyFailure": "失败告警",
- "voucherCheckNotifyFailureHint": "技术失败发给下方「选择通知人员」。"
+ "voucherCheckNotifyFailureHint": "技术失败发给下方「选择通知人员」。",
+ "dynamicParamsSearchPlaceholder": "搜索选项(姓名/工号/部门)…",
+ "dynamicParamsSearchNoMatch": "没有匹配的选项"
},
"testRun": {
"title": "测试执行 — {name}",
@@ -2846,7 +2906,8 @@
"notConfiguredUseDefault": "(未配置,使用 Dify 编排内默认提示词)",
"notEnabledTest": "本次测试未启用 Dify",
"notEnabledRun": "本次执行未启用 Dify Agent"
- }
+ },
+ "excelExportFailedHint": "库存来源已成功,但排程 Excel 生成失败"
},
"shippingIdentityRules": {
"eyebrow": "货代客户治理",
diff --git a/frontend/src/locales/zh-CN/auth.json b/frontend/src/locales/zh-CN/auth.json
index 80602878..c4e28d7c 100644
--- a/frontend/src/locales/zh-CN/auth.json
+++ b/frontend/src/locales/zh-CN/auth.json
@@ -1,188 +1,189 @@
{
- "title": "企业级 AI 网关",
- "login": {
- "username": "用户名",
- "password": "密码",
- "submit": "登录",
- "registerLink": "点击注册",
- "noAccount": "没有账号?",
- "subtitle": "欢迎回来!请输入您的详细信息。",
- "placeholder": {
- "username": "请输入用户名",
- "password": "密码"
+ "title": "企业级 AI 网关",
+ "login": {
+ "username": "用户名",
+ "password": "密码",
+ "submit": "登录",
+ "registerLink": "点击注册",
+ "noAccount": "没有账号?",
+ "subtitle": "欢迎回来!请输入您的详细信息。",
+ "placeholder": {
+ "username": "请输入用户名",
+ "password": "密码"
+ },
+ "failed": "登录失败",
+ "inputError": "请输入用户名和密码",
+ "usernameRequired": "用户名不能为空",
+ "usernameRequiredHint": "请输入用户名",
+ "passwordRequired": "密码不能为空",
+ "passwordRequiredHint": "请输入密码",
+ "loginRequired": "请先登录",
+ "sessionExpired": "登录已失效",
+ "sessionExpiredHint": "请重新登录后继续使用。",
+ "requestFailed": "登录请求失败",
+ "forgotPassword": "忘记密码?",
+ "newPassword": "新密码",
+ "passwordResetSuccess": "密码重置成功,请重新登录。",
+ "featuredAgents": "推荐 AI 应用",
+ "pleaseLoginFirst": "请先登录以使用此应用。",
+ "userNotFound": "用户不存在",
+ "incorrectPassword": "密码错误",
+ "accountDisabled": "账号已禁用",
+ "dbConnectionFailed": "数据库连接失败,请检查数据库服务是否运行。",
+ "internalError": "服务器内部错误,请稍后重试。",
+ "rememberMe": "记住我",
+ "forgotPasswordDesc": "输入工号和用户名,重置链接将发送到您的企业微信",
+ "findPassword": "找回密码",
+ "employeeIdRequired": "请输入工号",
+ "passwordResetWecomSent": "若账号存在且已绑定企业微信,重置链接已发送到您的企业微信。",
+ "passwordResetEmailSent": "若账号存在,重置链接已发送到您的邮箱。",
+ "passwordResetRequestFailed": "请求密码重置失败",
+ "passwordResetRateLimited": "操作过于频繁,请 {minutes} 分钟后再试",
+ "announcements": "公告",
+ "casdoorLogin": "Casdoor 登录",
+ "casdoorErrors": {
+ "invalidCredentials": "用户名或密码错误",
+ "codeExpired": "登录会话已过期,请重新登录",
+ "stateExpired": "登录会话已过期,请重试",
+ "accessDenied": "登录已取消或被拒绝",
+ "configError": "认证服务暂不可用,请联系管理员",
+ "authFailed": "登录失败,请稍后重试",
+ "passwordPolicy": "新密码不符合安全要求",
+ "setPasswordFailed": "修改密码失败,请稍后重试或联系管理员",
+ "incorrectCurrentPassword": "原:当前密码不正确,新:您输入的原密码有误,请重新输入",
+ "passwordUnchanged": "新密码不能与当前密码相同",
+ "userNotInIdp": "您的账号尚未在统一认证系统中开通,请联系管理员同步账号后再修改密码。"
+ },
+ "casdoorDialogTitles": {
+ "userNotFound": "未匹配到本地账号",
+ "userNotInIdp": "认证系统中无此账号",
+ "accountDisabled": "账号已禁用",
+ "sessionExpired": "登录会话已过期",
+ "configError": "认证服务异常",
+ "accessDenied": "登录未完成",
+ "loginFailed": "登录失败"
+ },
+ "casdoorDialogDetails": {
+ "contactAdmin": "若问题持续出现,请联系管理员处理。",
+ "retryLogin": "请关闭此窗口后重新登录。"
+ },
+ "wecomLogin": "企业微信登录",
+ "wecomComingSoon": "企业微信登录功能正在开发中,敬请期待",
+ "wecomConnecting": "正在连接企业微信...",
+ "wecomStartFailed": "启动企业微信登录失败",
+ "wecomInvalidState": "企业微信登录状态无效",
+ "wecomStateExpired": "企业微信登录会话已过期,请重试。",
+ "wecomBindRequired": "当前企业微信账号未绑定本地用户,请联系管理员。",
+ "wecomAccountDisabled": "账号已禁用,请联系管理员。",
+ "wecomLoginFailed": "企业微信登录失败",
+ "wecomMatchAmbiguous": "该企业微信账号匹配到多个本地账号,请联系管理员处理。",
+ "wecomMatchAttrMissing": "企业微信缺少必要匹配字段,请联系管理员。",
+ "wecomRetry": "重新发起企业微信登录",
+ "wecomTechnicalInfo": "技术信息:{detail}",
+ "wecomBindPromptTitle": "首次登录请校验并绑定本站账号",
+ "wecomBindPromptDesc": "当前企业微信身份为 {name}。请输入一个允许的字段,用来绑定你已有的本站账号。",
+ "wecomBindField": "校验字段",
+ "wecomBindValue": "校验值",
+ "wecomBindValuePlaceholder": "请输入你的{field}",
+ "wecomBindPromptHint": "输入值必须和本站已有账号完全匹配。绑定成功后,当前企业微信账号会自动写回该用户表。",
+ "wecomBindSubmit": "校验并登录",
+ "wecomBindInputNotFound": "没有找到与你输入内容匹配的本站账号。",
+ "wecomBindInputAmbiguous": "你输入的内容匹配到了多个本站账号,请联系管理员处理。",
+ "wecomBindSessionExpired": "本次企业微信绑定会话已过期,请重新发起企业微信登录。",
+ "wecomBindConflict": "当前企业微信账号已绑定到其他本站账号。",
+ "wecomBindFieldNotAllowed": "当前选择的校验字段不被允许。",
+ "wecomBindValueRequired": "请输入校验值。",
+ "wecomFieldLabels": {
+ "employee_id": "工号",
+ "mobile": "手机号",
+ "email": "邮箱",
+ "match_rules": "匹配规则"
+ },
+ "wecomRuleJoin": {
+ "and": "且",
+ "or": "或"
+ },
+ "wecomFieldGuides": {
+ "employee_id": "请管理员检查“工号来源字段”配置,并确认该成员在企业微信里能返回工号。",
+ "mobile": "请管理员在企业微信通讯录中补齐该成员手机号,或调整匹配规则,不再强依赖手机号。",
+ "email": "请管理员在企业微信通讯录中维护该成员邮箱,或调整匹配规则。",
+ "default": "请管理员检查企业微信通讯录字段是否齐全,以及当前匹配规则是否合理。"
+ },
+ "wecomDialogTitles": {
+ "matchAttrMissing": "企业微信资料不完整",
+ "matchAmbiguous": "匹配到了多个本站账号",
+ "bindRequired": "未找到可绑定的本站账号",
+ "bindInputRequired": "首次绑定前需要人工校验",
+ "bindConflict": "该企业微信账号已绑定到别的账号",
+ "notInScope": "当前成员未被该应用授权",
+ "stateExpired": "企业微信登录已过期",
+ "accountDisabled": "本地账号已被禁用",
+ "loginFailed": "企业微信登录失败"
+ },
+ "wecomDialogSummaries": {
+ "matchAttrMissing": "企业微信没有返回“{field}”,所以系统无法按当前规则自动匹配你的本站账号。",
+ "matchAmbiguous": "当前企业微信账号匹配到了多个本站账号,系统无法自动判断该登录哪一个。",
+ "matchAmbiguousWithCount": "当前企业微信账号匹配到了 {count} 个本站账号,系统无法自动判断该登录哪一个。",
+ "bindRequired": "企业微信侧认证已经成功,但本站没有找到符合当前规则的账号。",
+ "bindInputRequired": "企业微信侧认证已经成功,请先输入一个本站字段完成首次绑定。",
+ "bindConflict": "当前企业微信账号已经绑定到其他本站账号。",
+ "notInScope": "当前成员不在企业微信应用可见范围内,或不是本企业成员。"
+ },
+ "wecomDialogDetails": {
+ "currentRules": "当前匹配规则:{rules}",
+ "bindFallback": "如果你已经有本站账号,可以请管理员先手动绑定当前企业微信账号。",
+ "ambiguousAction": "请管理员清理重复的工号、手机号或邮箱数据,或者收紧匹配规则。",
+ "bindRequiredAction": "请管理员先创建或绑定本站账号,或者开启自动创建用户。",
+ "bindInputRequiredAction": "下一步请输入你的工号、手机号或邮箱中的一个,校验成功后就会把当前企业微信账号绑定到已有本站账号。",
+ "bindConflictAction": "请管理员先解除旧绑定,再重新绑定当前企业微信账号。",
+ "notInScopeAction": "请管理员到企业微信后台,把该成员或其所在部门加入该应用的可见范围。",
+ "retryLogin": "请重新发起一次企业微信登录。",
+ "contactAdmin": "如需帮助,请联系管理员。"
+ }
},
- "failed": "登录失败",
- "inputError": "请输入用户名和密码",
- "usernameRequired": "用户名不能为空",
- "usernameRequiredHint": "请输入用户名",
- "passwordRequired": "密码不能为空",
- "passwordRequiredHint": "请输入密码",
- "loginRequired": "请先登录",
- "sessionExpired": "登录已失效",
- "sessionExpiredHint": "请重新登录后继续使用。",
- "requestFailed": "登录请求失败",
- "forgotPassword": "忘记密码?",
- "newPassword": "新密码",
- "passwordResetSuccess": "密码重置成功,请重新登录。",
- "featuredAgents": "推荐 AI 应用",
- "pleaseLoginFirst": "请先登录以使用此应用。",
- "userNotFound": "用户不存在",
- "incorrectPassword": "密码错误",
- "accountDisabled": "账号已禁用",
- "dbConnectionFailed": "数据库连接失败,请检查数据库服务是否运行。",
- "internalError": "服务器内部错误,请稍后重试。",
- "rememberMe": "记住我",
- "forgotPasswordDesc": "输入工号和用户名,重置链接将发送到您的企业微信",
- "findPassword": "找回密码",
- "employeeIdRequired": "请输入工号",
- "passwordResetWecomSent": "若账号存在且已绑定企业微信,重置链接已发送到您的企业微信。",
- "passwordResetEmailSent": "若账号存在,重置链接已发送到您的邮箱。",
- "passwordResetRequestFailed": "请求密码重置失败",
- "passwordResetRateLimited": "操作过于频繁,请 {minutes} 分钟后再试",
- "announcements": "公告",
- "casdoorLogin": "Casdoor 登录",
- "casdoorErrors": {
- "invalidCredentials": "用户名或密码错误",
- "codeExpired": "登录会话已过期,请重新登录",
- "stateExpired": "登录会话已过期,请重试",
- "accessDenied": "登录已取消或被拒绝",
- "configError": "认证服务暂不可用,请联系管理员",
- "authFailed": "登录失败,请稍后重试",
- "passwordPolicy": "新密码不符合安全要求",
- "setPasswordFailed": "修改密码失败,请稍后重试或联系管理员",
- "incorrectCurrentPassword": "原:当前密码不正确,新:您输入的原密码有误,请重新输入",
- "passwordUnchanged": "新密码不能与当前密码相同",
- "userNotInIdp": "您的账号尚未在统一认证系统中开通,请联系管理员同步账号后再修改密码。"
+ "landing": {
+ "hero": {
+ "prefix": "和信精密",
+ "highlight": "AI智能体 应用平台",
+ "subtitle": "AI的世界,期望让你开心工作,快乐生活。"
+ },
+ "agent": {
+ "role": "AI 助手"
+ }
},
- "casdoorDialogTitles": {
- "userNotFound": "未匹配到本地账号",
- "userNotInIdp": "认证系统中无此账号",
- "accountDisabled": "账号已禁用",
- "sessionExpired": "登录会话已过期",
- "configError": "认证服务异常",
- "accessDenied": "登录未完成",
- "loginFailed": "登录失败"
+ "register": {
+ "title": "注册新账号",
+ "username": "用户名",
+ "password": "密码",
+ "email": "邮箱",
+ "cancel": "取消",
+ "submit": "提交注册",
+ "success": "注册申请已提交,请等待管理员审批",
+ "failed": "注册失败",
+ "inputError": "请输入用户名和密码",
+ "requestFailed": "请求失败",
+ "fields": {
+ "realName": "真实姓名",
+ "employeeId": "工号",
+ "phone": "手机号"
+ },
+ "emailRequired": "请输入邮箱"
},
- "casdoorDialogDetails": {
- "contactAdmin": "若问题持续出现,请联系管理员处理。",
- "retryLogin": "请关闭此窗口后重新登录。"
- },
- "wecomLogin": "企业微信登录",
- "wecomComingSoon": "企业微信登录功能正在开发中,敬请期待",
- "wecomConnecting": "正在连接企业微信...",
- "wecomStartFailed": "启动企业微信登录失败",
- "wecomInvalidState": "企业微信登录状态无效",
- "wecomStateExpired": "企业微信登录会话已过期,请重试。",
- "wecomBindRequired": "当前企业微信账号未绑定本地用户,请联系管理员。",
- "wecomAccountDisabled": "账号已禁用,请联系管理员。",
- "wecomLoginFailed": "企业微信登录失败",
- "wecomMatchAmbiguous": "该企业微信账号匹配到多个本地账号,请联系管理员处理。",
- "wecomMatchAttrMissing": "企业微信缺少必要匹配字段,请联系管理员。",
- "wecomRetry": "重新发起企业微信登录",
- "wecomTechnicalInfo": "技术信息:{detail}",
- "wecomBindPromptTitle": "首次登录请校验并绑定本站账号",
- "wecomBindPromptDesc": "当前企业微信身份为 {name}。请输入一个允许的字段,用来绑定你已有的本站账号。",
- "wecomBindField": "校验字段",
- "wecomBindValue": "校验值",
- "wecomBindValuePlaceholder": "请输入你的{field}",
- "wecomBindPromptHint": "输入值必须和本站已有账号完全匹配。绑定成功后,当前企业微信账号会自动写回该用户表。",
- "wecomBindSubmit": "校验并登录",
- "wecomBindInputNotFound": "没有找到与你输入内容匹配的本站账号。",
- "wecomBindInputAmbiguous": "你输入的内容匹配到了多个本站账号,请联系管理员处理。",
- "wecomBindSessionExpired": "本次企业微信绑定会话已过期,请重新发起企业微信登录。",
- "wecomBindConflict": "当前企业微信账号已绑定到其他本站账号。",
- "wecomBindFieldNotAllowed": "当前选择的校验字段不被允许。",
- "wecomBindValueRequired": "请输入校验值。",
- "wecomFieldLabels": {
- "employee_id": "工号",
- "mobile": "手机号",
- "email": "邮箱",
- "match_rules": "匹配规则"
- },
- "wecomRuleJoin": {
- "and": "且",
- "or": "或"
- },
- "wecomFieldGuides": {
- "employee_id": "请管理员检查“工号来源字段”配置,并确认该成员在企业微信里能返回工号。",
- "mobile": "请管理员在企业微信通讯录中补齐该成员手机号,或调整匹配规则,不再强依赖手机号。",
- "email": "请管理员在企业微信通讯录中维护该成员邮箱,或调整匹配规则。",
- "default": "请管理员检查企业微信通讯录字段是否齐全,以及当前匹配规则是否合理。"
- },
- "wecomDialogTitles": {
- "matchAttrMissing": "企业微信资料不完整",
- "matchAmbiguous": "匹配到了多个本站账号",
- "bindRequired": "未找到可绑定的本站账号",
- "bindInputRequired": "首次绑定前需要人工校验",
- "bindConflict": "该企业微信账号已绑定到别的账号",
- "notInScope": "当前成员未被该应用授权",
- "stateExpired": "企业微信登录已过期",
- "accountDisabled": "本地账号已被禁用",
- "loginFailed": "企业微信登录失败"
- },
- "wecomDialogSummaries": {
- "matchAttrMissing": "企业微信没有返回“{field}”,所以系统无法按当前规则自动匹配你的本站账号。",
- "matchAmbiguous": "当前企业微信账号匹配到了多个本站账号,系统无法自动判断该登录哪一个。",
- "matchAmbiguousWithCount": "当前企业微信账号匹配到了 {count} 个本站账号,系统无法自动判断该登录哪一个。",
- "bindRequired": "企业微信侧认证已经成功,但本站没有找到符合当前规则的账号。",
- "bindInputRequired": "企业微信侧认证已经成功,请先输入一个本站字段完成首次绑定。",
- "bindConflict": "当前企业微信账号已经绑定到其他本站账号。",
- "notInScope": "当前成员不在企业微信应用可见范围内,或不是本企业成员。"
- },
- "wecomDialogDetails": {
- "currentRules": "当前匹配规则:{rules}",
- "bindFallback": "如果你已经有本站账号,可以请管理员先手动绑定当前企业微信账号。",
- "ambiguousAction": "请管理员清理重复的工号、手机号或邮箱数据,或者收紧匹配规则。",
- "bindRequiredAction": "请管理员先创建或绑定本站账号,或者开启自动创建用户。",
- "bindInputRequiredAction": "下一步请输入你的工号、手机号或邮箱中的一个,校验成功后就会把当前企业微信账号绑定到已有本站账号。",
- "bindConflictAction": "请管理员先解除旧绑定,再重新绑定当前企业微信账号。",
- "notInScopeAction": "请管理员到企业微信后台,把该成员或其所在部门加入该应用的可见范围。",
- "retryLogin": "请重新发起一次企业微信登录。",
- "contactAdmin": "如需帮助,请联系管理员。"
+ "resetPassword": {
+ "title": "重置密码",
+ "desc": "请在下方输入新密码",
+ "newPassword": "新密码",
+ "confirmPassword": "确认密码",
+ "newPasswordPlaceholder": "请输入新密码",
+ "confirmPasswordPlaceholder": "请再次输入新密码",
+ "submit": "重置密码",
+ "submitting": "正在重置...",
+ "backToLogin": "返回登录",
+ "fillAllFields": "请填写所有字段",
+ "passwordMismatch": "两次输入的密码不一致",
+ "successRedirect": "密码重置成功,即将跳转到登录页...",
+ "failed": "密码重置失败",
+ "invalidLink": "重置链接无效或缺少 token,请重新申请找回密码",
+ "tokenInvalid": "链接已失效或已过期(可能已使用过或重新申请过),请回到登录页重新发起找回密码"
}
- },
- "landing": {
- "hero": {
- "prefix": "和信精密",
- "highlight": "AI智能体 应用平台",
- "subtitle": "AI的世界,期望让你开心工作,快乐生活。"
- },
- "agent": {
- "role": "AI 助手"
- }
- },
- "register": {
- "title": "注册新账号",
- "username": "用户名",
- "password": "密码",
- "email": "邮箱",
- "cancel": "取消",
- "submit": "提交注册",
- "success": "注册申请已提交,请等待管理员审批",
- "failed": "注册失败",
- "inputError": "请输入用户名和密码",
- "requestFailed": "请求失败",
- "fields": {
- "realName": "真实姓名",
- "employeeId": "工号",
- "phone": "手机号"
- }
- },
- "resetPassword": {
- "title": "重置密码",
- "desc": "请在下方输入新密码",
- "newPassword": "新密码",
- "confirmPassword": "确认密码",
- "newPasswordPlaceholder": "请输入新密码",
- "confirmPasswordPlaceholder": "请再次输入新密码",
- "submit": "重置密码",
- "submitting": "正在重置...",
- "backToLogin": "返回登录",
- "fillAllFields": "请填写所有字段",
- "passwordMismatch": "两次输入的密码不一致",
- "successRedirect": "密码重置成功,即将跳转到登录页...",
- "failed": "密码重置失败",
- "invalidLink": "重置链接无效或缺少 token,请重新申请找回密码",
- "tokenInvalid": "链接已失效或已过期(可能已使用过或重新申请过),请回到登录页重新发起找回密码"
- }
}
diff --git a/frontend/src/locales/zh-CN/errors.json b/frontend/src/locales/zh-CN/errors.json
index 1b1e9dfe..ac3d290c 100644
--- a/frontend/src/locales/zh-CN/errors.json
+++ b/frontend/src/locales/zh-CN/errors.json
@@ -1,6 +1,21 @@
{
"generic": "请求失败。",
"codes": {
+ "ORDER_DELIVERY_REPLY.FORBIDDEN": "无订单交期回复查看权限,请联系管理员开通。",
+ "ORDER_DELIVERY_REPLY.LINE_NOT_FOUND": "订单行不存在或已不在同步范围。",
+ "ORDER_DELIVERY_REPLY.ADMIN_REQUIRED": "仅平台管理员可按部门批量发放权限。",
+ "ORDER_DELIVERY_REPLY.GRANT_DEPARTMENT_REQUIRED": "请填写要发放权限的部门。",
+ "ORDER_DELIVERY_REPLY.GRANT_PERMISSION_INVALID": "权限类型须为 manage 或 access。",
+ "ORDER_DELIVERY_REPLY.BATCH_REPLY_EMPTY": "联合回复至少包含一行,且单次不超过 200 行。",
+ "ORDER_DELIVERY_REPLY.NOTIFY_BATCH_EMPTY": "批量通知至少包含一行,且单次不超过 200 行。",
+ "ORDER_DELIVERY_REPLY.SALESPERSON_UNMAPPED": "订单业务员未关联系统账号或未绑定企微,无法发送通知。",
+ "ORDER_DELIVERY_REPLY.NOTIFY_FAILED": "企微通知发送失败,该行未锁定,请稍后重试。",
+ "ORDER_DELIVERY_REPLY.LINE_LOCKED": "该订单行交期已通知锁定,不能修改批次。",
+ "ORDER_DELIVERY_REPLY.MANAGE_FORBIDDEN": "无订单交期回复操作权限,仅生管可保存或通知。",
+ "ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "请至少填写一条交期批次。",
+ "ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "单行批次数量超过上限。",
+ "ORDER_DELIVERY_REPLY.BATCH_INVALID": "批次格式不合法,请检查交期、数量或备注。",
+ "ORDER_DELIVERY_REPLY.BATCH_QTY_TOTAL_MISMATCH": "各批次数量合计必须等于订单数量,请调整后重新保存。",
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "所选 ODM ID 不在当前可行候选内,请重新选择。",
"SHIPPING.FULFILLMENT_POLICY_INVALID": "货代履约策略或字段能力绑定无效。",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "未找到货代履约策略。",
diff --git a/frontend/src/locales/zh-CN/workspace.json b/frontend/src/locales/zh-CN/workspace.json
index 228b7918..12a80c3d 100644
--- a/frontend/src/locales/zh-CN/workspace.json
+++ b/frontend/src/locales/zh-CN/workspace.json
@@ -113,7 +113,8 @@
"contractPayment": "合同付款预警",
"contractPaymentLedger": "合同台账",
"contractPaymentReview": "待确认合同",
- "contractPaymentWeeklyBatches": "周汇总批次"
+ "contractPaymentWeeklyBatches": "周汇总批次",
+ "orderDeliveryReply": "订单交期回复"
},
"kb": {
"accessDenied": "需要管理员权限才能访问知识库。"
@@ -202,7 +203,21 @@
"resend": "重发企微",
"failedUnits": "失败的收料单元",
"retry": "填写原因后重试",
- "retryReasonPrompt": "请填写重试 {target} 的原因"
+ "retryReasonPrompt": "请填写重试 {target} 的原因",
+ "batch": {
+ "selectAll": "全选当前页通知单",
+ "selected": "已选 {count} 张",
+ "download": "批量下载 Excel",
+ "confirm": "批量确认已上传",
+ "rpa": "批量启动 RPA",
+ "downloadStarted": "已开始下载所选发货通知 Excel",
+ "success": "{action}:已处理 {count} 张通知单",
+ "partialResult": "{action}:成功 {accepted} 张,阻断 {blocked} 张,请查看刷新后的通知状态。",
+ "lines": "项次",
+ "parts": "料号",
+ "quantities": "本次发货 / 可用库存",
+ "uploadStatus": "货代状态"
+ }
},
"shippingNotice": {
"title": "货代发货通知",
@@ -968,5 +983,100 @@
"notifyExcel": "Excel",
"downloadExcel": "下载 Excel",
"downloadExcelFailed": "下载 Excel 失败"
+ },
+ "orderDeliveryReply": {
+ "deepLinkLocated": "已定位到通知对应的订单行 {order}:{item}",
+ "search": "查询",
+ "reset": "重置",
+ "saving": "保存中…",
+ "syncNow": "手动刷新",
+ "syncing": "同步中…",
+ "syncNever": "尚未同步",
+ "syncAt": "最近同步:{time}",
+ "syncRunning": "同步进行中…",
+ "syncFailedAt": "上次同步失败({time}),列表为上次成功快照",
+ "syncDone": "同步完成,共 {count} 行",
+ "syncSkipped": "已有同步正在进行,请稍后再试",
+ "syncFailedTitle": "同步失败,已保留上次快照",
+ "filterKeyword": "关键词(订单 / 产品 / 客户 / 业务员 / 回复人员)",
+ "filterKeywordPh": "订单单号、产品编号、品名、客户料号、客户编号、业务员、交期回复人员均可搜索",
+ "filterOrderDate": "订单日期",
+ "filterStatus": "交期回复状态",
+ "statusAll": "全部",
+ "statusReplied": "已回复",
+ "statusNotFully": "未完全回复",
+ "statusNotReplied": "未回复",
+ "statusPartial": "部分回复",
+ "totalCount": "共 {count} 条产品行",
+ "selectAll": "全选(本页)",
+ "selectedCount": "已勾选 {count} 行",
+ "batchReply": "+ 联合回复交期",
+ "batchNotify": "批量通知",
+ "toolbarHint": "联合回复只保存批次;点「批量通知」才发送并锁定。",
+ "colOrderLine": "订单单号:项次",
+ "colOrderDate": "订单日期",
+ "colCustomer": "客户编号",
+ "colSalesperson": "业务员",
+ "colDept": "部门",
+ "colCustomerPo": "客户订单",
+ "colPartNo": "产品编号",
+ "colPartName": "品名",
+ "colSpec": "规格",
+ "colCustomerPartNo": "客户产品编号",
+ "colAgreedDate": "约定交货日",
+ "colUnit": "单位",
+ "colQty": "数量",
+ "colDelivered": "已交数量",
+ "colUndelivered": "未交数量",
+ "colStatus": "交期回复状态",
+ "colReply": "交期回复",
+ "colNotify": "通知业务部门",
+ "colReplyPerson": "交期回复人员",
+ "batchCount": "{count} 批",
+ "repliedOf": "已回复 {replied}/{remain}",
+ "overTag": "超",
+ "collapse": "收起 ▲",
+ "expand": "+{count} 批 ▾",
+ "lockedTag": "交期已锁定",
+ "replyAction": "回复交期",
+ "editReplyAction": "修改回复",
+ "notifiedTag": "已通知 {name}",
+ "replyFirst": "请先回复交期",
+ "notifyAction": "发送通知业务部门",
+ "pendingNotify": "待通知后记录",
+ "empty": "没有符合条件的订单行",
+ "pageInfo": "第 {page} / {pages} 页",
+ "modalTitleSingle": "回复交期 · {order} / 项次 {item}",
+ "modalTitleBatch": "联合回复交期({count} 行)",
+ "quickDate": "快速统一交期",
+ "applyQuickDate": "应用到全部",
+ "modalHint": "可填 1 个交期,或点「增加批次」拆成多个「交期+数量」;各批次数量合计须等于订单数量。",
+ "itemLabel": "项次 {item}",
+ "qtyPh": "数量",
+ "remarkPh": "备注(可选)",
+ "removeBatch": "删除本行批次",
+ "addBatch": "+ 增加拆分批次(交期 + 数量 + 备注)",
+ "saveReply": "保存回复",
+ "noValidBatches": "请至少为一行填写交期和数量",
+ "saveSingleDone": "交期批次已保存(未通知,可继续修改)",
+ "saveBatchDone": "已保存 {ok} 行交期批次(未通知)",
+ "saveBatchPartial": "保存完成:成功 {ok} 行,失败 {fail} 行:{detail}",
+ "saveFailedTitle": "保存失败",
+ "loadFailed": "加载订单行失败",
+ "notifyConfirm": "确认向业务员「{salesperson}」发送?\n您有订单号:项次{order}:{item}的订单需要填写/确认/查看交期。\n发送后交期将锁定。",
+ "notifyDone": "已通知并锁定:{order}:{item}",
+ "notifyBatchConfirm": "将向 {count} 行对应业务员发送交期通知,发送成功的行将锁定。继续?",
+ "notifyPartial": "部分成功:成功 {ok} 行,失败 {fail} 行,跳过 {skip} 行。失败:{detail}",
+ "notifyAllFailed": "全部失败({fail} 行):{detail}",
+ "notifyBatchDone": "已通知并锁定 {ok} 行,跳过 {skip} 行",
+ "notifyFailedTitle": "通知发送失败,该行未锁定",
+ "entryHint": "查单 → 填交期 → 通知业务员",
+ "notNotified": "未通知",
+ "orderQtyLabel": "订单数量:{qty} {unit}",
+ "batchMissingDate": "第 {batches} 批未填交期",
+ "batchMissingQty": "第 {batches} 批未填数量",
+ "qtyTotalMismatchLine": "各批次合计 {total},须等于订单数量 {qty}",
+ "saveBlocked": "以下行填写未完成,无法保存:{detail}",
+ "batchDuplicateDate": "同一订单单号:项次的不同批次交期时间不能相同(重复:{dates})"
}
}
diff --git a/frontend/src/locales/zh-TW/admin.json b/frontend/src/locales/zh-TW/admin.json
index 81e4952a..e828e56e 100644
--- a/frontend/src/locales/zh-TW/admin.json
+++ b/frontend/src/locales/zh-TW/admin.json
@@ -47,7 +47,8 @@
"platformApps": "平台應用說明",
"procurementContract": "採購合同審查",
"trainingConfig": "培訓配置",
- "integrationConnector": "整合連接器"
+ "integrationConnector": "整合連接器",
+ "contractPayment": "合同付款预警"
},
"shippingOrderExtractionRuns": {
"eyebrow": "唯讀執行診斷",
@@ -1213,6 +1214,10 @@
"trainingLeanTeamManage": "精益培訓班組管理",
"contractPaymentAccess": "合約付款預警存取",
"contractPaymentAccessHint": "勾選後可進入工作臺合約付款預警(臺帳、待確認、週彙總)。同步 OA、掃描預警與發送預警僅管理員可用。",
+ "orderDeliveryReplyManage": "訂單交期回覆操作",
+ "orderDeliveryReplyManageHint": "勾選後可回覆交期批次、發送/批量通知業務員並手動同步 ERP 訂單(生管)。",
+ "orderDeliveryReplyAccess": "訂單交期回覆查看",
+ "orderDeliveryReplyAccessHint": "勾選後可唯讀查看已同步訂單與回覆結果(業務人員);回覆與通知需另勾「操作」權限。",
"password": "密碼",
"passwordHint": "(留空表示不修改)",
"noAgents": "暫無可用應用"
@@ -1246,11 +1251,13 @@
"name": "名稱",
"code": "編碼",
"company": "公司",
- "actions": "操作"
+ "actions": "操作",
+ "members": "Members"
},
"actions": {
"edit": "編輯",
- "delete": "刪除"
+ "delete": "刪除",
+ "viewMembers": "View department members"
},
"fields": {
"name": "名稱",
@@ -1265,6 +1272,11 @@
"confirmDelete": "確定刪除該部門嗎?",
"msg": {
"nameRequired": "部門名稱必填"
+ },
+ "members": {
+ "title": "{name} Members",
+ "count": "{count} members",
+ "empty": "No members"
}
},
"agent": {
@@ -1797,12 +1809,13 @@
"firstLoginInputFields": "首次登入可輸入字段",
"employeeIdSource": "工號來源字段",
"mobileNormalize": "手機號歸一化",
- "callbackToken": "回調 Token",
+ "callbackToken": "回呼Token",
"encodingAesKey": "EncodingAESKey",
- "callbackUrl": "回調URL",
+ "callbackUrl": "回呼URL",
"homepageUrl": "應用主頁URL",
- "trustedDomain": "可信域名",
- "publicBaseUrl": "外網 HTTPS 基地址"
+ "trustedDomain": "可信任網域",
+ "publicBaseUrl": "外網 HTTPS 基地址",
+ "userId": "User ID (user_id)"
},
"bindModes": {
"match_rules": "按規則自動匹配",
@@ -1915,8 +1928,23 @@
"filterName": "篩選 姓名/用戶名",
"filterDept": "篩選 部門",
"allRoles": "所有角色",
- "views": { "apps": "按應用查看", "members": "按成員查看" },
- "appHeaders": { "app": "應用", "type": "類型", "authorized": "已授權人數", "actions": "操作", "viewMembers": "查看成員", "accessHint": "點擊查看成員權限", "memberHint": "可新增或取消此應用的存取權限", "memberSearch": "搜尋姓名、用戶名、工號或部門", "addMember": "新增權限", "removeMember": "取消權限", "noMembers": "沒有符合的成員" },
+ "views": {
+ "apps": "按應用查看",
+ "members": "按成員查看"
+ },
+ "appHeaders": {
+ "app": "應用",
+ "type": "類型",
+ "authorized": "已授權人數",
+ "actions": "操作",
+ "viewMembers": "查看成員",
+ "accessHint": "點擊查看成員權限",
+ "memberHint": "可新增或取消此應用的存取權限",
+ "memberSearch": "搜尋姓名、用戶名、工號或部門",
+ "addMember": "新增權限",
+ "removeMember": "取消權限",
+ "noMembers": "沒有符合的成員"
+ },
"headers": {
"user": "用戶",
"realName": "真實姓名",
@@ -2153,7 +2181,7 @@
"tokens_completion": "補全 Token",
"total_tokens": "總 Token",
"latency_ms": "延遲(毫秒)",
- "latency": "延遲",
+ "latency": "耗時(毫秒)",
"cost": "費用",
"ip": "IP",
"user_agent": "用戶代理",
@@ -2169,13 +2197,15 @@
"reset_token_expiry": "重置令牌過期時間",
"risk_status": "風險狀態",
"risk_score": "風險分",
- "latency": "耗時(毫秒)",
"is_empty_answer": "空回答",
"is_system_failure": "系統失敗",
"feedback_score": "評分",
"feedback_comment": "評分備註",
"negative_feedback_count": "負面反饋數",
- "actions": "操作"
+ "actions": "操作",
+ "feedback_module": "Feedback Module",
+ "feedback_type": "Feedback Type",
+ "source_page": "Source Page"
},
"tables": {
"users": "用戶",
@@ -2186,7 +2216,8 @@
"agents": "應用運營",
"ops_overview": "營運總覽",
"issue_analysis": "問題分析",
- "usage_analysis": "使用分析"
+ "usage_analysis": "使用分析",
+ "permission_requests": "權限申請"
},
"usageIntro": "查看 AI 應用呼叫趨勢、活躍使用者、低使用應用與異常高峰。",
"usageTotalSessions": "對話總量",
@@ -2376,6 +2407,32 @@
"topApp": "優先優化應用",
"topAppHint": "需要關注信號占比 {ratio}%"
}
+ },
+ "usageRangeLabel": "統計範圍",
+ "usageRanges": {
+ "7d": "近一週",
+ "30d": "近一月",
+ "90d": "近三月",
+ "180d": "近半年",
+ "365d": "近一年"
+ },
+ "feedbackValues": {
+ "types": {
+ "feature_suggestion": "Feature Suggestion",
+ "issue_feedback": "Issue Feedback",
+ "experience_optimization": "Experience Optimization"
+ },
+ "modules": {
+ "knowledge_base": "Knowledge Base",
+ "general": "General",
+ "workflow": "Workflow",
+ "account_permission": "Account & Permissions"
+ },
+ "pages": {
+ "workspace": "Workspace",
+ "chat": "Chat",
+ "unknown": "Unknown"
+ }
}
},
"batchEdit": {
@@ -2522,7 +2579,35 @@
"voucherCheckNotifyMissing": "缺資料通知",
"voucherCheckNotifyMissingHint": "總開關。缺件接收人請到 Chat「立帳憑證 → 通知設定」依檔案類型設定;排程選人只用於技術失敗告警。",
"voucherCheckNotifyFailure": "失敗告警",
- "voucherCheckNotifyFailureHint": "技術失敗會發給下方「選擇通知人員」。"
+ "voucherCheckNotifyFailureHint": "技術失敗會發給下方「選擇通知人員」。",
+ "editTitle": "Edit schedule",
+ "createTitle": "Add schedule",
+ "name": "Schedule name",
+ "namePlaceholder": "e.g. RoHS auto review schedule",
+ "owner": "Schedule owner",
+ "noUsers": "No users available",
+ "selectOwner": "Select an owner",
+ "faqHotAggregate": "FAQ hot aggregate",
+ "querying": "Querying...",
+ "testQuery": "Test query",
+ "expandConfig": "Expand config",
+ "collapseConfig": "Collapse config",
+ "dataSourceSection": "Data source config",
+ "waitSeconds": "Wait time (seconds)",
+ "noAgents": "No agents available",
+ "agentDisabled": "Disabled",
+ "minuteInterval": "Minute interval",
+ "minuteOfHour": "Minute of hour",
+ "weekday": "Weekday",
+ "notifyEnabled": "Enable notifications",
+ "selectNotifyUsers": "Select notification recipients...",
+ "enableOnCreate": "Enable after creation",
+ "cancel": "Cancel",
+ "saving": "Saving...",
+ "saveChanges": "Save changes",
+ "createSchedule": "Create schedule",
+ "dynamicParamsSearchPlaceholder": "搜尋選項(姓名/工號/部門)…",
+ "dynamicParamsSearchNoMatch": "沒有符合的選項"
},
"status": {
"all": "全部狀態",
@@ -2559,7 +2644,25 @@
"noKbGroupHint": "請先在排程編輯中啟用知識庫同步並選擇分組。",
"kbSyncNoStatus": "已請求寫入知識庫,但未返回同步狀態,請檢查排程知識庫配置或後端日誌。",
"baseFetchSqlReadonly": "基礎查詢 SQL (base_fetch_sql) — 唯讀",
- "limitRows": "限制行數 (limit)"
+ "limitRows": "限制行數 (limit)",
+ "title": "Test run — {name}",
+ "subtitle": "Edit WHERE clause, limit rows, run quickly and inspect each step",
+ "close": "Close",
+ "running": "Running...",
+ "start": "Start test run",
+ "waitingHint": "Dify calls may take a while, please wait...",
+ "total": "Total",
+ "success": "Success",
+ "failed": "Failed",
+ "skipped": "Skipped",
+ "limitSummary": "Limit {limit} rows | Dify Agent ID: {agentId}",
+ "noAgent": "None",
+ "stepLogs": "Step logs",
+ "viewSql": "View execution SQL",
+ "errors": "Errors ({count})",
+ "queryResult": "Query result",
+ "resultSummary": "{total} total, showing {showing}",
+ "viewGeneratedSql": "View generated SQL"
},
"deleteDialogTitle": "刪除排程",
"excelExportFailedHint": "庫存來源已成功,但排程 Excel 生成失敗",
@@ -2577,8 +2680,19 @@
"receiptRawZip": "原始收料",
"columns": {
"skippedCount": "跳過",
- "skippedCountReceipt": "無收料/跳過",
- "skippedCountInventory": "無庫存/跳過"
+"runNo": "Run ID",
+"startedAt": "Started at",
+"finishedAt": "Finished at",
+"status": "Status",
+"totalCount": "Processed",
+"successCount": "Success",
+"failedCount": "Failed",
+"excelExportFailedHint": "Inventory sources succeeded, but schedule Excel export failed",
+"wecomNotified": "WeCom notify",
+"detail": "Detail",
+"log": "Log",
+"skippedCountReceipt": "無收料/跳過",
+"skippedCountInventory": "無庫存/跳過"
},
"deleteConfirmMessage": "確認刪除排程「{name}」?",
"msg": {
@@ -2592,8 +2706,9 @@
"runNowWaitTimeout": "等待執行完成逾時(約 15 分鐘),已停止自動重新整理,可手動查詢記錄",
"downloadExcelFailed": "下載 Excel 失敗",
"downloadInventoryRawZipFailed": "下載原始庫存包失敗",
- "downloadReceiptRawZipFailed": "下載原始收料包失敗",
- "deleteFailed": "刪除排程失敗"
+"deleteFailed": "刪除排程失敗",
+"testQueryFailed": "Test query failed",
+"downloadReceiptRawZipFailed": "下載原始收料包失敗"
},
"difySnapshot": {
"title": "Dify 執行快照(審計)",
@@ -2605,6 +2720,65 @@
"notConfiguredUseDefault": "(未配置,使用 Dify 編排內預設提示詞)",
"notEnabledTest": "本次測試未啟用 Dify",
"notEnabledRun": "本次執行未啟用 Dify Agent"
+ },
+ "overviewTitle": "Schedule Management Overview",
+ "workbenchTitle": "Schedule Management Workbench",
+ "overviewSubtitle": "Click a schedule card to open the workbench.",
+ "workbenchSubtitle": "Schedule list on the left, run records on the right.",
+ "refresh": "Refresh schedules",
+ "stats": {
+ "total": "Total schedules",
+ "enabled": "Enabled",
+ "disabled": "Disabled",
+ "running": "Running"
+ },
+ "sectionOverview": "Schedule Management Overview",
+ "switchByCard": "Switch by card",
+ "addTitle": "Add schedule",
+ "addHint": "Click the button to fill in schedule fields in a dialog.",
+ "addButton": "Add schedule",
+ "emptyList": "No schedules yet. Create one first.",
+ "loading": "Loading...",
+ "enabled": "Enabled",
+ "disabled": "Disabled",
+ "scheduleNo": "No.",
+ "config": "Config",
+ "owner": "Owner",
+ "lastRun": "Last run",
+ "nextRun": "Next run",
+ "nextRunDisabled": "Disabled",
+ "nextRunPending": "Not computed (save or restart schedule)",
+ "noSelection": "No schedule selected",
+ "selectedHint": "Selected schedule · Last run {time}",
+ "runBatches": "Run batches",
+ "totalProcessed": "Total processed",
+ "totalSuccess": "Total success",
+ "totalFailed": "Total failed",
+ "listTitle": "Schedule list",
+ "recordsTitle": "{name} · Run records",
+ "recordsSubtitle": "Run record details are shown below.",
+ "noSelectionHint": "Select a schedule from the list on the left first.",
+ "filterStart": "Start",
+ "filterEnd": "End",
+ "query": "Search",
+ "reset": "Reset",
+ "queryingRuns": "Loading records...",
+ "noRunRecords": "No run records yet.",
+ "runLogs": "Run logs",
+ "stepsCount": "{count} steps",
+ "viewDetail": "View details",
+ "resizeColumn": "Drag to resize {label} column",
+ "notified": "Notified",
+ "notifyError": "Error",
+ "download": "Download",
+ "log": "Log",
+ "actions": {
+ "edit": "Edit",
+ "start": "Start",
+ "pause": "Pause",
+ "run": "Run",
+ "test": "Test",
+ "delete": "Delete"
}
},
"shippingIdentityRules": {
@@ -4251,7 +4425,8 @@
"rejected": "已駁回",
"needs_review": "待複核"
},
- "confirmRequiresNativePreview": "請先載入原生 PDF 預覽後再確認視覺綁定"
+ "confirmRequiresNativePreview": "請先載入原生 PDF 預覽後再確認視覺綁定",
+ "createBlockersTitle": "创建前阻断项"
},
"xfaAutoMark": {
"title": "自動標記建議",
@@ -5293,7 +5468,17 @@
"trainingAgentRequired": "未找到員工培訓 Agent,無法建立影片資源",
"videoUploaded": "培訓影片已上傳並加入配置資源",
"videoUploadFailed": "培訓影片上傳失敗"
- }
+ },
+ "eyebrow": "培训运营中心",
+ "pageHint": "配置变更将在保存后生效",
+ "footerHint": "所有配置项均支持保存后继续调整",
+ "stats": {
+ "total": "配置总数",
+ "published": "已发布",
+ "resources": "当前资料",
+ "levels": "已配置级别"
+ },
+ "questionBankTitle": "入职培训题库"
},
"integrationConnector": {
"title": "整合連接器",
diff --git a/frontend/src/locales/zh-TW/auth.json b/frontend/src/locales/zh-TW/auth.json
index c3e1f74e..dd5f65b5 100644
--- a/frontend/src/locales/zh-TW/auth.json
+++ b/frontend/src/locales/zh-TW/auth.json
@@ -129,7 +129,17 @@
"notInScopeAction": "請管理員到企業微信後台,把該成員或其所在部門加入該應用的可見範圍。",
"retryLogin": "請重新發起一次企業微信登入。",
"contactAdmin": "如需協助,請聯繫管理員。"
- }
+ },
+ "newPassword": "New Password",
+ "passwordResetSuccess": "Password reset successfully. Please login.",
+ "featuredAgents": "Featured AI Agents",
+ "pleaseLoginFirst": "Please login to access this agent.",
+ "userNotFound": "User not found",
+ "incorrectPassword": "Incorrect password",
+ "accountDisabled": "Account is disabled",
+ "dbConnectionFailed": "Database connection failed. Please check if the database service is running.",
+ "internalError": "Internal server error. Please try again later.",
+ "passwordResetEmailSent": "If the account exists, a reset link has been sent to your email."
},
"landing": {
"hero": {
@@ -156,7 +166,8 @@
"realName": "真實姓名",
"employeeId": "工號",
"phone": "手機號"
- }
+ },
+ "emailRequired": "Email is required"
},
"resetPassword": {
"title": "重設密碼",
diff --git a/frontend/src/locales/zh-TW/chat.json b/frontend/src/locales/zh-TW/chat.json
index edd8c074..8a0939f0 100644
--- a/frontend/src/locales/zh-TW/chat.json
+++ b/frontend/src/locales/zh-TW/chat.json
@@ -1188,7 +1188,11 @@
"departmentLabel": "部門",
"allStatuses": "全部狀態",
"allDepartments": "全部部門",
- "noLimit": "不限"
+ "noLimit": "不限",
+ "typeLabel": "培训类型",
+ "allTypes": "全部培训",
+ "typeOnboarding": "入职培训",
+ "typeSafety": "安全培训"
},
"columns": {
"joinDate": "入職日期",
@@ -1543,6 +1547,75 @@
"哪些員工還沒有完成培訓?",
"我想查看本月培訓成績統計"
]
+ },
+ "safety": {
+ "tabs": {
+ "onboarding": "入职培训",
+ "safety": "安全培训"
+ },
+ "progressTitle": "三级安全教育培训进度",
+ "progressHint": "按国家安全生产法要求,新员工须依次完成公司级、部门级、班组级三级安全教育。学完三级的全部资料/视频后,进入1次统一考试,≥90分及格方可结业。",
+ "steps": {
+ "company": "01 · 公司级",
+ "department": "02 · 部门级",
+ "team": "03 · 班组级",
+ "exam": "04 · 统一考试"
+ },
+ "stepStatus": {
+ "watchVideo": "观看视频",
+ "examReq": "≥90 分及格",
+ "completed": "已完成",
+ "inProgress": "进行中",
+ "pending": "待学习",
+ "examPending": "需先学完三级"
+ },
+ "videoPanelTitle": "{level} 第{step}步",
+ "videoPanelSubtitle": "观看安全教育培训视频",
+ "videoPanelPassLine": "及格线:≥ 90分方可进入考试",
+ "videoTitle": "部门安全生产管理制度宣导",
+ "videoDuration": "时长 35 分钟 · 已完成 12%",
+ "materialsTitle": "培训资料清单 (共 3 个文件/视频)",
+ "materials": {
+ "m1": "部门安全生产管理制度宣导.mp4",
+ "m2": "危险化学品安全操作规程.pdf",
+ "m3": "消防应急疏散演练视频.mp4"
+ },
+ "flowTitle": "学习与考试流程",
+ "flowSteps": {
+ "company": "公司级安全教育",
+ "department": "部门级安全教育",
+ "team": "班组级安全教育",
+ "exam": "统一考试 ≥90分"
+ },
+ "summaryTitle": "培训总结",
+ "summaryContent": {
+ "company": [
+ "1公司教育:国家有关安全生产方针、政策、法律、法规和有关规定。",
+ "2公司安全生产特点、有关安全管理标准和制度、安全生产情况及安全生产基本知识。",
+ "3企业安全生产规章制度、安全纪律和劳动纪律。",
+ "4安全生产和职业卫生的基本知识(防机械伤害、安全用电、防火防爆、防尘防毒、急救、危险因素、应急预案等)。",
+ "5作业场所和工作岗位存在的危险因素、防范措施及事故应急措施;",
+ "6安全生产正反方面的经验和教训,及重大事故安全案例教训。",
+ "7从业人员安全生产权利和义务;"
+ ],
+ "department": [
+ "1部门概况、生产或作业特点、可能存在的不安全因素及必须遵守的事项。",
+ "2公司、部门安全生产状况、管理制度规定和安全注意事项。",
+ "3所从事工种的安全技术操作规程、安全职责、操作技能及强制性标准。",
+ "4一般的机械设备、电气、触电、中暑、中毒急救安全基础知识",
+ "5作业场所和工作岗位存在的风险、部门危险因素分布、安全通道、职业危害、伤亡事故、应急救缓预案内容。防火、防毒、防尘、防爆知识及紧急情况安全处置、自救互救、急救方法、疏散和现场紧急情况的处理。",
+ "6部门安全设施(工具)、安全警示标志、急救器材、消防器材和个人防护用品的性能、使用方法和维护。",
+ "7部门以往发生的典型安全和职业危害事故教育、岗位预防措施等。",
+ "8有关事故案例。"
+ ],
+ "team": [
+ "1本班组(岗位)生产工艺流程、作业特点和注意事项、安全操作规程及细则。",
+ "2本班组安全活动制度及纪律、岗位之间工作衔接配合的安全与职业卫生事项。",
+ "3本班组(岗位)设备、工具的性能和安全装置、安全设施、监控仪器的作用原理、正确使用方法、防护用品及消防器材的使用和保管方法等。",
+ "4危害因素及防范、应急措施,本岗位易发生事故的不安全因素及其防范对策,本工种事故案例剖析。",
+ "5本岗位发现紧急情况应采取的应救措施和报告办法。"
+ ]
+ }
}
},
"shippingOrderReview": {
@@ -2679,7 +2752,8 @@
"inventory_source_unresolved": "庫存源未解析",
"effective_reservation_missing": "缺少有效的預約單號",
"unknown": "系統發現一項需要人工確認的內容"
- }
+ },
+ "autoCreateBlocked": "人工建单资格已通过,但自动建单资格未通过;确认后将由人工推进。"
},
"inventoryCandidates": {
"title": "人工選擇庫存源",
diff --git a/frontend/src/locales/zh-TW/errors.json b/frontend/src/locales/zh-TW/errors.json
index 9912c61b..50c75883 100644
--- a/frontend/src/locales/zh-TW/errors.json
+++ b/frontend/src/locales/zh-TW/errors.json
@@ -1,6 +1,21 @@
{
"generic": "請求失敗。",
"codes": {
+ "ORDER_DELIVERY_REPLY.FORBIDDEN": "無訂單交期回覆查看權限,請聯絡管理員開通。",
+ "ORDER_DELIVERY_REPLY.LINE_NOT_FOUND": "訂單行不存在或已不在同步範圍。",
+ "ORDER_DELIVERY_REPLY.ADMIN_REQUIRED": "僅平台管理員可按部門批量發放權限。",
+ "ORDER_DELIVERY_REPLY.GRANT_DEPARTMENT_REQUIRED": "請填寫要發放權限的部門。",
+ "ORDER_DELIVERY_REPLY.GRANT_PERMISSION_INVALID": "權限類型須為 manage 或 access。",
+ "ORDER_DELIVERY_REPLY.BATCH_REPLY_EMPTY": "聯合回覆至少包含一行,且單次不超過 200 行。",
+ "ORDER_DELIVERY_REPLY.NOTIFY_BATCH_EMPTY": "批量通知至少包含一行,且單次不超過 200 行。",
+ "ORDER_DELIVERY_REPLY.SALESPERSON_UNMAPPED": "訂單業務員未關聯系統帳號或未綁定企微,無法發送通知。",
+ "ORDER_DELIVERY_REPLY.NOTIFY_FAILED": "企微通知發送失敗,該行未鎖定,請稍後重試。",
+ "ORDER_DELIVERY_REPLY.LINE_LOCKED": "該訂單行交期已通知鎖定,不能修改批次。",
+ "ORDER_DELIVERY_REPLY.MANAGE_FORBIDDEN": "無訂單交期回覆操作權限,僅生管可儲存或通知。",
+ "ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "請至少填寫一條交期批次。",
+ "ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "單行批次數量超過上限。",
+ "ORDER_DELIVERY_REPLY.BATCH_INVALID": "批次格式不合法,請檢查交期、數量或備註。",
+ "ORDER_DELIVERY_REPLY.BATCH_QTY_TOTAL_MISMATCH": "各批次數量合計必須等於訂單數量,請調整後重新保存。",
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "所選 ODM ID 不在當前可行候選內,請重新選擇。",
"SHIPPING.FULFILLMENT_POLICY_INVALID": "貨代履約策略或欄位能力綁定無效。",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "找不到貨代履約策略。",
diff --git a/frontend/src/locales/zh-TW/workspace.json b/frontend/src/locales/zh-TW/workspace.json
index 88df47f1..0e0ac5b5 100644
--- a/frontend/src/locales/zh-TW/workspace.json
+++ b/frontend/src/locales/zh-TW/workspace.json
@@ -113,7 +113,8 @@
"contractPayment": "合約付款預警",
"contractPaymentLedger": "合約台帳",
"contractPaymentReview": "待確認合約",
- "contractPaymentWeeklyBatches": "週彙總批次"
+ "contractPaymentWeeklyBatches": "週彙總批次",
+ "orderDeliveryReply": "訂單交期回覆"
},
"kb": {
"accessDenied": "需要管理員權限才能存取知識庫。"
@@ -170,6 +171,20 @@
},
"msg": {
"downloadExcelFailed": "下載 Excel 失敗"
+ },
+ "batch": {
+ "selectAll": "Select all notices on this page",
+ "selected": "{count} selected",
+ "download": "Download Excel",
+ "confirm": "Confirm uploaded",
+ "rpa": "Start RPA upload",
+ "downloadStarted": "Downloading the selected shipping-notice Excel files.",
+ "success": "{action}: {count} notice(s) processed.",
+ "partialResult": "{action}: {accepted} accepted and {blocked} blocked. Refresh to see the latest notice status.",
+ "lines": "Lines",
+ "parts": "Parts",
+ "quantities": "Shipment / available",
+ "uploadStatus": "Freight status"
}
},
"receiptReports": {
@@ -968,5 +983,100 @@
"notifyExcel": "Excel",
"downloadExcel": "下載 Excel",
"downloadExcelFailed": "下載 Excel 失敗"
+ },
+ "orderDeliveryReply": {
+ "deepLinkLocated": "已定位到通知對應的訂單行 {order}:{item}",
+ "search": "查詢",
+ "reset": "重置",
+ "saving": "儲存中…",
+ "syncNow": "手動刷新",
+ "syncing": "同步中…",
+ "syncNever": "尚未同步",
+ "syncAt": "最近同步:{time}",
+ "syncRunning": "同步進行中…",
+ "syncFailedAt": "上次同步失敗({time}),列表為上次成功快照",
+ "syncDone": "同步完成,共 {count} 行",
+ "syncSkipped": "已有同步正在進行,請稍後再試",
+ "syncFailedTitle": "同步失敗,已保留上次快照",
+ "filterKeyword": "關鍵詞(訂單 / 產品 / 客戶 / 業務員 / 回覆人員)",
+ "filterKeywordPh": "訂單單號、產品編號、品名、客戶料號、客戶編號、業務員、交期回覆人員均可搜尋",
+ "filterOrderDate": "訂單日期",
+ "filterStatus": "交期回覆狀態",
+ "statusAll": "全部",
+ "statusReplied": "已回覆",
+ "statusNotFully": "未完全回覆",
+ "statusNotReplied": "未回覆",
+ "statusPartial": "部分回覆",
+ "totalCount": "共 {count} 條產品行",
+ "selectAll": "全選(本頁)",
+ "selectedCount": "已勾選 {count} 行",
+ "batchReply": "+ 聯合回覆交期",
+ "batchNotify": "批量通知",
+ "toolbarHint": "聯合回覆只儲存批次;點「批量通知」才發送並鎖定。",
+ "colOrderLine": "訂單單號:項次",
+ "colOrderDate": "訂單日期",
+ "colCustomer": "客戶編號",
+ "colSalesperson": "業務員",
+ "colDept": "部門",
+ "colCustomerPo": "客戶訂單",
+ "colPartNo": "產品編號",
+ "colPartName": "品名",
+ "colSpec": "規格",
+ "colCustomerPartNo": "客戶產品編號",
+ "colAgreedDate": "約定交貨日",
+ "colUnit": "單位",
+ "colQty": "數量",
+ "colDelivered": "已交數量",
+ "colUndelivered": "未交數量",
+ "colStatus": "交期回覆狀態",
+ "colReply": "交期回覆",
+ "colNotify": "通知業務部門",
+ "colReplyPerson": "交期回覆人員",
+ "batchCount": "{count} 批",
+ "repliedOf": "已回覆 {replied}/{remain}",
+ "overTag": "超",
+ "collapse": "收起 ▲",
+ "expand": "+{count} 批 ▾",
+ "lockedTag": "交期已鎖定",
+ "replyAction": "回覆交期",
+ "editReplyAction": "修改回覆",
+ "notifiedTag": "已通知 {name}",
+ "replyFirst": "請先回覆交期",
+ "notifyAction": "發送通知業務部門",
+ "pendingNotify": "待通知後記錄",
+ "empty": "沒有符合條件的訂單行",
+ "pageInfo": "第 {page} / {pages} 頁",
+ "modalTitleSingle": "回覆交期 · {order} / 項次 {item}",
+ "modalTitleBatch": "聯合回覆交期({count} 行)",
+ "quickDate": "快速統一交期",
+ "applyQuickDate": "應用到全部",
+ "modalHint": "可填 1 個交期,或點「增加批次」拆成多個「交期+數量」;各批次數量合計須等於訂單數量。",
+ "itemLabel": "項次 {item}",
+ "qtyPh": "數量",
+ "remarkPh": "備註(可選)",
+ "removeBatch": "刪除本行批次",
+ "addBatch": "+ 增加拆分批次(交期 + 數量 + 備註)",
+ "saveReply": "儲存回覆",
+ "noValidBatches": "請至少為一行填寫交期和數量",
+ "saveSingleDone": "交期批次已儲存(未通知,可繼續修改)",
+ "saveBatchDone": "已儲存 {ok} 行交期批次(未通知)",
+ "saveBatchPartial": "儲存完成:成功 {ok} 行,失敗 {fail} 行:{detail}",
+ "saveFailedTitle": "儲存失敗",
+ "loadFailed": "載入訂單行失敗",
+ "notifyConfirm": "確認向業務員「{salesperson}」發送?\n您有訂單號:項次{order}:{item}的訂單需要填寫/確認/查看交期。\n發送後交期將鎖定。",
+ "notifyDone": "已通知並鎖定:{order}:{item}",
+ "notifyBatchConfirm": "將向 {count} 行對應業務員發送交期通知,發送成功的行將鎖定。繼續?",
+ "notifyPartial": "部分成功:成功 {ok} 行,失敗 {fail} 行,跳過 {skip} 行。失敗:{detail}",
+ "notifyAllFailed": "全部失敗({fail} 行):{detail}",
+ "notifyBatchDone": "已通知並鎖定 {ok} 行,跳過 {skip} 行",
+ "notifyFailedTitle": "通知發送失敗,該行未鎖定",
+ "entryHint": "查單 → 填交期 → 通知業務員",
+ "notNotified": "未通知",
+ "orderQtyLabel": "訂單數量:{qty} {unit}",
+ "batchMissingDate": "第 {batches} 批未填交期",
+ "batchMissingQty": "第 {batches} 批未填數量",
+ "qtyTotalMismatchLine": "各批次合計 {total},須等於訂單數量 {qty}",
+ "saveBlocked": "以下行填寫未完成,無法保存:{detail}",
+ "batchDuplicateDate": "同一訂單單號:項次的不同批次交期時間不能相同(重複:{dates})"
}
}
diff --git a/frontend/src/shared/api/client.ts b/frontend/src/shared/api/client.ts
index 2bffda22..6e8ceab4 100644
--- a/frontend/src/shared/api/client.ts
+++ b/frontend/src/shared/api/client.ts
@@ -122,6 +122,11 @@ export async function requestJson(url: string, init?: RequestInit): Promise headers.set(k, v as string));
+ // 带 body 的请求若未显式声明类型,统一补 JSON 头:否则 Flask get_json(silent=True)
+ // 会因 Content-Type 非 JSON 解析出 None,把有效载荷当空 body 处理(如订单交期回复保存被误判 400)。
+ if (init?.body && !headers.has('Content-Type')) {
+ headers.set('Content-Type', 'application/json');
+ }
const res = await fetch(url, { ...init, headers });
let data: any = null;
diff --git a/frontend/src/shared/utils/auth.ts b/frontend/src/shared/utils/auth.ts
index 5b60cfb8..1eb33020 100644
--- a/frontend/src/shared/utils/auth.ts
+++ b/frontend/src/shared/utils/auth.ts
@@ -6,6 +6,9 @@
*/
export type FeaturePermissions = {
training_hr_manage?: boolean;
+ 'contract_payment.access'?: boolean;
+ 'order_delivery_reply.manage'?: boolean;
+ 'order_delivery_reply.access'?: boolean;
[key: string]: boolean | undefined;
};