feat(chat): 更新发货任务处理逻辑和界面文本

- 移除不必要的状态引用
- 更新上传处理提示文本,使用国际化支持
- 扩展发货任务摘要接口,增加错误信息和短缺信息
- 更新多语言支持的文本,改善用户体验
- 增加批次工作区的汇总信息和操作提示
This commit is contained in:
hugo committed 2026-06-29 14:43:27 +08:00
1 parent 0b083cfdbd
commit 1fc9976ca3
60 files changed
+3876 -639

No files matched your search

+76 -7
View File
@@ -1,6 +1,6 @@
{
"defaultTitle": "Chat",
"assistantLabel": "HXOPS AI Assistant",
"assistantLabel": "AI Assistant",
"placeholder": "Ask anything...",
"history": "Chat History",
"noHistory": "No history",
@@ -13,13 +13,18 @@
"loadingAgent": "Loading agent...",
"thinking": "Generating response...",
"disclaimer": "AI can make mistakes. Please verify important information.",
"scrollToLatest": "Scroll to latest message",
"createNewChat": "New Chat",
"shippingNoticeContinue": "Please continue shipping task {taskId}. Call get_task_status first and tell me the next step.",
"shippingNoticeContinue": "Please continue shipping task {taskId}. Read the current task status first; if it still needs parsing, parse the shipping notice and save the result; otherwise explain the current progress and next step.",
"shippingNoticeActionsHint": "Choose an action:",
"shippingNoticeMissingTaskId": "Task ID not found. Complete shipping notice parsing first.",
"shippingNoticeUploadDone": "Inventory file uploaded: {fileName}.",
"shippingNoticeUploadOk": "Upload succeeded.",
"shippingNoticeUploadFailed": "Inventory upload failed.",
"shippingNoticeRefreshDone": "Current task status refreshed.",
"shippingNoticeRetryUploadAction": "Retry freight upload",
"shippingNoticeRetryUploadQueued": "Upload has been triggered again. Refresh later to check the result.",
"shippingNoticeRetryUploadFailed": "Retry upload failed.",
"shippingNoticePasteHint": "Paste inventory rows in the input box, then send.",
"shippingNoticeDecisionDone": "Action completed.",
"shippingNoticePrompt": {
@@ -41,8 +46,10 @@
"batchLabel": "batch {batchNo}",
"taskLabel": "current task {taskId}",
"taskList": "Task list: {taskIds}.",
"multiTask": "{summary}. {taskListText}Please only handle the current focus task. First call get_task_status to read the current task status; if the current task is still pending parsing, read raw_text, use the LLM to extract structured fields, then call parse_notice(structured=...) to persist them. If the task is already in a later step, directly explain the current status and guide me on the next step for this task. Do not ask me again whether parsing should start, and do not loop through other tasks in the batch.",
"singleTask": "{summary}. Please first call get_task_status to read the current task status; if the current task is still pending parsing, read raw_text, use the LLM to extract structured fields, and directly call parse_notice(structured=...) to persist them. If the task is already in a later step, directly explain the current status and guide me on the next step. Do not ask me again whether parsing should start now."
"autoInventoryAction": "Upload inventory and align columns",
"autoNoticeAction": "Create tasks and parse shipping notices",
"multiTask": "{summary}. {taskListText}Please only handle the current focus task. Read the current task status first; if it still needs parsing, parse the shipping notice and save the result. If it is already in a later step, explain the current progress and next step directly. Do not ask me again whether parsing should start, and do not loop through other tasks in the batch.",
"singleTask": "{summary}. Read the current task status first; if it still needs parsing, parse the shipping notice and save the result. If it is already in a later step, explain the current progress and next step directly. Do not ask me again whether parsing should start."
}
},
"shippingNoticeMapping": {
@@ -104,17 +111,79 @@
"batchProgress": "Item {index}/{total}",
"batchCurrentIndex": "Currently processing item {index}/{total}",
"batchSummaryLine": "Batch {total} items · Completed {completed} · In progress {running} · Pending {pending}",
"conversationWorkspaceTitle": "Agent session execution summary",
"conversationSummaryLine": "{batches} batches · {total} tasks · {completed} completed · {running} running · {abnormal} need intervention",
"batchChromeSummary": "{total} tasks, {completed} done, {running} running, {abnormal} need intervention",
"agentExecutionSummary": "Agent execution summary",
"workspaceSubtitle": "{batches} batches · {total} tasks, {completed} completed, {abnormal} need intervention",
"noBlockingTasks": "No blocking tasks in the current batch. It is completed or being archived automatically.",
"focusTaskRecommendation": "Focus this task first, confirm the blocker, then continue recovery within the batch.",
"focusThisTask": "Fix this task",
"showWorkspace": "Batch workspace",
"hideWorkspace": "Hide workspace",
"batchWorkspaceTitle": "Batch workspace",
"batchWorkspaceSubtitle": "Switch batches, filter tasks, and diagnose steps",
"batchActionsTitle": "Batch actions",
"retryFailedTasks": "Retry all failed",
"batchActionSafetyNotice": "Human-review tasks are not retried in bulk; completed tasks are not uploaded again. Batch recovery only handles failed or queued tasks.",
"taskDetailCount": "Task details ({count})",
"filterAll": "All",
"filterAbnormal": "Abnormal ({count})",
"filterCompleted": "Done ({count})",
"emptyFilteredTasks": "No matching tasks",
"focusRepair": "Focus repair",
"queryShortageDetails": "Query shortage details",
"retrySingleTask": "Retry single task",
"retrySingleTaskMessage": "Retry current task {taskId}",
"viewDetail": "View details",
"mobileWorkspaceHint": "The workspace is open on mobile. Pick a task from the list to continue.",
"diagnosisAdviceRetryOrFocus": "Focus this task first to inspect context; retry only if it is a transient external-system failure.",
"diagnosisUploadFailedTitle": "Freight-system upload failed and no success receipt was returned.",
"diagnosisUploadFailedAdvice": "Retry this task. If it keeps failing, check freight login state, field formats, or upload manually.",
"diagnosisShortageTitle": "Inventory matching found a shortage, so full shipment cannot continue directly.",
"diagnosisShortageAdvice": "Shipment is blocked. Replenish inventory or correct the notice, then match inventory again.",
"diagnosisShortageLine": "Line {index}: reservation {reservationId}, SKU {sku}, required {required}, available {available}, shortage {shortage}",
"diagnosisShortageAdviceWithLines": "Shortage details: {lines}. Replenish inventory or correct the notice, then match again.",
"shortageDetailsMessageTitle": "Inventory shortage details for task {taskId} ({file}):",
"shortageNoDetails": "No inventory shortage was found for task {taskId}.",
"diagnosisInventoryRpaTitle": "Inventory RPA did not return an available inventory snapshot.",
"diagnosisInventoryRpaAdvice": "Retry inventory capture first; if the external system is unavailable, upload an inventory file manually.",
"diagnosisAlignReviewTitle": "Inventory column mapping needs manual confirmation.",
"diagnosisAlignReviewAdvice": "Confirm SKU, Reservation ID, and available-quantity mappings to avoid matching the wrong item.",
"diagnosisParseReviewTitle": "Notice parsing confidence is low and needs review.",
"diagnosisParseReviewAdvice": "Check customer, PO, required date, and order lines before continuing.",
"diagnosisReservationRequiredTitle": "Reservation ID is missing, so inventory cannot be locked by reservation.",
"diagnosisReservationRequiredAdvice": "Add the Reservation ID, or confirm this customer can proceed without one.",
"diagnosisInventoryWaitingTitle": "Waiting for inventory file or inventory entry confirmation.",
"diagnosisInventoryWaitingAdvice": "Upload the batch inventory snapshot or confirm the automatic capture entry.",
"diagnosisCompletedTitle": "Task is completed and archived.",
"diagnosisCompletedAdvice": "No action required; review export files or upload receipts if needed.",
"diagnosisStepWaitingTitle": "Step {step} is waiting for a prerequisite.",
"diagnosisStepWaitingAdvice": "Monitor it in the workspace, or focus this task to inspect context.",
"currentTaskDiagnosis": "Current task diagnosis",
"currentTaskPosition": "Item {index}/{total}",
"batchTabAbnormal": "{completed} completed · {abnormal} abnormal",
"batchTabNormal": "{total} tasks normal",
"interventionQueue": "Needs intervention",
"needsIntervention": "Needs intervention",
"currentNotice": "Current notice",
"currentStepLabel": "Current",
"stepHeadline": "Step {current}/{total} · {label}",
"stepFraction": "Step {current}/{total}",
"stepNeedsConfirm": "Step {step} needs confirmation",
"taskListResume": "Task List / Resume",
"retryPendingTasks": "Retry recoverable tasks in current batch",
"retryPendingDone": "Recoverable tasks have been resubmitted",
"retryFailed": "Retry failed",
"retrying": "Retrying...",
"taskListTitle": "Task List",
"taskListHint": "Switching tasks also updates the top Stepper and available actions",
"expandTaskList": "Expand list",
"collapseTaskList": "Collapse list",
"currentFocus": "Current focus →",
"expandTaskList": "Expand task list",
"collapseTaskList": "Collapse task list",
"currentFocus": "Current focus:",
"currentFocusDefaultReason": "Input will apply to this task",
"focusInputPlaceholder": "Handling {taskId}. Type an instruction...",
"clearFocus": "Clear focus",
"runningState": "In progress",
"pendingState": "Pending",
"completedState": "Completed",
+76 -7
View File
@@ -1,6 +1,6 @@
{
"defaultTitle": "แชท",
"assistantLabel": "ผู้ช่วย AI ของ HXOPS",
"assistantLabel": "ผู้ช่วย AI",
"placeholder": "ถามอะไรก็ได้...",
"history": "ประวัติการแชท",
"noHistory": "ไม่มีประวัติ",
@@ -13,13 +13,18 @@
"loadingAgent": "กำลังโหลดตัวแทน...",
"thinking": "กำลังสร้างคำตอบ...",
"disclaimer": "AI อาจทำผิดพลาดได้ โปรดตรวจสอบข้อมูลสำคัญ",
"scrollToLatest": "เลื่อนไปยังข้อความล่าสุด",
"createNewChat": "แชทใหม่",
"shippingNoticeContinue": "กรุณาดำเนินการงานจัดส่งต่อ {taskId} โปรดเรียก get_task_status ก่อนและบอกขั้นตอนถัดไป",
"shippingNoticeContinue": "กรุณาดำเนินการงานจัดส่งต่อ {taskId} โปรดอ่านสถานะงานปัจจุบันก่อน หากยังต้องแยกข้อมูล ให้แยกใบแจ้งส่งสินค้าและบันทึกผลลัพธ์ มิฉะนั้นให้สรุปความคืบหน้าและขั้นตอนถัดไป",
"shippingNoticeActionsHint": "เลือกการทำงาน:",
"shippingNoticeMissingTaskId": "ไม่พบรหัสงาน โปรดแยกใบแจ้งส่งสินค้าก่อน",
"shippingNoticeUploadDone": "อัปโหลดไฟล์สต็อกแล้ว: {fileName}",
"shippingNoticeUploadOk": "อัปโหลดสำเร็จ",
"shippingNoticeUploadFailed": "อัปโหลดไฟล์สต็อกล้มเหลว",
"shippingNoticeRefreshDone": "รีเฟรชสถานะงานปัจจุบันแล้ว",
"shippingNoticeRetryUploadAction": "ลองอัปโหลดไปยังระบบขนส่งอีกครั้ง",
"shippingNoticeRetryUploadQueued": "เริ่มอัปโหลดอีกครั้งแล้ว โปรดรีเฟรชภายหลังเพื่อตรวจสอบผลลัพธ์",
"shippingNoticeRetryUploadFailed": "ลองอัปโหลดอีกครั้งไม่สำเร็จ",
"shippingNoticePasteHint": "วางข้อมูลสต็อกในช่องข้อความแล้วส่ง",
"shippingNoticeDecisionDone": "ดำเนินการเสร็จแล้ว",
"shippingNoticePrompt": {
@@ -41,8 +46,10 @@
"batchLabel": "ชุดงาน {batchNo}",
"taskLabel": "งานปัจจุบัน {taskId}",
"taskList": "รายการงาน: {taskIds}",
"multiTask": "{summary} {taskListText}กรุณาจัดการเฉพาะงานที่โฟกัสอยู่ในขณะนี้ก่อน เรียก get_task_status เพื่ออ่านสถานะงานปัจจุบันก่อน หากงานปัจจุบันยังรอการแยกข้อมูล ให้读取 raw_text ใช้ LLM แยกฟิลด์แบบมีโครงสร้าง แล้วเรียก parse_notice(structured=...) เพื่อบันทึก หากงานเข้าสู่ขั้นตอนถัดไปแล้ว ให้สรุปสถานะปัจจุบันและแนะนำขั้นตอนถัดไปของงานนี้โดยตรง ห้ามถามฉันซ้ำว่าจะเริ่มแยกข้อมูลหรือไม่ และไม่ต้องวนประมวลผลงานอื่นทั้งชุด",
"singleTask": "{summary} กรุณาเรียก get_task_status เพื่ออ่านสถานะงานปัจจุบันก่อน หากงานปัจจุบันยังรอการแยกข้อมูล ให้读取 raw_text ใช้ LLM แยกฟิลด์แบบมีโครงสร้าง แล้วเรียก parse_notice(structured=...) โดยตรงเพื่อบันทึก หากงานเข้าสู่ขั้นตอนถัดไปแล้ว ให้สรุปสถานะปัจจุบันและแนะนำขั้นตอนถัดไปโดยตรง ห้ามถามฉันซ้ำว่าจะเริ่มแยกข้อมูลตอนนี้หรือไม่"
"autoInventoryAction": "อัปโหลดสต็อกและจับคู่คอลัมน์",
"autoNoticeAction": "สร้างงานและแยกข้อมูลใบแจ้งจัดส่ง",
"multiTask": "{summary} {taskListText}กรุณาจัดการเฉพาะงานที่โฟกัสอยู่ในขณะนี้ก่อน อ่านสถานะงานปัจจุบันก่อน หากยังต้องแยกข้อมูล ให้แยกใบแจ้งส่งสินค้าและบันทึกผลลัพธ์ หากเข้าสู่ขั้นตอนถัดไปแล้ว ให้สรุปความคืบหน้าและขั้นตอนถัดไปโดยตรง อย่าถามซ้ำว่าจะเริ่มแยกข้อมูลหรือไม่ และไม่ต้องวนประมวลผลงานอื่นทั้งชุด",
"singleTask": "{summary} กรุณาอ่านสถานะงานปัจจุบันก่อน หากยังต้องแยกข้อมูล ให้แยกใบแจ้งส่งสินค้าและบันทึกผลลัพธ์ หากเข้าสู่ขั้นตอนถัดไปแล้ว ให้สรุปความคืบหน้าและขั้นตอนถัดไปโดยตรง อย่าถามซ้ำว่าจะเริ่มแยกข้อมูลหรือไม่"
}
},
"shippingNoticeMapping": {
@@ -104,17 +111,79 @@
"batchProgress": "รายการ {index}/{total}",
"batchCurrentIndex": "กำลังประมวลผลรายการที่ {index}/{total}",
"batchSummaryLine": "ชุดนี้ {total} รายการ · เสร็จแล้ว {completed} · กำลังดำเนินการ {running} · รอดำเนินการ {pending}",
"conversationWorkspaceTitle": "สรุปการดำเนินงานของเซสชัน Agent",
"conversationSummaryLine": "{batches} ชุดงาน · {total} งาน · เสร็จแล้ว {completed} · กำลังดำเนินการ {running} · ต้องแทรกแซง {abnormal}",
"batchChromeSummary": "{total} งาน, เสร็จแล้ว {completed}, กำลังทำ {running}, ต้องแทรกแซง {abnormal}",
"agentExecutionSummary": "สรุปการดำเนินงานของ Agent",
"workspaceSubtitle": "{batches} ชุดงาน · {total} งาน, เสร็จแล้ว {completed}, ต้องแทรกแซง {abnormal}",
"noBlockingTasks": "ชุดงานปัจจุบันไม่มีงานที่บล็อกอยู่ เสร็จแล้วหรือกำลังจัดเก็บอัตโนมัติ",
"focusTaskRecommendation": "แนะนำให้โฟกัสงานนี้ก่อน ตรวจสอบสาเหตุที่บล็อก แล้วค่อยดำเนินการกู้คืนในชุดงานต่อ",
"focusThisTask": "แก้งานนี้",
"showWorkspace": "เวิร์กสเปซชุดงาน",
"hideWorkspace": "ซ่อนเวิร์กสเปซ",
"batchWorkspaceTitle": "เวิร์กสเปซชุดงาน",
"batchWorkspaceSubtitle": "สลับชุดงาน กรองงาน และวิเคราะห์ขั้นตอน",
"batchActionsTitle": "การทำงานแบบชุด",
"retryFailedTasks": "ลองงานที่ล้มเหลวทั้งหมดอีกครั้ง",
"batchActionSafetyNotice": "งานที่ต้องให้คนตรวจจะไม่ถูกลองใหม่แบบชุด งานที่เสร็จแล้วจะไม่ถูกอัปโหลดซ้ำ การกู้คืนแบบชุดจะจัดการเฉพาะงานที่ล้มเหลวหรืออยู่ในคิว",
"taskDetailCount": "รายละเอียดงาน ({count})",
"filterAll": "ทั้งหมด",
"filterAbnormal": "ผิดปกติ ({count})",
"filterCompleted": "เสร็จแล้ว ({count})",
"emptyFilteredTasks": "ไม่มีงานที่ตรงเงื่อนไข",
"focusRepair": "โฟกัสแก้ไข",
"queryShortageDetails": "ดูรายละเอียดส่วนขาด",
"retrySingleTask": "ลองงานเดียวอีกครั้ง",
"retrySingleTaskMessage": "ลองงานปัจจุบัน {taskId} อีกครั้ง",
"viewDetail": "ดูรายละเอียด",
"mobileWorkspaceHint": "เปิดเวิร์กสเปซบนมือถือแล้ว โปรดเลือกงานจากรายการเพื่อดำเนินการต่อ",
"diagnosisAdviceRetryOrFocus": "ควรโฟกัสงานนี้เพื่อตรวจบริบทก่อน หากเป็นปัญหาระบบภายนอกชั่วคราวจึงค่อยลองใหม่",
"diagnosisUploadFailedTitle": "อัปโหลดไปยังระบบขนส่งล้มเหลว และยังไม่ได้รับใบตอบรับสำเร็จ",
"diagnosisUploadFailedAdvice": "ลองงานนี้ใหม่ หากยังล้มเหลวให้ตรวจสถานะล็อกอิน รูปแบบฟิลด์ หรืออัปโหลดด้วยตนเอง",
"diagnosisShortageTitle": "การจับคู่สต็อกพบจำนวนขาด จึงยังดำเนินการส่งเต็มจำนวนไม่ได้",
"diagnosisShortageAdvice": "ระบบบล็อกการจัดส่งต่อ โปรดเติมสต็อกหรือแก้ไขใบแจ้ง แล้วจับคู่สต็อกใหม่",
"diagnosisShortageLine": "แถว {index}: Reservation {reservationId}, SKU {sku}, ต้องการ {required}, มี {available}, ขาด {shortage}",
"diagnosisShortageAdviceWithLines": "รายละเอียดส่วนขาด: {lines} โปรดเติมสต็อกหรือแก้ไขใบแจ้ง แล้วจับคู่ใหม่",
"shortageDetailsMessageTitle": "รายละเอียดสต็อกขาดของงาน {taskId} ({file}):",
"shortageNoDetails": "ไม่พบสต็อกขาดสำหรับงาน {taskId}",
"diagnosisInventoryRpaTitle": "Inventory RPA ยังไม่ส่งคืนสแนปช็อตสต็อกที่ใช้ได้",
"diagnosisInventoryRpaAdvice": "ลองดึงสต็อกใหม่ก่อน หากระบบภายนอกใช้ไม่ได้ ให้อัปโหลดไฟล์สต็อกด้วยตนเอง",
"diagnosisAlignReviewTitle": "ต้องยืนยันการแมปคอลัมน์สต็อกด้วยตนเอง",
"diagnosisAlignReviewAdvice": "ยืนยันการแมป SKU, Reservation ID และจำนวนที่ใช้ได้ เพื่อป้องกันการจับคู่ผิดรายการ",
"diagnosisParseReviewTitle": "ความมั่นใจในการอ่านใบแจ้งต่ำ ต้องตรวจทานข้อมูล",
"diagnosisParseReviewAdvice": "ตรวจลูกค้า PO วันที่ต้องการ และรายการคำสั่งซื้อก่อนดำเนินการต่อ",
"diagnosisReservationRequiredTitle": "ไม่มี Reservation ID จึงล็อกสต็อกตามใบจองไม่ได้",
"diagnosisReservationRequiredAdvice": "เพิ่ม Reservation ID หรือยืนยันว่าลูกค้ารายนี้ดำเนินการได้โดยไม่ต้องมีใบจอง",
"diagnosisInventoryWaitingTitle": "กำลังรอไฟล์สต็อกหรือการยืนยันช่องทางสต็อก",
"diagnosisInventoryWaitingAdvice": "อัปโหลดสแนปช็อตสต็อกของชุดงาน หรือยืนยันช่องทางดึงอัตโนมัติ",
"diagnosisCompletedTitle": "งานเสร็จแล้วและถูกจัดเก็บแล้ว",
"diagnosisCompletedAdvice": "ไม่ต้องดำเนินการ หากต้องการตรวจสอบให้ดูไฟล์ส่งออกหรือใบตอบรับ",
"diagnosisStepWaitingTitle": "ขั้นตอน {step} กำลังรอเงื่อนไขก่อนหน้า",
"diagnosisStepWaitingAdvice": "ติดตามในเวิร์กสเปซ หรือโฟกัสงานนี้เพื่อตรวจบริบท",
"currentTaskDiagnosis": "การวิเคราะห์งานปัจจุบัน",
"currentTaskPosition": "รายการ {index}/{total}",
"batchTabAbnormal": "เสร็จแล้ว {completed} · ผิดปกติ {abnormal}",
"batchTabNormal": "{total} งานปกติทั้งหมด",
"interventionQueue": "งานที่ต้องแทรกแซง",
"needsIntervention": "ต้องแทรกแซง",
"currentNotice": "ใบแจ้งปัจจุบัน",
"currentStepLabel": "ปัจจุบัน",
"stepHeadline": "ขั้นตอน {current}/{total} · {label}",
"stepFraction": "ขั้นตอน {current}/{total}",
"stepNeedsConfirm": "ขั้นตอน {step} รอยืนยัน",
"taskListResume": "รายการงาน / ดำเนินการต่อ",
"retryPendingTasks": "ลองงานที่กู้คืนได้ในชุดงานปัจจุบันอีกครั้ง",
"retryPendingDone": "ส่งงานที่กู้คืนได้ใหม่แล้ว",
"retryFailed": "ลองใหม่ไม่สำเร็จ",
"retrying": "กำลังลองใหม่...",
"taskListTitle": "รายการงาน",
"taskListHint": "เมื่อสลับงาน Stepper ด้านบนและการดำเนินการจะอัปเดตพร้อมกัน",
"expandTaskList": "ขยายรายการ",
"collapseTaskList": "ย่อรายการ",
"currentFocus": "โฟกัสปัจจุบัน →",
"expandTaskList": "ขยายรายการงาน",
"collapseTaskList": "ย่อรายการงาน",
"currentFocus": "โฟกัสปัจจุบัน:",
"currentFocusDefaultReason": "ข้อความที่ป้อนจะมีผลกับงานนี้",
"focusInputPlaceholder": "กำลังจัดการ {taskId} พิมพ์คำสั่ง...",
"clearFocus": "ยกเลิกโฟกัส",
"runningState": "กำลังดำเนินการ",
"pendingState": "รอยืนยัน",
"completedState": "เสร็จแล้ว",
+71 -8
View File
@@ -13,13 +13,18 @@
"loadingAgent": "正在加载应用...",
"thinking": "正在生成回答...",
"disclaimer": "AI 可能会犯错,请核实重要信息。",
"scrollToLatest": "滚动到最新消息",
"createNewChat": "创建新对话",
"shippingNoticeContinue": "请继续处理发货任务 {taskId}。该任务已存在,禁止调用 create_task。请先调用 get_task_status(task_id={taskId})查询当前状态并告知我下一步。",
"shippingNoticeContinue": "请继续处理发货任务 {taskId}。先读取当前任务状态;如果仍待解析,请解析发货通知并保存结果;如果已进入后续步骤,请直接说明当前进度和下一步。",
"shippingNoticeActionsHint": "请选择操作:",
"shippingNoticeMissingTaskId": "未找到任务编号,请先完成发货通知解析。",
"shippingNoticeUploadDone": "库存文件已上传:{fileName}。",
"shippingNoticeUploadOk": "上传成功。",
"shippingNoticeUploadFailed": "库存文件上传失败。",
"shippingNoticeRefreshDone": "已刷新当前任务状态。",
"shippingNoticeRetryUploadAction": "重试上传货代",
"shippingNoticeRetryUploadQueued": "已重新触发上传,请稍后刷新查看结果。",
"shippingNoticeRetryUploadFailed": "重试上传失败。",
"shippingNoticePasteHint": "请在输入框粘贴库存小表内容后发送。",
"shippingNoticeDecisionDone": "操作已完成。",
"shippingNoticePrompt": {
@@ -42,9 +47,9 @@
"taskLabel": "当前任务 {taskId}",
"taskList": "任务列表:{taskIds}。",
"autoInventoryAction": "上传库存并进入字段对齐",
"autoNoticeAction": "解析发货通知并创建任务",
"multiTask": "{summary}。{taskListText}请只处理当前焦点任务。先调用 get_task_status 读取当前任务状态;如果当前任务仍待解析,请读取 raw_text,用 LLM 抽取结构化字段后调用 parse_notice(structured=...) 落库;如果已经进入后续步骤,请直接解释当前状态并给出本任务下一步引导。禁止再次询问我“是否开始解析”,也不要整批循环处理其他任务。",
"singleTask": "{summary}。请先调用 get_task_status 读取当前任务状态;如果当前任务仍待解析,请读取 raw_text,用 LLM 抽取结构化字段后直接调用 parse_notice(structured=...) 落库;若已进入后续步骤,请直接解释当前状态并给出下一步引导。禁止再次询问我“是否开始解析”或“是否现在开始解析”。"
"autoNoticeAction": "创建任务并解析发货通知",
"multiTask": "{summary}。{taskListText}请只处理当前焦点任务。先读取当前任务状态;如果仍待解析,请解析发货通知并保存结果;如果已进入后续步骤,请直接说明当前进度和下一步。不要再次询问我是否开始解析,也不要整批循环处理其他任务。",
"singleTask": "{summary}。请先读取当前任务状态;如果仍待解析,请解析发货通知并保存结果;如果已进入后续步骤,请直接说明当前进度和下一步。不要再次询问我是否开始解析。"
}
},
"shippingNoticeMapping": {
@@ -106,21 +111,79 @@
"batchProgress": "第 {index}/{total} 票",
"batchCurrentIndex": "当前处理第 {index}/{total} 票",
"batchSummaryLine": "本批 {total} 笔 · 已完成 {completed} · 进行中 {running} · 待处理 {pending}",
"conversationWorkspaceTitle": "Agent 会话执行摘要",
"conversationSummaryLine": "{batches} 个批次 · {total} 票任务 · {completed} 完成 · {running} 执行中 · {abnormal} 需介入",
"batchChromeSummary": "{total} 票任务,{completed} 完成,{running} 执行中,{abnormal} 需介入",
"agentExecutionSummary": "Agent 执行摘要",
"workspaceSubtitle": "{batches} 个批次 · {total} 票任务,{completed} 已完成,{abnormal} 需要介入",
"noBlockingTasks": "当前批次没有阻断任务,已完成或正在自动归档。",
"focusTaskRecommendation": "建议先聚焦此单,确认阻断原因后再继续批次内恢复。",
"focusThisTask": "修正此单",
"showWorkspace": "批次工作台",
"hideWorkspace": "隐藏工作台",
"batchWorkspaceTitle": "批次工作台",
"batchWorkspaceSubtitle": "多批次切换、筛选与步骤诊断",
"batchActionsTitle": "批量操作",
"retryFailedTasks": "重试所有失败",
"batchActionSafetyNotice": "待人工任务不会被批量重试;已完成任务不会重复上传。批量恢复仅处理失败或排队任务。",
"taskDetailCount": "任务明细 ({count})",
"filterAll": "全部",
"filterAbnormal": "异常 ({count})",
"filterCompleted": "完成 ({count})",
"emptyFilteredTasks": "暂无相关任务",
"focusRepair": "聚焦修正",
"queryShortageDetails": "查询缺口明细",
"retrySingleTask": "单独重试",
"retrySingleTaskMessage": "重试当前任务 {taskId}",
"viewDetail": "查看明细",
"mobileWorkspaceHint": "移动端工作台已打开,请在任务列表中选择要处理的单票。",
"diagnosisAdviceRetryOrFocus": "建议先聚焦此单查看上下文;若属于外部系统临时失败,可单独重试。",
"diagnosisUploadFailedTitle": "上传货代系统失败,未收到成功回执。",
"diagnosisUploadFailedAdvice": "建议单独重试;若连续失败,请检查货代系统登录状态、字段格式或人工上传。",
"diagnosisShortageTitle": "库存匹配存在缺口,当前不能直接生成完整发货。",
"diagnosisShortageAdvice": "系统已阻断后续发货,请按下方缺口明细补库存或修正通知单后重新匹配。",
"diagnosisShortageLine": "第 {index} 行:预订单号 {reservationId},料号 {sku},需求 {required},可用 {available},缺口 {shortage}",
"diagnosisShortageAdviceWithLines": "缺口明细:{lines}。请补库存或修正通知单后重新匹配。",
"shortageDetailsMessageTitle": "任务 {taskId}({file})的库存缺口明细:",
"shortageNoDetails": "任务 {taskId} 当前未发现库存缺口。",
"diagnosisInventoryRpaTitle": "库存 RPA 未返回可用库存快照。",
"diagnosisInventoryRpaAdvice": "建议先重试库存抓取;若外部系统不可用,可人工上传库存文件。",
"diagnosisAlignReviewTitle": "库存字段映射需要人工确认。",
"diagnosisAlignReviewAdvice": "建议确认 SKU、Reservation ID、可用数量等列映射,避免匹配错料。",
"diagnosisParseReviewTitle": "通知单解析置信度不足,需要复核单头或明细。",
"diagnosisParseReviewAdvice": "建议核对客户、PO、需求日期和订单行后再继续。",
"diagnosisReservationRequiredTitle": "缺少 Reservation ID,无法按预订单锁定库存。",
"diagnosisReservationRequiredAdvice": "建议补充 Reservation ID,或确认该客户允许不带预订单处理。",
"diagnosisInventoryWaitingTitle": "等待库存文件或库存入口确认。",
"diagnosisInventoryWaitingAdvice": "建议上传本批库存快照,或确认系统自动抓取入口。",
"diagnosisCompletedTitle": "任务已完成并归档。",
"diagnosisCompletedAdvice": "无需处理;如需核验可查看导出文件或上传回执。",
"diagnosisStepWaitingTitle": "步骤 {step} 正在等待前置条件。",
"diagnosisStepWaitingAdvice": "建议保持在工作台观察,必要时聚焦此单查看上下文。",
"currentTaskDiagnosis": "当前任务诊断",
"currentTaskPosition": "第 {index}/{total} 票",
"batchTabAbnormal": "{completed} 完成 · {abnormal} 异常",
"batchTabNormal": "{total} 票全部正常",
"interventionQueue": "需介入任务",
"needsIntervention": "需介入",
"currentNotice": "当前通知",
"currentStepLabel": "当前",
"stepHeadline": "步骤 {current}/{total} · {label}",
"stepFraction": "步骤 {current}/{total}",
"stepNeedsConfirm": "步骤 {step} 待确认",
"taskListResume": "任务列表 / 续办",
"retryPendingTasks": "重试未完成票",
"retryPendingTasks": "重试当前批次可恢复任务",
"retryPendingDone": "已重新提交未完成票",
"retryFailed": "重试失败",
"retrying": "重试中...",
"taskListTitle": "任务列表",
"taskListHint": "切换任务后,对话顶部 Stepper 与操作同步更新",
"expandTaskList": "展开列表",
"collapseTaskList": "收起列表",
"currentFocus": "当前聚焦 →",
"expandTaskList": "展开任务列表",
"collapseTaskList": "收起任务列表",
"currentFocus": "当前聚焦:",
"currentFocusDefaultReason": "输入内容将作用于该单票任务",
"focusInputPlaceholder": "正在处理 {taskId},输入指令...",
"clearFocus": "取消聚焦",
"runningState": "进行中",
"pendingState": "待确认",
"completedState": "已完成",
+75 -8
View File
@@ -1,6 +1,6 @@
{
"defaultTitle": "對話",
"assistantLabel": "HXOPS AI 助手",
"assistantLabel": "AI 助手",
"placeholder": "請輸入問題...",
"history": "歷史記錄",
"noHistory": "暫無歷史記錄",
@@ -13,13 +13,18 @@
"loadingAgent": "正在加載應用...",
"thinking": "正在生成回答...",
"disclaimer": "AI 可能會犯錯,請核實重要信息。",
"scrollToLatest": "捲動到最新消息",
"createNewChat": "建立新對話",
"shippingNoticeContinue": "請繼續處理發貨任務 {taskId}。請先呼叫 get_task_status,再告訴我下一步。",
"shippingNoticeContinue": "請繼續處理發貨任務 {taskId}。先讀取目前任務狀態;如果仍待解析,請解析發貨通知並儲存結果;如果已進入後續步驟,請直接說明目前進度和下一步。",
"shippingNoticeActionsHint": "請選擇操作:",
"shippingNoticeMissingTaskId": "找不到任務編號,請先完成發貨通知解析。",
"shippingNoticeUploadDone": "庫存檔案已上傳:{fileName}。",
"shippingNoticeUploadOk": "上傳成功。",
"shippingNoticeUploadFailed": "庫存檔案上傳失敗。",
"shippingNoticeRefreshDone": "已重新整理目前任務狀態。",
"shippingNoticeRetryUploadAction": "重試上傳貨代",
"shippingNoticeRetryUploadQueued": "已重新觸發上傳,請稍後重新整理查看結果。",
"shippingNoticeRetryUploadFailed": "重試上傳失敗。",
"shippingNoticePasteHint": "請在輸入框貼上庫存小表內容後送出。",
"shippingNoticeDecisionDone": "操作已完成。",
"shippingNoticePrompt": {
@@ -42,9 +47,9 @@
"taskLabel": "當前任務 {taskId}",
"taskList": "任務列表:{taskIds}。",
"autoInventoryAction": "上傳庫存並進入欄位對齊",
"autoNoticeAction": "解析發貨通知並建立任務",
"multiTask": "{summary}。{taskListText}請只處理目前焦點任務。先呼叫 get_task_status 讀取目前任務狀態;如果目前任務仍待解析,請讀取 raw_text,用 LLM 抽取結構化欄位後呼叫 parse_notice(structured=...) 落庫;如果已進入後續步驟,請直接說明目前狀態並給出本任務下一步引導。禁止再次詢問我「是否開始解析」,也不要整批迴圈處理其他任務。",
"singleTask": "{summary}。請先呼叫 get_task_status 讀取目前任務狀態;如果目前任務仍待解析,請讀取 raw_text,用 LLM 抽取結構化欄位後直接呼叫 parse_notice(structured=...) 落庫;若已進入後續步驟,請直接說明目前狀態並給出下一步引導。禁止再次詢問我「是否開始解析」或「是否現在開始解析」。"
"autoNoticeAction": "建立任務並解析發貨通知",
"multiTask": "{summary}。{taskListText}請只處理目前焦點任務。先讀取目前任務狀態;如果仍待解析,請解析發貨通知並儲存結果;如果已進入後續步驟,請直接說明目前進度和下一步。不要再次詢問我是否開始解析,也不要整批迴圈處理其他任務。",
"singleTask": "{summary}。請先讀取目前任務狀態;如果仍待解析,請解析發貨通知並儲存結果;如果已進入後續步驟,請直接說明目前進度和下一步。不要再次詢問我是否開始解析。"
}
},
"shippingNoticeMapping": {
@@ -106,17 +111,79 @@
"batchProgress": "第 {index}/{total} 票",
"batchCurrentIndex": "當前處理第 {index}/{total} 票",
"batchSummaryLine": "本批 {total} 筆 · 已完成 {completed} · 進行中 {running} · 待處理 {pending}",
"conversationWorkspaceTitle": "Agent 會話執行摘要",
"conversationSummaryLine": "{batches} 個批次 · {total} 票任務 · {completed} 完成 · {running} 執行中 · {abnormal} 需介入",
"batchChromeSummary": "{total} 票任務,{completed} 完成,{running} 執行中,{abnormal} 需介入",
"agentExecutionSummary": "Agent 執行摘要",
"workspaceSubtitle": "{batches} 個批次 · {total} 票任務,{completed} 已完成,{abnormal} 需要介入",
"noBlockingTasks": "目前批次沒有阻斷任務,已完成或正在自動歸檔。",
"focusTaskRecommendation": "建議先聚焦此單,確認阻斷原因後再繼續批次內恢復。",
"focusThisTask": "修正此單",
"showWorkspace": "批次工作台",
"hideWorkspace": "隱藏工作台",
"batchWorkspaceTitle": "批次工作台",
"batchWorkspaceSubtitle": "多批次切換、篩選與步驟診斷",
"batchActionsTitle": "批量操作",
"retryFailedTasks": "重試所有失敗",
"batchActionSafetyNotice": "待人工任務不會被批量重試;已完成任務不會重複上傳。批量恢復僅處理失敗或排隊任務。",
"taskDetailCount": "任務明細 ({count})",
"filterAll": "全部",
"filterAbnormal": "異常 ({count})",
"filterCompleted": "完成 ({count})",
"emptyFilteredTasks": "暫無相關任務",
"focusRepair": "聚焦修正",
"queryShortageDetails": "查詢缺口明細",
"retrySingleTask": "單獨重試",
"retrySingleTaskMessage": "重試目前任務 {taskId}",
"viewDetail": "查看明細",
"mobileWorkspaceHint": "行動端工作台已開啟,請在任務列表中選擇要處理的單票。",
"diagnosisAdviceRetryOrFocus": "建議先聚焦此單查看上下文;若屬於外部系統暫時失敗,可單獨重試。",
"diagnosisUploadFailedTitle": "上傳貨代系統失敗,未收到成功回執。",
"diagnosisUploadFailedAdvice": "建議單獨重試;若連續失敗,請檢查貨代系統登入狀態、欄位格式或人工上傳。",
"diagnosisShortageTitle": "庫存匹配存在缺口,目前不能直接生成完整發貨。",
"diagnosisShortageAdvice": "系統已阻斷後續發貨,請按下方缺口明細補庫存或修正通知單後重新匹配。",
"diagnosisShortageLine": "第 {index} 行:預訂單號 {reservationId},料號 {sku},需求 {required},可用 {available},缺口 {shortage}",
"diagnosisShortageAdviceWithLines": "缺口明細:{lines}。請補庫存或修正通知單後重新匹配。",
"shortageDetailsMessageTitle": "任務 {taskId}({file})的庫存缺口明細:",
"shortageNoDetails": "任務 {taskId} 目前未發現庫存缺口。",
"diagnosisInventoryRpaTitle": "庫存 RPA 未返回可用庫存快照。",
"diagnosisInventoryRpaAdvice": "建議先重試庫存抓取;若外部系統不可用,可人工上傳庫存檔。",
"diagnosisAlignReviewTitle": "庫存欄位映射需要人工確認。",
"diagnosisAlignReviewAdvice": "建議確認 SKU、Reservation ID、可用數量等欄位映射,避免匹配錯料。",
"diagnosisParseReviewTitle": "通知單解析信心不足,需要覆核單頭或明細。",
"diagnosisParseReviewAdvice": "建議核對客戶、PO、需求日期和訂單行後再繼續。",
"diagnosisReservationRequiredTitle": "缺少 Reservation ID,無法按預訂單鎖定庫存。",
"diagnosisReservationRequiredAdvice": "建議補充 Reservation ID,或確認該客戶允許不帶預訂單處理。",
"diagnosisInventoryWaitingTitle": "等待庫存檔案或庫存入口確認。",
"diagnosisInventoryWaitingAdvice": "建議上傳本批庫存快照,或確認系統自動抓取入口。",
"diagnosisCompletedTitle": "任務已完成並歸檔。",
"diagnosisCompletedAdvice": "無需處理;如需核驗可查看匯出檔或上傳回執。",
"diagnosisStepWaitingTitle": "步驟 {step} 正在等待前置條件。",
"diagnosisStepWaitingAdvice": "建議保持在工作台觀察,必要時聚焦此單查看上下文。",
"currentTaskDiagnosis": "目前任務診斷",
"currentTaskPosition": "第 {index}/{total} 票",
"batchTabAbnormal": "{completed} 完成 · {abnormal} 異常",
"batchTabNormal": "{total} 票全部正常",
"interventionQueue": "需介入任務",
"needsIntervention": "需介入",
"currentNotice": "當前通知",
"currentStepLabel": "目前",
"stepHeadline": "步驟 {current}/{total} · {label}",
"stepFraction": "步驟 {current}/{total}",
"stepNeedsConfirm": "步驟 {step} 待確認",
"taskListResume": "任務列表 / 續辦",
"retryPendingTasks": "重試目前批次可恢復任務",
"retryPendingDone": "已重新提交可恢復任務",
"retryFailed": "重試失敗",
"retrying": "重試中...",
"taskListTitle": "任務列表",
"taskListHint": "切換任務後,對話頂部 Stepper 與操作會同步更新",
"expandTaskList": "展開列表",
"collapseTaskList": "收起列表",
"currentFocus": "目前聚焦 →",
"expandTaskList": "展開任務列表",
"collapseTaskList": "收起任務列表",
"currentFocus": "目前聚焦:",
"currentFocusDefaultReason": "輸入內容將作用於該單票任務",
"focusInputPlaceholder": "正在處理 {taskId},輸入指令...",
"clearFocus": "取消聚焦",
"runningState": "進行中",
"pendingState": "待確認",
"completedState": "已完成",