Merge branch 'dev' into hugo-shipping-notice

# Conflicts:
#	.env.dev
#	.env.test
#	backend/app/api/__init__.py
#	docs/funclist.md
#	frontend/src/features/chat/composables/useChatPage.ts
This commit is contained in:
hugo committed 2026-07-06 08:35:40 +08:00
commit f72c1c9f0e
101 files changed
+11163 -334

No files matched your search

+63
View File
@@ -28,6 +28,13 @@
"reports": "Data Reports",
"schedules": "Schedule Management"
},
"platformApps": {
"guideUsage": "Guide Usage",
"generalGuide": "General Guide",
"trainingVideo": "Employee Training Video",
"trainingExamPdf": "Employee Training Exam PDF",
"guideUsageHint": "The training workspace will prioritize guides marked as employee training video or employee training exam PDF."
},
"dash": {
"activeAgents": "Active Agents",
"totalUsers": "Total Users",
@@ -85,6 +92,9 @@
"email": "Email",
"department": "Department",
"role": "Role",
"featurePermissions": "Feature Permissions",
"trainingHrManage": "Training HR Admin",
"trainingHrManageHint": "Allows this user to open the employee training agent HR Management view for stats, filtering, and Excel export.",
"password": "Password",
"passwordHint": "(leave blank to keep)",
"noAgents": "No agents available."
@@ -203,6 +213,58 @@
"pollInterval": "Progress refresh interval (seconds)",
"lockInput": "Prevent sending new messages while a task is running",
"scheduleTaskRequired": "Please select a linked schedule first"
},
"training": {
"title": "Employee Training Configuration",
"subtitle": "Configure the training workspace pass line, review points, and question bank. After saving, the employee training page will read this backend content first.",
"enable": "Enable employee training workspace",
"enableHint": "When enabled, this agent uses the training flow of video, review, exam, and settlement.",
"disabledHint": "When disabled, this agent will not show the employee training workspace. Existing training content remains stored in the backend.",
"passScore": "Passing score",
"passScoreHint": "The frontend exam and result copy both use this percentage score as the pass line.",
"summaryPoints": "Review points",
"summaryPointsPlaceholder": "One item per line, for example: Salary is paid on the 15th of each month",
"summaryChecklist": "Must know before the exam",
"summaryChecklistPlaceholder": "One item per line, for example: Scores below 90 require a retake",
"questionBank": "Question bank",
"questionHint": "Supports single choice and true or false questions. Employees will use the updated bank immediately after saving.",
"emptyQuestionBank": "No question bank configured yet. The employee view will fall back to the default bank.",
"importFromPdf": "Import From Exam PDF",
"importingPdf": "Parsing PDF...",
"importPdfHint": "The system will parse the uploaded exam PDF \"{fileName}\" first. You can still review and edit the result manually after import.",
"importPdfMissing": "This agent does not have any uploaded guide marked as Employee Training Exam PDF yet. Please upload it first in Platform App Guides.",
"importPdfCreateFirst": "Please save this agent first, then import the question bank from an uploaded exam PDF.",
"importPdfAgentRequired": "Please save this agent first before importing the exam PDF",
"importPdfSuccess": "Imported {count} questions from \"{fileName}\"",
"importPdfPartialSuccess": "Imported {count} questions. These question numbers were skipped: {skipped}",
"importPdfOcrUsed": "This import was completed through OCR. Please review the prompts, options, and answers carefully.",
"importPdfOcrFallback": "Native PDF text parsing failed, so the import automatically fell back to OCR. Please review the prompts, options, and answers carefully.",
"importPdfWarnings": "Parsing notes: {warnings}",
"addQuestion": "Add question",
"removeQuestion": "Remove question",
"questionCardTitle": "Question {index}",
"questionId": "Question ID",
"questionIdPlaceholder": "For example: q1",
"questionType": "Question type",
"single": "Single choice",
"boolean": "True or false",
"correctAnswer": "Correct answer",
"booleanTrue": "True",
"booleanFalse": "False",
"questionPrompt": "Prompt",
"questionPromptPlaceholder": "Enter the question content",
"questionExplanation": "Explanation",
"questionExplanationPlaceholder": "Enter the explanation shown to the learner after answering",
"questionOptions": "Options",
"addOption": "Add option",
"optionLabel": "Option {label}",
"optionPlaceholder": "Enter option text",
"validation": {
"questionRequired": "Please configure at least one training question",
"questionPromptRequired": "Question {index} prompt is required",
"questionSingleOptions": "Question {index} needs at least 2 valid options",
"questionAnswerRequired": "Please choose the correct answer for question {index}"
}
}
},
"question": {
@@ -1023,6 +1085,7 @@
},
"role": {
"user": "User",
"hr": "HR",
"admin": "Admin",
"guest": "Guest"
},
+27 -9
View File
@@ -471,8 +471,8 @@
}
},
"training": {
"badge": "Onboarding Training Workspace",
"title": "Onboarding Training Agent",
"badge": "Employee Training Workspace",
"title": "",
"subtitle": "Complete video learning, knowledge review, one-question-at-a-time testing, and HR reporting in the same chat page.",
"tabs": {
"learner": "Learner",
@@ -482,7 +482,8 @@
"syncLearnerToChat": "Sync learner context to chat",
"syncHrToChat": "Sync HR filters to chat",
"expandWorkspace": "Expand workspace",
"collapseWorkspace": "Collapse workspace"
"collapseWorkspace": "Collapse Workspace",
"viewExamPdf": "View Exam PDF"
},
"steps": {
"video": "Watch Video",
@@ -514,7 +515,7 @@
"title": "Step 3: One-question-at-a-time exam",
"questionCounter": "Question {current} / {total}",
"currentScore": "Current score: {score}",
"passLine": "Pass line: 90 points",
"passLine": "Pass line: {passScore} points",
"correctFeedback": "Correct. Move on to the next question.",
"wrongFeedback": "Incorrect. The correct answer is now shown.",
"selectedAnswer": "Your answer: {answer}",
@@ -527,8 +528,8 @@
"failedTag": "Retake required",
"passTitle": "Congratulations, you passed the onboarding exam",
"failTitle": "This attempt did not meet the requirement",
"passDescription": "The frontend pass-state interaction is complete. Once the backend is connected, it can write training records and the completion date.",
"failDescription": "According to HR rules, any score below 90 requires a full retake until the learner passes.",
"passDescription": "You passed this exam successfully. The score is automatically synced to the HR console and saved into the training record.",
"failDescription": "According to HR rules, any score below {passScore} requires a full retake until the learner passes.",
"scoreLabel": "Final score",
"attemptsLabel": "Attempts",
"correctCount": "Correct answers",
@@ -545,9 +546,9 @@
},
"rules": {
"title": "Exam rules",
"rule1": "There are 20 questions, 5 points each, with a full score of 100.",
"rule1": "There are {total} questions, and the system calculates the result on a 100-point scale.",
"rule2": "The system enforces one question, one answer, one feedback. Wrong answers show the correct answer immediately.",
"rule3": "Any score below 90 is treated as failed and requires a retake.",
"rule3": "Any score below {passScore} is treated as failed and requires a retake.",
"rule4": "HR can view statistics and export Excel from the same chat page."
},
"hr": {
@@ -594,7 +595,24 @@
"afterSummary": "I finished reviewing the knowledge points. Please switch to exam mode and ask the first question.",
"afterPass": "I passed the onboarding training exam with a score of {score}. Please help me generate a short completion summary.",
"afterFail": "I scored {score} in the onboarding training exam and did not pass. Please summarize the weak points and prepare a retake reminder.",
"examInProgress": "I am taking the onboarding training exam and am currently on question {index}/{total}. Please stay in proctor mode and continue."
"examInProgress": "I am taking the onboarding training exam and am currently on question {index}/{total}. Please stay in proctor mode and continue.",
"assistantVideoIntro": "👋 Welcome aboard! I am your onboarding training assistant. Today's training has three steps: watch the video ➡️ review the key knowledge points ➡️ take the quiz ({passScore} points to pass).\n\n▶️ Please start with the onboarding training video. After watching it, move on to the knowledge review.",
"assistantSummaryIntro": "Great. Based on the video, I pulled together the key knowledge points you are most likely to be tested on:",
"assistantSummaryReady": "Ready for the challenge? Click Start Exam directly or reply \"Start Exam\" in the chat.",
"assistantQuestionSingleType": "Single choice",
"assistantQuestionBooleanType": "True or false",
"assistantQuestionReplyHint": "Reply with the option or the answer text directly.",
"assistantResultPass": "🎉 **Congratulations!** Your final score is **{score}**. You passed the onboarding assessment, and your score has been synced to HR automatically.",
"assistantResultFail": "📊 **Exam finished!** Your final score is **{score}**. The passing line is {passScore}. Reply \"Retake Exam\" to try again.",
"startExamCommand": "Start Exam",
"restartExamCommand": "Retake Exam"
},
"errors": {
"persistTitle": "Training record save failed",
"persistBody": "The current exam result has not been written to the database, so the HR console and statistics will not update",
"loadTitle": "Training record load failed",
"loadBody": "The training record cannot be loaded from the database right now, so the page may not reflect the latest result",
"questionBankEmpty": "The training question bank is empty. Please maintain it first in the Agent configuration."
},
"summaryPoints": [
"Salary is paid on the 15th of each month, and attendance or leave requests must go through OA.",
+184
View File
@@ -0,0 +1,184 @@
{
"ledger": {
"notice": "This page manages the equipment ledger.",
"tabs": {
"list": "Equipment List",
"form": "Equipment Config"
},
"status": {
"all": "All Statuses",
"inUse": "In Use",
"disabled": "Disabled",
"scrapped": "Scrapped",
"sold": "Sold"
},
"formTitle": {
"create": "Add Equipment",
"edit": "Edit Equipment"
},
"actions": {
"search": "Search",
"create": "Add Equipment",
"downloadTemplate": "Download Template",
"importExcel": "Import Excel",
"importing": "Importing...",
"edit": "Edit",
"backToList": "Back to List",
"cancel": "Cancel",
"save": "Save",
"saving": "Saving..."
},
"filters": {
"keywordPlaceholder": "Search equipment code or name"
},
"table": {
"deviceCode": "Equipment Code",
"deviceName": "Equipment Name",
"modelSpec": "Model/Spec",
"manufacturer": "Vendor",
"status": "Status",
"operation": "Actions",
"loading": "Loading...",
"empty": "No equipment"
},
"fields": {
"deviceCode": "Equipment Code",
"deviceName": "Equipment Name",
"modelSpec": "Model/Spec",
"department": "Department",
"devicePosition": "Equipment Position",
"deviceStatus": "Equipment Status",
"manufacturer": "Manufacturer",
"responsibleUser": "Responsible Person",
"entryDate": "Entry Date",
"productionDate": "Production Date",
"startDate": "Start Date",
"maintenanceCycle": "Maintenance Cycle",
"originalValue": "Original Value",
"residualValue": "Residual Value",
"accountSet": "Account Set",
"remark": "Remark"
},
"placeholder": {
"maintenanceCycle": "On demand / Monthly inspection"
},
"messages": {
"required": "Equipment code and name are required",
"saved": "Equipment ledger saved",
"saveFailed": "Failed to save equipment ledger",
"loadFailed": "Failed to load equipment ledger",
"invalidFormat": "Please upload a .xlsx equipment ledger template",
"fileTooLarge": "The equipment ledger file cannot exceed 10MB",
"importDone": "Equipment ledger import completed",
"importFailed": "Failed to import equipment ledger"
},
"importResult": "Import result: {total} rows, {created} created, {updated} updated, {failed} failed.",
"importErrorRow": "Row {row}: {message}"
},
"panel": {
"recordTitle": "Maintenance Records",
"ledgerTitle": "Ledger Config",
"adminOnly": "Admin actions: asset admins / maintenance supervisors only",
"resizeTitle": "Drag to resize",
"ledgerSubtitle": "Equipment List / Equipment Config",
"recordSubtitle": "Record List / Record Config",
"fullscreen": "Fullscreen",
"exitFullscreen": "Exit fullscreen",
"close": "Close"
},
"record": {
"notice": "Maintenance records are for administrators to maintain repair requests, handling, costs, and labor hours. General queries can still be completed in chat.",
"tabs": {
"list": "Record List",
"form": "Record Config"
},
"status": {
"all": "All Statuses",
"pending": "Pending",
"processing": "In Repair",
"done": "Completed",
"cancelled": "Cancelled"
},
"formTitle": {
"create": "Add Maintenance Record",
"edit": "Edit Maintenance Record"
},
"actions": {
"search": "Search",
"create": "Add Record",
"export": "Export",
"exporting": "Exporting...",
"edit": "Edit",
"delete": "Delete",
"deleting": "Deleting...",
"backToList": "Back to List",
"cancel": "Cancel",
"save": "Save Record",
"saving": "Saving..."
},
"filters": {
"keywordPlaceholder": "Search equipment code or name"
},
"table": {
"deviceCode": "Equipment Code",
"deviceName": "Equipment Name",
"modelSpec": "Model/Spec",
"faultDescription": "Fault Description",
"status": "Status",
"repairer": "Repairer",
"operation": "Actions",
"loading": "Loading...",
"empty": "No maintenance records"
},
"fields": {
"deviceCode": "Equipment Code",
"reportDate": "Report Date",
"repairCategory": "Repair Category",
"repairStatus": "Repair Status",
"faultDescription": "Fault Description",
"reporter": "Reporter",
"approver": "Approver",
"repairDate": "Repair Date",
"sourceOrderNo": "Source Work Order No.",
"repairUnit": "Repair Unit",
"repairer": "Repairer",
"repairCost": "Repair Cost",
"repairHours": "Repair Hours",
"repairDescription": "Repair Notes"
},
"placeholder": {
"deviceCode": "e.g. EQ-2026-001",
"repairCategory": "Daily repair / Maintenance / Inspection",
"repairCost": "e.g. 1200.00",
"repairHours": "e.g. 3.5h"
},
"deviceSnapshot": {
"loading": "Querying equipment ledger...",
"position": "Position",
"department": "Department",
"responsibleUser": "Responsible Person",
"status": "Status",
"empty": "Enter an equipment code to match an equipment ledger snapshot automatically."
},
"messages": {
"loadFailed": "Failed to query maintenance records",
"exported": "Maintenance records exported",
"exportFailed": "Failed to export maintenance records",
"deviceLoadFailed": "Failed to query equipment ledger",
"required": "Equipment code, report date, and fault description are required",
"updated": "Maintenance record updated",
"created": "Maintenance record added",
"saveFailed": "Failed to save maintenance record",
"deleteConfirm": "Delete the maintenance record for {deviceCode}?",
"deleted": "Maintenance record deleted",
"deleteFailed": "Failed to delete maintenance record"
}
},
"chat": {
"deviceLedgerInfo": "Equipment Ledger Info",
"matched": "Matched",
"recentRecords": "Recent maintenance records ({count})",
"viewRepairHistory": "View Repair History",
"addRepairRecord": "Add Repair Record"
}
}
+8
View File
@@ -50,6 +50,10 @@ import enTheme from './en/theme.json';
import zhCNTheme from './zh-CN/theme.json';
import zhTWTheme from './zh-TW/theme.json';
import thTheme from './th/theme.json';
import enMaintenance from './en/maintenance.json';
import zhCNMaintenance from './zh-CN/maintenance.json';
import zhTWMaintenance from './zh-TW/maintenance.json';
import thMaintenance from './th/maintenance.json';
/** 已外置的 locale 域模块;auth / kb 展平至顶层以匹配原有键路径 */
const externalModules: Record<string, Record<string, unknown>> = {
@@ -66,6 +70,7 @@ const externalModules: Record<string, Record<string, unknown>> = {
profile: enProfile,
feedback: enFeedback,
theme: enTheme,
maintenance: enMaintenance,
},
'zh-CN': {
errors: zhCNErrors,
@@ -80,6 +85,7 @@ const externalModules: Record<string, Record<string, unknown>> = {
profile: zhCNProfile,
feedback: zhCNFeedback,
theme: zhCNTheme,
maintenance: zhCNMaintenance,
},
'zh-TW': {
errors: zhTWErrors,
@@ -94,6 +100,7 @@ const externalModules: Record<string, Record<string, unknown>> = {
profile: zhTWProfile,
feedback: zhTWFeedback,
theme: zhTWTheme,
maintenance: zhTWMaintenance,
},
th: {
errors: thErrors,
@@ -108,6 +115,7 @@ const externalModules: Record<string, Record<string, unknown>> = {
profile: thProfile,
feedback: thFeedback,
theme: thTheme,
maintenance: thMaintenance,
},
};
+63
View File
@@ -28,6 +28,13 @@
"reports": "รายงานข้อมูล",
"schedules": "Schedule Management"
},
"platformApps": {
"guideUsage": "ประเภทการใช้งานเอกสาร",
"generalGuide": "คู่มือทั่วไป",
"trainingVideo": "วิดีโออบรมพนักงาน",
"trainingExamPdf": "PDF ข้อสอบอบรมพนักงาน",
"guideUsageHint": "พื้นที่อบรมจะให้ความสำคัญกับเอกสารที่ทำเครื่องหมายเป็นวิดีโออบรมพนักงานหรือ PDF ข้อสอบอบรมพนักงานก่อน"
},
"dash": {
"activeAgents": "ตัวแทนที่ใช้งานอยู่",
"totalUsers": "ผู้ใช้ทั้งหมด",
@@ -85,6 +92,9 @@
"email": "อีเมล",
"department": "แผนก",
"role": "บทบาท",
"featurePermissions": "สิทธิ์ฟีเจอร์",
"trainingHrManage": "จัดการ HR การฝึกอบรม",
"trainingHrManageHint": "เมื่อเปิดแล้ว ผู้ใช้นี้จะเข้าใช้มุมมอง HR 管理 ใน employee training agent เพื่อดูสถิติ คัดกรองข้อมูล และส่งออก Excel ได้",
"password": "รหัสผ่าน",
"passwordHint": "(เว้นว่างไว้หากไม่ต้องการเปลี่ยน)",
"noAgents": "ไม่มีตัวแทนที่ใช้ได้"
@@ -203,6 +213,58 @@
"pollInterval": "ช่วงรีเฟรชความคืบหน้า (วินาที)",
"lockInput": "ห้ามส่งข้อความใหม่ขณะงานกำลังทำงาน",
"scheduleTaskRequired": "โปรดเลือกตารางงานที่เชื่อมก่อน"
},
"training": {
"title": "การตั้งค่าการอบรมพนักงาน",
"subtitle": "กำหนดคะแนนผ่าน ประเด็นทบทวน และคลังข้อสอบของ workspace การอบรม หลังบันทึกแล้ว หน้าการอบรมพนักงานจะอ่านค่าจาก backend นี้ก่อน",
"enable": "เปิดใช้ workspace การอบรมพนักงาน",
"enableHint": "เมื่อเปิดใช้ Agent นี้จะใช้ลำดับวิดีโอ ทบทวน สอบ และสรุปผล",
"disabledHint": "เมื่อปิดใช้ Agent นี้จะไม่แสดง workspace การอบรมพนักงาน แต่ข้อมูลการอบรมที่กรอกไว้จะยังคงอยู่ใน backend",
"passScore": "คะแนนผ่าน",
"passScoreHint": "ข้อสอบหน้าเว็บและข้อความผลลัพธ์จะใช้คะแนนเปอร์เซ็นต์นี้เป็นเกณฑ์ผ่าน",
"summaryPoints": "ประเด็นทบทวน",
"summaryPointsPlaceholder": "หนึ่งบรรทัดต่อหนึ่งข้อ เช่น เงินเดือนจ่ายทุกวันที่ 15",
"summaryChecklist": "สิ่งที่ต้องรู้ก่อนสอบ",
"summaryChecklistPlaceholder": "หนึ่งบรรทัดต่อหนึ่งข้อ เช่น คะแนนต่ำกว่า 90 ต้องสอบใหม่",
"questionBank": "คลังข้อสอบ",
"questionHint": "รองรับข้อสอบแบบปรนัยและถูกหรือผิด หลังบันทึกแล้วพนักงานจะใช้ชุดข้อสอบใหม่นี้ทันที",
"emptyQuestionBank": "ยังไม่ได้ตั้งค่าคลังข้อสอบ ฝั่งพนักงานจะใช้คลังข้อสอบเริ่มต้นแทน",
"importFromPdf": "นำเข้าจาก PDF ข้อสอบ",
"importingPdf": "กำลังแปลง PDF...",
"importPdfHint": "ระบบจะใช้ไฟล์ PDF ข้อสอบ \"{fileName}\" ที่อัปโหลดไว้เพื่อแปลงเป็นคลังข้อสอบก่อน และยังแก้ไขต่อด้วยมือได้",
"importPdfMissing": "Agent นี้ยังไม่มีไฟล์ที่ถูกทำเครื่องหมายเป็น PDF ข้อสอบอบรมพนักงาน กรุณาอัปโหลดก่อนในหน้าคู่มือแอป",
"importPdfCreateFirst": "กรุณาบันทึก Agent นี้ก่อน แล้วจึงนำเข้าคลังข้อสอบจาก PDF ที่อัปโหลดไว้",
"importPdfAgentRequired": "กรุณาบันทึก Agent นี้ก่อน แล้วจึงนำเข้า PDF ข้อสอบ",
"importPdfSuccess": "นำเข้า {count} ข้อจาก \"{fileName}\" แล้ว",
"importPdfPartialSuccess": "นำเข้าได้ {count} ข้อ และข้อต่อไปนี้ไม่สามารถแปลงได้: {skipped}",
"importPdfOcrUsed": "การนำเข้าครั้งนี้เสร็จสิ้นด้วย OCR กรุณาตรวจทานโจทย์ ตัวเลือก และคำตอบอย่างละเอียด",
"importPdfOcrFallback": "การแยกข้อความจาก PDF แบบปกติล้มเหลว ระบบจึงสลับไปใช้ OCR อัตโนมัติ กรุณาตรวจทานโจทย์ ตัวเลือก และคำตอบอย่างละเอียด",
"importPdfWarnings": "หมายเหตุการแปลง: {warnings}",
"addQuestion": "เพิ่มข้อสอบ",
"removeQuestion": "ลบข้อสอบ",
"questionCardTitle": "ข้อสอบ {index}",
"questionId": "รหัสข้อสอบ",
"questionIdPlaceholder": "เช่น q1",
"questionType": "ประเภทข้อสอบ",
"single": "ปรนัย",
"boolean": "ถูกหรือผิด",
"correctAnswer": "คำตอบที่ถูกต้อง",
"booleanTrue": "ถูก",
"booleanFalse": "ผิด",
"questionPrompt": "คำถาม",
"questionPromptPlaceholder": "กรอกข้อความคำถาม",
"questionExplanation": "คำอธิบาย",
"questionExplanationPlaceholder": "กรอกคำอธิบายที่จะแสดงให้พนักงานหลังตอบ",
"questionOptions": "ตัวเลือก",
"addOption": "เพิ่มตัวเลือก",
"optionLabel": "ตัวเลือก {label}",
"optionPlaceholder": "กรอกข้อความตัวเลือก",
"validation": {
"questionRequired": "กรุณาตั้งค่าข้อสอบการอบรมอย่างน้อย 1 ข้อ",
"questionPromptRequired": "ข้อ {index} ต้องกรอกคำถาม",
"questionSingleOptions": "ข้อ {index} ต้องมีตัวเลือกที่ใช้ได้อย่างน้อย 2 ตัวเลือก",
"questionAnswerRequired": "กรุณาเลือกคำตอบที่ถูกต้องของข้อ {index}"
}
}
},
"question": {
@@ -882,6 +944,7 @@
},
"role": {
"user": "ผู้ใช้ทั่วไป",
"hr": "HR",
"admin": "ผู้ดูแลระบบ",
"guest": "ผู้เยี่ยมชม"
},
+27 -9
View File
@@ -471,8 +471,8 @@
}
},
"training": {
"badge": "พื้นที่อบรมพนักงานใหม่",
"title": "Onboarding Training Agent",
"badge": "พื้นที่อบรมพนักงาน",
"title": "",
"subtitle": "ทำวิดีโอเรียนรู้ ทบทวนความรู้ สอบทีละข้อ และดูสถิติ HR ได้ในหน้าแชตเดียวกัน",
"tabs": {
"learner": "ผู้เรียน",
@@ -482,7 +482,8 @@
"syncLearnerToChat": "ส่งบริบทผู้เรียนเข้าแชต",
"syncHrToChat": "ส่งตัวกรอง HR เข้าแชต",
"expandWorkspace": "ขยายพื้นที่ทำงาน",
"collapseWorkspace": "ย่อพื้นที่ทำงาน"
"collapseWorkspace": "ย่อพื้นที่ทำงาน",
"viewExamPdf": "ดู PDF ข้อสอบ"
},
"steps": {
"video": "ดูวิดีโอ",
@@ -514,7 +515,7 @@
"title": "ขั้นตอน 3: สอบทีละข้อ",
"questionCounter": "ข้อ {current} / {total}",
"currentScore": "คะแนนปัจจุบัน: {score}",
"passLine": "ผ่านเมื่อได้ 90 คะแนน",
"passLine": "เกณฑ์ผ่าน: {passScore} คะแนน",
"correctFeedback": "ตอบถูก ไปข้อถัดไปได้",
"wrongFeedback": "ตอบผิด ระบบแสดงคำตอบที่ถูกต้องแล้ว",
"selectedAnswer": "คำตอบของคุณ: {answer}",
@@ -527,8 +528,8 @@
"failedTag": "ต้องสอบใหม่",
"passTitle": "ยินดีด้วย คุณผ่านการสอบอบรมพนักงานใหม่แล้ว",
"failTitle": "การสอบครั้งนี้ยังไม่ผ่านเกณฑ์",
"passDescription": "ฝั่งหน้าเว็บรองรับสถานะผ่านแล้ว และสามารถเชื่อมต่อหลังบ้านเพื่อบันทึกผลได้ในขั้นถัดไป",
"failDescription": "ตามกฎของ HR หากได้ต่ำกว่า 90 คะแนน ต้องสอบใหม่จนกว่าจะผ่าน",
"passDescription": "คุณผ่านการสอบครั้งนี้แล้ว ระบบจะซิงก์คะแนนไปยังหน้าจอ HR และบันทึกลงประวัติการอบรมโดยอัตโนมัติ",
"failDescription": "ตามกฎของ HR หากได้ต่ำกว่า {passScore} คะแนน ต้องสอบใหม่จนกว่าจะผ่าน",
"scoreLabel": "คะแนนสุดท้าย",
"attemptsLabel": "จำนวนครั้งที่สอบ",
"correctCount": "จำนวนข้อที่ถูก",
@@ -545,9 +546,9 @@
},
"rules": {
"title": "กติกาการสอบ",
"rule1": "มีทั้งหมด 20 ข้อ ข้อละ 5 คะแนน เต็ม 100 คะแนน",
"rule1": "มีทั้งหมด {total} ข้อ และระบบจะคำนวณผลสอบบนสเกล 100 คะแนน",
"rule2": "ระบบทำงานแบบหนึ่งข้อหนึ่งคำตอบหนึ่งฟีดแบ็ก และจะแสดงคำตอบที่ถูกเมื่อผู้ใช้ตอบผิด",
"rule3": "หากได้ต่ำกว่า 90 คะแนน ถือว่าไม่ผ่านและต้องสอบใหม่",
"rule3": "หากได้ต่ำกว่า {passScore} คะแนน ถือว่าไม่ผ่านและต้องสอบใหม่",
"rule4": "HR สามารถดูสถิติและส่งออก Excel ได้จากหน้าแชตเดียวกัน"
},
"hr": {
@@ -594,7 +595,24 @@
"afterSummary": "ฉันทบทวนความรู้เสร็จแล้ว โปรดเริ่มโหมดสอบและถามข้อแรก",
"afterPass": "ฉันผ่านการสอบอบรมพนักงานใหม่ด้วยคะแนน {score} โปรดช่วยสรุปการอบรมให้สั้น ๆ",
"afterFail": "ฉันได้คะแนน {score} ในการสอบอบรมพนักงานใหม่และยังไม่ผ่าน โปรดสรุปจุดอ่อนและเตือนให้สอบใหม่",
"examInProgress": "ฉันกำลังสอบอบรมพนักงานใหม่ ตอนนี้อยู่ที่ข้อ {index}/{total} โปรดทำหน้าที่เป็นผู้คุมสอบและถามต่อ"
"examInProgress": "ฉันกำลังสอบอบรมพนักงานใหม่ ตอนนี้อยู่ที่ข้อ {index}/{total} โปรดทำหน้าที่เป็นผู้คุมสอบและถามต่อ",
"assistantVideoIntro": "👋 ยินดีต้อนรับสู่บริษัท! ฉันคือผู้ช่วยอบรมพนักงานใหม่ของคุณ วันนี้มี 3 ขั้นตอนคือ ดูวิดีโอ ➡️ ทบทวนความรู้ ➡️ ทำแบบทดสอบ (ผ่านที่ {passScore} คะแนน)\n\n▶️ โปรดเริ่มจากการดูวิดีโออบรมพนักงานใหม่ แล้วจึงเข้าสู่ช่วงทบทวนความรู้",
"assistantSummaryIntro": "ยอดเยี่ยม จากวิดีโอเมื่อครู่นี้ ฉันสรุปประเด็นสำคัญที่มีโอกาสออกสอบไว้ให้แล้ว:",
"assistantSummaryReady": "พร้อมรับความท้าทายหรือยัง? กดเริ่มสอบได้เลย หรือพิมพ์ \"เริ่มสอบ\" ในแชตก็ได้",
"assistantQuestionSingleType": "ปรนัย",
"assistantQuestionBooleanType": "ถูกหรือผิด",
"assistantQuestionReplyHint": "ตอบด้วยตัวเลือกหรือข้อความคำตอบได้โดยตรง",
"assistantResultPass": "🎉 **ยินดีด้วย!** คุณได้คะแนนสุดท้าย **{score}** และผ่านการประเมินพนักงานใหม่แล้ว ระบบได้ซิงก์คะแนนไปยัง HR โดยอัตโนมัติ",
"assistantResultFail": "📊 **สอบเสร็จแล้ว!** คะแนนสุดท้ายของคุณคือ **{score}** เกณฑ์ผ่านคือ {passScore} คะแนน พิมพ์ \"สอบใหม่\" เพื่อเริ่มอีกครั้ง",
"startExamCommand": "เริ่มสอบ",
"restartExamCommand": "สอบใหม่"
},
"errors": {
"persistTitle": "บันทึกประวัติการอบรมไม่สำเร็จ",
"persistBody": "ผลสอบปัจจุบันยังไม่ได้เขียนลงฐานข้อมูล ดังนั้นหน้าจอ HR และสถิติจะไม่อัปเดต",
"loadTitle": "โหลดประวัติการอบรมไม่สำเร็จ",
"loadBody": "ไม่สามารถอ่านประวัติการอบรมจากฐานข้อมูลได้ในขณะนี้ ดังนั้นหน้าปัจจุบันอาจไม่ใช่ผลล่าสุด",
"questionBankEmpty": "คลังข้อสอบการอบรมว่างอยู่ โปรดตั้งค่าใน Agent configuration ก่อน"
},
"summaryPoints": [
"เงินเดือนจ่ายทุกวันที่ 15 ของเดือน และการลาหรือการลงเวลาต้องทำผ่าน OA",
+184
View File
@@ -0,0 +1,184 @@
{
"ledger": {
"notice": "หน้านี้ใช้สำหรับจัดการทะเบียนอุปกรณ์",
"tabs": {
"list": "รายการอุปกรณ์",
"form": "ตั้งค่าอุปกรณ์"
},
"status": {
"all": "ทุกสถานะ",
"inUse": "ใช้งานอยู่",
"disabled": "หยุดใช้",
"scrapped": "เลิกใช้",
"sold": "ขายแล้ว"
},
"formTitle": {
"create": "เพิ่มอุปกรณ์",
"edit": "แก้ไขอุปกรณ์"
},
"actions": {
"search": "ค้นหา",
"create": "เพิ่มอุปกรณ์",
"downloadTemplate": "ดาวน์โหลดเทมเพลต",
"importExcel": "นำเข้า Excel",
"importing": "กำลังนำเข้า...",
"edit": "แก้ไข",
"backToList": "กลับไปรายการ",
"cancel": "ยกเลิก",
"save": "บันทึก",
"saving": "กำลังบันทึก..."
},
"filters": {
"keywordPlaceholder": "ค้นหารหัสอุปกรณ์หรือชื่ออุปกรณ์"
},
"table": {
"deviceCode": "รหัสอุปกรณ์",
"deviceName": "ชื่ออุปกรณ์",
"modelSpec": "รุ่น/สเปก",
"manufacturer": "ผู้ขาย",
"status": "สถานะ",
"operation": "การดำเนินการ",
"loading": "กำลังโหลด...",
"empty": "ไม่มีอุปกรณ์"
},
"fields": {
"deviceCode": "รหัสอุปกรณ์",
"deviceName": "ชื่ออุปกรณ์",
"modelSpec": "รุ่น/สเปก",
"department": "แผนกที่ใช้",
"devicePosition": "ตำแหน่งอุปกรณ์",
"deviceStatus": "สถานะอุปกรณ์",
"manufacturer": "ผู้ผลิต",
"responsibleUser": "ผู้รับผิดชอบ",
"entryDate": "วันที่เข้าโรงงาน",
"productionDate": "วันที่ผลิต",
"startDate": "วันที่เริ่มใช้",
"maintenanceCycle": "รอบการบำรุงรักษา",
"originalValue": "มูลค่าเดิม",
"residualValue": "มูลค่าคงเหลือ",
"accountSet": "ชุดบัญชี",
"remark": "หมายเหตุ"
},
"placeholder": {
"maintenanceCycle": "ซ่อมตามต้องการ / ตรวจรายเดือน"
},
"messages": {
"required": "ต้องระบุรหัสอุปกรณ์และชื่ออุปกรณ์",
"saved": "บันทึกทะเบียนอุปกรณ์แล้ว",
"saveFailed": "บันทึกทะเบียนอุปกรณ์ไม่สำเร็จ",
"loadFailed": "โหลดทะเบียนอุปกรณ์ไม่สำเร็จ",
"invalidFormat": "โปรดอัปโหลดเทมเพลตทะเบียนอุปกรณ์รูปแบบ .xlsx",
"fileTooLarge": "ไฟล์ทะเบียนอุปกรณ์ต้องไม่เกิน 10MB",
"importDone": "นำเข้าทะเบียนอุปกรณ์เสร็จสิ้น",
"importFailed": "นำเข้าทะเบียนอุปกรณ์ไม่สำเร็จ"
},
"importResult": "ผลการนำเข้า: ทั้งหมด {total} รายการ, เพิ่ม {created}, อัปเดต {updated}, ล้มเหลว {failed}",
"importErrorRow": "แถว {row}: {message}"
},
"panel": {
"recordTitle": "บันทึกซ่อมบำรุง",
"ledgerTitle": "ตั้งค่าทะเบียน",
"adminOnly": "งานผู้ดูแล: ใช้ได้เฉพาะผู้ดูแลทรัพย์สิน / หัวหน้าซ่อมบำรุง",
"resizeTitle": "ลากเพื่อปรับความกว้าง",
"ledgerSubtitle": "รายการอุปกรณ์ / ตั้งค่าอุปกรณ์",
"recordSubtitle": "รายการบันทึก / ตั้งค่าบันทึก",
"fullscreen": "เต็มหน้าจอ",
"exitFullscreen": "ออกจากเต็มหน้าจอ",
"close": "ปิด"
},
"record": {
"notice": "บันทึกซ่อมบำรุงใช้สำหรับผู้ดูแลในการดูแลการแจ้งซ่อม การดำเนินการ ค่าใช้จ่าย และชั่วโมงงาน ส่วนการค้นหาทั่วไปยังทำผ่านแชทได้",
"tabs": {
"list": "รายการบันทึก",
"form": "ตั้งค่าบันทึก"
},
"status": {
"all": "ทุกสถานะ",
"pending": "รอซ่อม",
"processing": "กำลังซ่อม",
"done": "เสร็จสิ้น",
"cancelled": "ยกเลิกแล้ว"
},
"formTitle": {
"create": "เพิ่มบันทึกซ่อมบำรุง",
"edit": "แก้ไขบันทึกซ่อมบำรุง"
},
"actions": {
"search": "ค้นหา",
"create": "เพิ่มบันทึก",
"export": "ส่งออก",
"exporting": "กำลังส่งออก...",
"edit": "แก้ไข",
"delete": "ลบ",
"deleting": "กำลังลบ...",
"backToList": "กลับไปรายการ",
"cancel": "ยกเลิก",
"save": "บันทึก",
"saving": "กำลังบันทึก..."
},
"filters": {
"keywordPlaceholder": "ค้นหารหัสอุปกรณ์หรือชื่ออุปกรณ์"
},
"table": {
"deviceCode": "รหัสอุปกรณ์",
"deviceName": "ชื่ออุปกรณ์",
"modelSpec": "รุ่น/สเปก",
"faultDescription": "รายละเอียดปัญหา",
"status": "สถานะ",
"repairer": "ผู้ซ่อม",
"operation": "การดำเนินการ",
"loading": "กำลังโหลด...",
"empty": "ไม่มีบันทึกซ่อมบำรุง"
},
"fields": {
"deviceCode": "รหัสอุปกรณ์",
"reportDate": "วันที่แจ้งซ่อม",
"repairCategory": "ประเภทการซ่อม",
"repairStatus": "สถานะการซ่อม",
"faultDescription": "รายละเอียดปัญหา",
"reporter": "ผู้แจ้ง",
"approver": "ผู้อนุมัติ",
"repairDate": "วันที่ซ่อม",
"sourceOrderNo": "เลขที่ใบงานต้นทาง",
"repairUnit": "หน่วยงานซ่อม",
"repairer": "ผู้ซ่อม",
"repairCost": "ค่าซ่อม",
"repairHours": "ชั่วโมงซ่อม",
"repairDescription": "หมายเหตุการซ่อม"
},
"placeholder": {
"deviceCode": "เช่น EQ-2026-001",
"repairCategory": "ซ่อมทั่วไป / บำรุงรักษา / ตรวจเช็ก",
"repairCost": "เช่น 1200.00",
"repairHours": "เช่น 3.5h"
},
"deviceSnapshot": {
"loading": "กำลังค้นหาทะเบียนอุปกรณ์...",
"position": "ตำแหน่ง",
"department": "แผนก",
"responsibleUser": "ผู้รับผิดชอบ",
"status": "สถานะ",
"empty": "กรอกรหัสอุปกรณ์เพื่อจับคู่ข้อมูลทะเบียนอุปกรณ์อัตโนมัติ"
},
"messages": {
"loadFailed": "ค้นหาบันทึกซ่อมบำรุงไม่สำเร็จ",
"exported": "ส่งออกบันทึกซ่อมบำรุงแล้ว",
"exportFailed": "ส่งออกบันทึกซ่อมบำรุงไม่สำเร็จ",
"deviceLoadFailed": "ค้นหาทะเบียนอุปกรณ์ไม่สำเร็จ",
"required": "ต้องระบุรหัสอุปกรณ์ วันที่แจ้งซ่อม และรายละเอียดปัญหา",
"updated": "อัปเดตบันทึกซ่อมบำรุงแล้ว",
"created": "เพิ่มบันทึกซ่อมบำรุงแล้ว",
"saveFailed": "บันทึกข้อมูลซ่อมบำรุงไม่สำเร็จ",
"deleteConfirm": "ลบบันทึกซ่อมบำรุงของ {deviceCode} หรือไม่?",
"deleted": "ลบบันทึกซ่อมบำรุงแล้ว",
"deleteFailed": "ลบบันทึกซ่อมบำรุงไม่สำเร็จ"
}
},
"chat": {
"deviceLedgerInfo": "ข้อมูลทะเบียนอุปกรณ์",
"matched": "พบข้อมูล",
"recentRecords": "บันทึกซ่อมบำรุงล่าสุด ({count})",
"viewRepairHistory": "ดูประวัติซ่อม",
"addRepairRecord": "เพิ่มบันทึกซ่อม"
}
}
+63
View File
@@ -29,6 +29,13 @@
"reports": "数据报表",
"schedules": "排程管理"
},
"platformApps": {
"guideUsage": "资料用途",
"generalGuide": "通用指南",
"trainingVideo": "员工培训视频",
"trainingExamPdf": "员工培训试题 PDF",
"guideUsageHint": "培训工作区会优先读取“员工培训视频”和“员工培训试题 PDF”这两类资料。"
},
"dash": {
"activeAgents": "活跃应用",
"totalUsers": "总用户数",
@@ -86,6 +93,9 @@
"email": "邮箱",
"department": "部门",
"role": "角色",
"featurePermissions": "功能权限",
"trainingHrManage": "培训 HR 管理",
"trainingHrManageHint": "勾选后可进入员工培训 Agent 的【HR 管理】视图,查看统计、筛选记录并导出 Excel。",
"password": "密码",
"passwordHint": "(留空表示不修改)",
"noAgents": "暂无可用应用"
@@ -204,6 +214,58 @@
"pollInterval": "进度刷新间隔(秒)",
"lockInput": "任务执行期间禁止发送新消息",
"scheduleTaskRequired": "请先选择关联的排程任务"
},
"training": {
"title": "员工培训配置",
"subtitle": "配置培训工作区的及格线、复盘要点和题库。保存后,员工培训页会优先读取这里的后台内容。",
"enable": "启用员工培训工作区",
"enableHint": "开启后,当前 Agent 会使用“视频 -> 复盘 -> 考试 -> 结算”的培训工作区流程。",
"disabledHint": "关闭后,当前 Agent 不展示员工培训工作区;已填写的培训配置仍会保留在后台。",
"passScore": "及格线",
"passScoreHint": "按百分制判定是否通过,前台考试和结果文案会同步使用这个分数。",
"summaryPoints": "知识点复盘",
"summaryPointsPlaceholder": "每行一条,例如:工资每月 15 号发放",
"summaryChecklist": "考前必知",
"summaryChecklistPlaceholder": "每行一条,例如:低于 90 分必须重新考试",
"questionBank": "题库",
"questionHint": "支持单选题和判断题;保存后员工考试会即时使用新的题库。",
"emptyQuestionBank": "暂未配置题库,员工端会回退到默认题库。",
"importFromPdf": "从试题 PDF 导入",
"importingPdf": "正在解析 PDF...",
"importPdfHint": "将优先使用已上传的试题 PDF《{fileName}》解析题库,导入后仍可继续人工调整。",
"importPdfMissing": "当前 Agent 还没有上传并标记“员工培训试题 PDF”的资料,请先去“平台应用说明”上传。",
"importPdfCreateFirst": "请先保存当前 Agent,再从已上传的试题 PDF 导入题库。",
"importPdfAgentRequired": "请先保存当前 Agent,再导入试题 PDF",
"importPdfSuccess": "已从《{fileName}》导入 {count} 道题目",
"importPdfPartialSuccess": "已导入 {count} 道题目,以下题号未识别成功:{skipped}",
"importPdfOcrUsed": "本次导入通过 OCR 识别完成,建议重点复核题干、选项和答案。",
"importPdfOcrFallback": "原生 PDF 文本解析失败,已自动回退到 OCR 识别,建议重点复核题干、选项和答案。",
"importPdfWarnings": "解析提示:{warnings}",
"addQuestion": "添加题目",
"removeQuestion": "删除题目",
"questionCardTitle": "题目 {index}",
"questionId": "题目编号",
"questionIdPlaceholder": "例如:q1",
"questionType": "题型",
"single": "单选题",
"boolean": "判断题",
"correctAnswer": "正确答案",
"booleanTrue": "正确",
"booleanFalse": "错误",
"questionPrompt": "题干",
"questionPromptPlaceholder": "请输入题目内容",
"questionExplanation": "解析",
"questionExplanationPlaceholder": "请输入答题解析,答错后会直接展示给员工",
"questionOptions": "选项",
"addOption": "添加选项",
"optionLabel": "选项 {label}",
"optionPlaceholder": "请输入选项内容",
"validation": {
"questionRequired": "请至少配置一道培训题目",
"questionPromptRequired": "第 {index} 题题干不能为空",
"questionSingleOptions": "第 {index} 题至少需要 2 个有效选项",
"questionAnswerRequired": "第 {index} 题请选择正确答案"
}
}
},
"question": {
@@ -1003,6 +1065,7 @@
},
"role": {
"user": "普通用户",
"hr": "HR",
"admin": "管理员",
"guest": "访客"
},
+29 -11
View File
@@ -471,8 +471,8 @@
}
},
"training": {
"badge": "新人培训工作区",
"title": "新人入职培训 Agent",
"badge": "员工培训工作区",
"title": "",
"subtitle": "在同一个 Chat 页面内完成视频学习、知识点复盘、逐题考试以及 HR 管理统计。",
"tabs": {
"learner": "学员端",
@@ -482,7 +482,8 @@
"syncLearnerToChat": "同步学员上下文到聊天",
"syncHrToChat": "同步 HR 筛选到聊天",
"expandWorkspace": "展开工作区",
"collapseWorkspace": "收起工作区"
"collapseWorkspace": "收起工作区",
"viewExamPdf": "查看试题 PDF"
},
"steps": {
"video": "观看视频",
@@ -514,7 +515,7 @@
"title": "第三步:逐题考试",
"questionCounter": "第 {current} / {total} 题",
"currentScore": "当前分数:{score} 分",
"passLine": "及格线:90 分",
"passLine": "及格线:{passScore} 分",
"correctFeedback": "回答正确,继续下一题",
"wrongFeedback": "回答错误,已显示正确答案",
"selectedAnswer": "你的答案:{answer}",
@@ -527,8 +528,8 @@
"failedTag": "需补考",
"passTitle": "恭喜,你已通过新人培训考试",
"failTitle": "本次考试未达标,需要重新考试",
"passDescription": "前端已完成通过态交互,后续接入后端后可直接回写培训记录与完成日期。",
"failDescription": "按照 HR 规则,未达到 90 分必须重新考试,直到最终通过为止。",
"passDescription": "您已顺利通过本次考试,成绩会自动同步到 HR 管理端并计入培训记录。",
"failDescription": "按照 HR 规则,未达到 {passScore} 分必须重新考试,直到最终通过为止。",
"scoreLabel": "最终得分",
"attemptsLabel": "考试次数",
"correctCount": "答对题数",
@@ -545,9 +546,9 @@
},
"rules": {
"title": "考试规则",
"rule1": "共 20 题,每题 5 分,满分 100 分。",
"rule1": "共 {total} 题,系统按百分制自动计算成绩。",
"rule2": "系统按“一题一答一反馈”执行,答错立即展示正确答案。",
"rule3": "低于 90 分判定为未通过,必须重新考试。",
"rule3": "低于 {passScore} 分判定为未通过,必须重新考试。",
"rule4": "HR 管理端可在同一聊天页查看统计并导出 Excel。"
},
"hr": {
@@ -594,7 +595,24 @@
"afterSummary": "我已完成知识点复盘,请切换到考试模式并开始第一题。",
"afterPass": "我已经通过新人培训考试,得分 {score} 分,请帮我生成一段培训完成总结。",
"afterFail": "我本次新人培训考试得分 {score} 分,未达到及格线,请帮我总结错题重点并安排重考提醒。",
"examInProgress": "我正在进行新人培训考试,目前做到第 {index}/{total} 题。题目是:{question}。请保持考官模式,评价我的表现并引导我继续。"
"examInProgress": "我正在进行新人培训考试,目前做到第 {index}/{total} 题。题目是:{question}。请保持考官模式,评价我的表现并引导我继续。",
"assistantVideoIntro": "👋 欢迎加入公司!我是你的专属入职培训助手。今天的培训分为三个步骤:看视频 ➡️ 知识点复盘 ➡️ 随堂测试({passScore} 分及格)。\n\n▶️ 请先点击观看【入职培训视频】。观看完毕后,点击进入【知识点复盘】。",
"assistantSummaryIntro": "太棒了!结合刚才的视频,我为你提炼了以下核心知识点(必考哦):",
"assistantSummaryReady": "准备好接受挑战了吗?直接点击【开始考试】或在 Chat 中回复【开始考试】。",
"assistantQuestionSingleType": "单选题",
"assistantQuestionBooleanType": "判断题",
"assistantQuestionReplyHint": "请直接回复选项或内容。",
"assistantResultPass": "🎉 **恭喜!** 您的最终得分是 **{score} 分**,已顺利通过新人考核!您的成绩已自动同步至人事部门。",
"assistantResultFail": "📊 **考试结束!** 您的最终得分是 **{score} 分**。及格线为 {passScore} 分。请回复【重新考试】再次挑战!",
"startExamCommand": "开始考试",
"restartExamCommand": "重新考试"
},
"errors": {
"persistTitle": "培训记录保存失败",
"persistBody": "当前考试结果尚未写入数据库,HR 管理与统计不会更新",
"loadTitle": "培训记录读取失败",
"loadBody": "当前无法从数据库读取培训记录,页面展示可能不是最新结果",
"questionBankEmpty": "当前培训题库为空,请先在后台 Agent 配置中维护题库"
},
"summaryPoints": [
"工资每月 15 号发放,考勤与请假均需要走 OA 流程。",
@@ -618,8 +636,8 @@
"id": "q1",
"type": "single",
"prompt": "工资每月几号发放?",
"answer": "a",
"explanation": "根据新人培训试卷答案,工资固定在每月 8 号发放。",
"answer": "c",
"explanation": "根据新人培训试卷答案,工资固定在每月 15 号发放。",
"options": [
{ "id": "a", "label": "A. 8号" },
{ "id": "b", "label": "B. 9号" },
+184
View File
@@ -0,0 +1,184 @@
{
"ledger": {
"notice": "当前页面用于设备台账管理。",
"tabs": {
"list": "设备列表",
"form": "设备配置"
},
"status": {
"all": "全部状态",
"inUse": "在用",
"disabled": "停用",
"scrapped": "报废",
"sold": "出售"
},
"formTitle": {
"create": "新增设备",
"edit": "编辑设备"
},
"actions": {
"search": "查询",
"create": "新增设备",
"downloadTemplate": "下载模板",
"importExcel": "导入 Excel",
"importing": "导入中...",
"edit": "编辑",
"backToList": "返回列表",
"cancel": "取消",
"save": "保存配置",
"saving": "保存中..."
},
"filters": {
"keywordPlaceholder": "搜索设备编号、设备名称"
},
"table": {
"deviceCode": "设备编号",
"deviceName": "设备名称",
"modelSpec": "型号规格",
"manufacturer": "厂商",
"status": "状态",
"operation": "操作",
"loading": "加载中...",
"empty": "暂无设备"
},
"fields": {
"deviceCode": "设备编号",
"deviceName": "设备名称",
"modelSpec": "型号规格",
"department": "使用部门",
"devicePosition": "设备位置",
"deviceStatus": "设备状态",
"manufacturer": "制造厂家",
"responsibleUser": "责任人",
"entryDate": "进厂日期",
"productionDate": "生产日期",
"startDate": "启用日期",
"maintenanceCycle": "维护周期",
"originalValue": "原值",
"residualValue": "残值",
"accountSet": "账套",
"remark": "备注"
},
"placeholder": {
"maintenanceCycle": "按需维修 / 每月点检"
},
"messages": {
"required": "设备编号和设备名称不能为空",
"saved": "设备台账已保存",
"saveFailed": "保存设备台账失败",
"loadFailed": "加载设备台账失败",
"invalidFormat": "请上传 .xlsx 格式的设备台账模板",
"fileTooLarge": "设备台账文件不能超过 10MB",
"importDone": "设备台账导入完成",
"importFailed": "导入设备台账失败"
},
"importResult": "导入结果:共 {total} 条,新增 {created} 条,更新 {updated} 条,失败 {failed} 条。",
"importErrorRow": "第 {row} 行:{message}"
},
"panel": {
"recordTitle": "维修记录",
"ledgerTitle": "台账配置",
"adminOnly": "管理操作:仅资产管理员 / 维修主管可用",
"resizeTitle": "拖拽调整宽度",
"ledgerSubtitle": "设备列表 / 设备配置",
"recordSubtitle": "记录列表 / 记录配置",
"fullscreen": "全屏",
"exitFullscreen": "退出全屏",
"close": "关闭"
},
"record": {
"notice": "维修记录用于管理员维护设备报修、处理、费用和工时信息;普通查询仍可通过会话完成。",
"tabs": {
"list": "记录列表",
"form": "记录配置"
},
"status": {
"all": "全部状态",
"pending": "待维修",
"processing": "维修中",
"done": "已完成",
"cancelled": "已取消"
},
"formTitle": {
"create": "新增维修记录",
"edit": "编辑维修记录"
},
"actions": {
"search": "查询",
"create": "新增维修记录",
"export": "导出",
"exporting": "导出中...",
"edit": "编辑",
"delete": "删除",
"deleting": "删除中...",
"backToList": "返回列表",
"cancel": "取消",
"save": "保存记录",
"saving": "保存中..."
},
"filters": {
"keywordPlaceholder": "搜索设备编号、设备名称"
},
"table": {
"deviceCode": "设备编号",
"deviceName": "设备名称",
"modelSpec": "型号规格",
"faultDescription": "故障描述",
"status": "状态",
"repairer": "维修人",
"operation": "操作",
"loading": "加载中...",
"empty": "暂无维修记录"
},
"fields": {
"deviceCode": "设备编号",
"reportDate": "报修日期",
"repairCategory": "维修类别",
"repairStatus": "维修状态",
"faultDescription": "故障描述",
"reporter": "报修人",
"approver": "审批人",
"repairDate": "维修日期",
"sourceOrderNo": "来源工单号",
"repairUnit": "维修单位",
"repairer": "维修人",
"repairCost": "维修费用",
"repairHours": "维修工时",
"repairDescription": "维修说明"
},
"placeholder": {
"deviceCode": "如 EQ-2026-001",
"repairCategory": "日常维修 / 保养 / 点检",
"repairCost": "如 1200.00",
"repairHours": "如 3.5h"
},
"deviceSnapshot": {
"loading": "正在查询设备台账...",
"position": "位置",
"department": "部门",
"responsibleUser": "责任人",
"status": "状态",
"empty": "输入设备编号后可自动匹配设备台账快照。"
},
"messages": {
"loadFailed": "查询维修记录失败",
"exported": "维修记录已导出",
"exportFailed": "导出维修记录失败",
"deviceLoadFailed": "查询设备台账失败",
"required": "设备编号、报修日期和故障描述不能为空",
"updated": "维修记录已更新",
"created": "维修记录已新增",
"saveFailed": "保存维修记录失败",
"deleteConfirm": "确认删除 {deviceCode} 的维修记录?",
"deleted": "维修记录已删除",
"deleteFailed": "删除维修记录失败"
}
},
"chat": {
"deviceLedgerInfo": "设备台账信息",
"matched": "已匹配",
"recentRecords": "最近维修记录({count} 条)",
"viewRepairHistory": "查维修历史",
"addRepairRecord": "新增维修记录"
}
}
+63
View File
@@ -28,6 +28,13 @@
"reports": "數據報表",
"schedules": "排程管理"
},
"platformApps": {
"guideUsage": "資料用途",
"generalGuide": "通用指南",
"trainingVideo": "員工培訓視頻",
"trainingExamPdf": "員工培訓試題 PDF",
"guideUsageHint": "培訓工作區會優先讀取「員工培訓視頻」和「員工培訓試題 PDF」這兩類資料。"
},
"dash": {
"activeAgents": "活躍應用",
"totalUsers": "總用戶數",
@@ -85,6 +92,9 @@
"email": "郵箱",
"department": "部門",
"role": "角色",
"featurePermissions": "功能權限",
"trainingHrManage": "培訓 HR 管理",
"trainingHrManageHint": "勾選後可進入員工培訓 Agent 的【HR 管理】視圖,查看統計、篩選記錄並匯出 Excel。",
"password": "密碼",
"passwordHint": "(留空表示不修改)",
"noAgents": "暫無可用應用"
@@ -203,6 +213,58 @@
"pollInterval": "進度刷新間隔(秒)",
"lockInput": "任務執行期間禁止發送新訊息",
"scheduleTaskRequired": "請先選擇關聯的排程任務"
},
"training": {
"title": "員工培訓配置",
"subtitle": "配置培訓工作區的及格線、複盤要點和題庫。保存後,員工培訓頁會優先讀取這裡的後台內容。",
"enable": "啟用員工培訓工作區",
"enableHint": "開啟後,當前 Agent 會使用「影片 -> 複盤 -> 考試 -> 結算」的培訓工作區流程。",
"disabledHint": "關閉後,當前 Agent 不顯示員工培訓工作區;已填寫的培訓配置仍會保留在後台。",
"passScore": "及格線",
"passScoreHint": "按百分制判定是否通過,前台考試和結果文案會同步使用這個分數。",
"summaryPoints": "知識點複盤",
"summaryPointsPlaceholder": "每行一條,例如:工資每月 15 號發放",
"summaryChecklist": "考前必知",
"summaryChecklistPlaceholder": "每行一條,例如:低於 90 分必須重新考試",
"questionBank": "題庫",
"questionHint": "支援單選題和判斷題;保存後員工考試會即時使用新的題庫。",
"emptyQuestionBank": "暫未配置題庫,員工端會回退到預設題庫。",
"importFromPdf": "從試題 PDF 導入",
"importingPdf": "正在解析 PDF...",
"importPdfHint": "將優先使用已上傳的試題 PDF《{fileName}》解析題庫,導入後仍可繼續人工調整。",
"importPdfMissing": "當前 Agent 還沒有上傳並標記「員工培訓試題 PDF」的資料,請先去「平台應用說明」上傳。",
"importPdfCreateFirst": "請先保存當前 Agent,再從已上傳的試題 PDF 導入題庫。",
"importPdfAgentRequired": "請先保存當前 Agent,再導入試題 PDF",
"importPdfSuccess": "已從《{fileName}》導入 {count} 道題目",
"importPdfPartialSuccess": "已導入 {count} 道題目,以下題號未識別成功:{skipped}",
"importPdfOcrUsed": "本次導入透過 OCR 識別完成,建議重點複核題幹、選項與答案。",
"importPdfOcrFallback": "原生 PDF 文字解析失敗,已自動回退至 OCR 識別,建議重點複核題幹、選項與答案。",
"importPdfWarnings": "解析提示:{warnings}",
"addQuestion": "添加題目",
"removeQuestion": "刪除題目",
"questionCardTitle": "題目 {index}",
"questionId": "題目編號",
"questionIdPlaceholder": "例如:q1",
"questionType": "題型",
"single": "單選題",
"boolean": "判斷題",
"correctAnswer": "正確答案",
"booleanTrue": "正確",
"booleanFalse": "錯誤",
"questionPrompt": "題幹",
"questionPromptPlaceholder": "請輸入題目內容",
"questionExplanation": "解析",
"questionExplanationPlaceholder": "請輸入答題解析,答錯後會直接展示給員工",
"questionOptions": "選項",
"addOption": "添加選項",
"optionLabel": "選項 {label}",
"optionPlaceholder": "請輸入選項內容",
"validation": {
"questionRequired": "請至少配置一道培訓題目",
"questionPromptRequired": "第 {index} 題題幹不能為空",
"questionSingleOptions": "第 {index} 題至少需要 2 個有效選項",
"questionAnswerRequired": "第 {index} 題請選擇正確答案"
}
}
},
"question": {
@@ -883,6 +945,7 @@
},
"role": {
"user": "普通用戶",
"hr": "HR",
"admin": "管理員",
"guest": "訪客"
},
+27 -9
View File
@@ -471,8 +471,8 @@
}
},
"training": {
"badge": "新人培訓工作區",
"title": "新人入職培訓 Agent",
"badge": "員工培訓工作區",
"title": "",
"subtitle": "在同一個 Chat 頁面內完成影片學習、知識點複盤、逐題考試與 HR 管理統計。",
"tabs": {
"learner": "學員端",
@@ -482,7 +482,8 @@
"syncLearnerToChat": "同步學員上下文到聊天",
"syncHrToChat": "同步 HR 篩選到聊天",
"expandWorkspace": "展開工作區",
"collapseWorkspace": "收起工作區"
"collapseWorkspace": "收起工作區",
"viewExamPdf": "查看試題 PDF"
},
"steps": {
"video": "觀看影片",
@@ -514,7 +515,7 @@
"title": "第三步:逐題考試",
"questionCounter": "第 {current} / {total} 題",
"currentScore": "當前分數:{score} 分",
"passLine": "及格線:90 分",
"passLine": "及格線:{passScore} 分",
"correctFeedback": "回答正確,繼續下一題",
"wrongFeedback": "回答錯誤,已顯示正確答案",
"selectedAnswer": "你的答案:{answer}",
@@ -527,8 +528,8 @@
"failedTag": "需補考",
"passTitle": "恭喜,你已通過新人培訓考試",
"failTitle": "本次考試未達標,需要重新考試",
"passDescription": "前端已完成通過態互動,後續接入後端後可直接回寫培訓記錄與完成日期。",
"failDescription": "依照 HR 規則,低於 90 分必須重新考試,直到最終通過。",
"passDescription": "你已順利通過本次考試,成績會自動同步到 HR 管理端並記入培訓紀錄。",
"failDescription": "依照 HR 規則,低於 {passScore} 分必須重新考試,直到最終通過。",
"scoreLabel": "最終得分",
"attemptsLabel": "考試次數",
"correctCount": "答對題數",
@@ -545,9 +546,9 @@
},
"rules": {
"title": "考試規則",
"rule1": "共 20 題,每題 5 分,滿分 100 分。",
"rule1": "共 {total} 題,系統按百分制自動計算成績。",
"rule2": "系統依「一題一答一回饋」執行,答錯立即顯示正確答案。",
"rule3": "低於 90 分視為未通過,必須重新考試。",
"rule3": "低於 {passScore} 分視為未通過,必須重新考試。",
"rule4": "HR 管理端可在同一聊天頁查看統計並匯出 Excel。"
},
"hr": {
@@ -594,7 +595,24 @@
"afterSummary": "我已完成知識點複盤,請切換到考試模式並開始第一題。",
"afterPass": "我已通過新人培訓考試,得分 {score} 分,請幫我生成一段培訓完成總結。",
"afterFail": "我本次新人培訓考試得分 {score} 分,未達及格線,請幫我總結錯題重點並安排重考提醒。",
"examInProgress": "我正在進行新人培訓考試,目前做到第 {index}/{total} 題,請保持考官模式繼續出題。"
"examInProgress": "我正在進行新人培訓考試,目前做到第 {index}/{total} 題,請保持考官模式繼續出題。",
"assistantVideoIntro": "👋 歡迎加入公司!我是你的專屬入職培訓助手。今天的培訓分為三個步驟:看影片 ➡️ 知識點複盤 ➡️ 隨堂測試({passScore} 分及格)。\n\n▶️ 請先點擊觀看【入職培訓影片】。觀看完畢後,點擊進入【知識點複盤】。",
"assistantSummaryIntro": "太棒了!結合剛才的影片,我為你提煉了以下核心知識點(必考哦):",
"assistantSummaryReady": "準備好接受挑戰了嗎?直接點擊【開始考試】或在 Chat 中回覆【開始考試】。",
"assistantQuestionSingleType": "單選題",
"assistantQuestionBooleanType": "判斷題",
"assistantQuestionReplyHint": "請直接回覆選項或內容。",
"assistantResultPass": "🎉 **恭喜!** 你的最終得分是 **{score} 分**,已順利通過新人考核!成績已自動同步至人事部門。",
"assistantResultFail": "📊 **考試結束!** 你的最終得分是 **{score} 分**。及格線為 {passScore} 分。請回覆【重新考試】再次挑戰!",
"startExamCommand": "開始考試",
"restartExamCommand": "重新考試"
},
"errors": {
"persistTitle": "培訓記錄保存失敗",
"persistBody": "當前考試結果尚未寫入資料庫,HR 管理與統計不會更新",
"loadTitle": "培訓記錄讀取失敗",
"loadBody": "目前無法從資料庫讀取培訓記錄,頁面顯示可能不是最新結果",
"questionBankEmpty": "當前培訓題庫為空,請先在後台 Agent 配置中維護題庫"
},
"summaryPoints": [
"工資每月 15 號發放,考勤與請假均需走 OA 流程。",
+184
View File
@@ -0,0 +1,184 @@
{
"ledger": {
"notice": "目前頁面用於設備台帳管理。",
"tabs": {
"list": "設備列表",
"form": "設備配置"
},
"status": {
"all": "全部狀態",
"inUse": "在用",
"disabled": "停用",
"scrapped": "報廢",
"sold": "出售"
},
"formTitle": {
"create": "新增設備",
"edit": "編輯設備"
},
"actions": {
"search": "查詢",
"create": "新增設備",
"downloadTemplate": "下載範本",
"importExcel": "匯入 Excel",
"importing": "匯入中...",
"edit": "編輯",
"backToList": "返回列表",
"cancel": "取消",
"save": "儲存配置",
"saving": "儲存中..."
},
"filters": {
"keywordPlaceholder": "搜尋設備編號、設備名稱"
},
"table": {
"deviceCode": "設備編號",
"deviceName": "設備名稱",
"modelSpec": "型號規格",
"manufacturer": "廠商",
"status": "狀態",
"operation": "操作",
"loading": "載入中...",
"empty": "暫無設備"
},
"fields": {
"deviceCode": "設備編號",
"deviceName": "設備名稱",
"modelSpec": "型號規格",
"department": "使用部門",
"devicePosition": "設備位置",
"deviceStatus": "設備狀態",
"manufacturer": "製造廠家",
"responsibleUser": "責任人",
"entryDate": "進廠日期",
"productionDate": "生產日期",
"startDate": "啟用日期",
"maintenanceCycle": "維護週期",
"originalValue": "原值",
"residualValue": "殘值",
"accountSet": "帳套",
"remark": "備註"
},
"placeholder": {
"maintenanceCycle": "按需維修 / 每月點檢"
},
"messages": {
"required": "設備編號和設備名稱不能為空",
"saved": "設備台帳已儲存",
"saveFailed": "儲存設備台帳失敗",
"loadFailed": "載入設備台帳失敗",
"invalidFormat": "請上傳 .xlsx 格式的設備台帳範本",
"fileTooLarge": "設備台帳檔案不能超過 10MB",
"importDone": "設備台帳匯入完成",
"importFailed": "匯入設備台帳失敗"
},
"importResult": "匯入結果:共 {total} 筆,新增 {created} 筆,更新 {updated} 筆,失敗 {failed} 筆。",
"importErrorRow": "第 {row} 行:{message}"
},
"panel": {
"recordTitle": "維修記錄",
"ledgerTitle": "台帳配置",
"adminOnly": "管理操作:僅資產管理員 / 維修主管可用",
"resizeTitle": "拖曳調整寬度",
"ledgerSubtitle": "設備列表 / 設備配置",
"recordSubtitle": "記錄列表 / 記錄配置",
"fullscreen": "全螢幕",
"exitFullscreen": "退出全螢幕",
"close": "關閉"
},
"record": {
"notice": "維修記錄用於管理員維護設備報修、處理、費用和工時資訊;一般查詢仍可透過會話完成。",
"tabs": {
"list": "記錄列表",
"form": "記錄配置"
},
"status": {
"all": "全部狀態",
"pending": "待維修",
"processing": "維修中",
"done": "已完成",
"cancelled": "已取消"
},
"formTitle": {
"create": "新增維修記錄",
"edit": "編輯維修記錄"
},
"actions": {
"search": "查詢",
"create": "新增維修記錄",
"export": "匯出",
"exporting": "匯出中...",
"edit": "編輯",
"delete": "刪除",
"deleting": "刪除中...",
"backToList": "返回列表",
"cancel": "取消",
"save": "儲存記錄",
"saving": "儲存中..."
},
"filters": {
"keywordPlaceholder": "搜尋設備編號、設備名稱"
},
"table": {
"deviceCode": "設備編號",
"deviceName": "設備名稱",
"modelSpec": "型號規格",
"faultDescription": "故障描述",
"status": "狀態",
"repairer": "維修人",
"operation": "操作",
"loading": "載入中...",
"empty": "暫無維修記錄"
},
"fields": {
"deviceCode": "設備編號",
"reportDate": "報修日期",
"repairCategory": "維修類別",
"repairStatus": "維修狀態",
"faultDescription": "故障描述",
"reporter": "報修人",
"approver": "審批人",
"repairDate": "維修日期",
"sourceOrderNo": "來源工單號",
"repairUnit": "維修單位",
"repairer": "維修人",
"repairCost": "維修費用",
"repairHours": "維修工時",
"repairDescription": "維修說明"
},
"placeholder": {
"deviceCode": "如 EQ-2026-001",
"repairCategory": "日常維修 / 保養 / 點檢",
"repairCost": "如 1200.00",
"repairHours": "如 3.5h"
},
"deviceSnapshot": {
"loading": "正在查詢設備台帳...",
"position": "位置",
"department": "部門",
"responsibleUser": "責任人",
"status": "狀態",
"empty": "輸入設備編號後可自動匹配設備台帳快照。"
},
"messages": {
"loadFailed": "查詢維修記錄失敗",
"exported": "維修記錄已匯出",
"exportFailed": "匯出維修記錄失敗",
"deviceLoadFailed": "查詢設備台帳失敗",
"required": "設備編號、報修日期和故障描述不能為空",
"updated": "維修記錄已更新",
"created": "維修記錄已新增",
"saveFailed": "儲存維修記錄失敗",
"deleteConfirm": "確認刪除 {deviceCode} 的維修記錄?",
"deleted": "維修記錄已刪除",
"deleteFailed": "刪除維修記錄失敗"
}
},
"chat": {
"deviceLedgerInfo": "設備台帳資訊",
"matched": "已匹配",
"recentRecords": "最近維修記錄({count} 筆)",
"viewRepairHistory": "查維修歷史",
"addRepairRecord": "新增維修記錄"
}
}