feat(chat): 更新发货任务处理逻辑和界面文本
- 移除不必要的状态引用 - 更新上传处理提示文本,使用国际化支持 - 扩展发货任务摘要接口,增加错误信息和短缺信息 - 更新多语言支持的文本,改善用户体验 - 增加批次工作区的汇总信息和操作提示
This commit is contained in:
1 parent
0b083cfdbd
commit
1fc9976ca3
60 files changed
+3876
-639
No files matched your search
@@ -20,7 +20,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"parse.no_lines": "未解析到订单明细行,请重新上传或重新解析。",
|
||||
"parse.low_conf": "解析置信度较低,请重点核对料号、预订单号、数量、单价与金额。",
|
||||
"parse.confirm": "请确认以上信息是否正确?",
|
||||
"parse.hint": "回复「确认」进入库存检查;「重新解析」重试;「驳回」终止本任务。",
|
||||
"parse.hint": "请核对信息后使用下方按钮继续。",
|
||||
"parse.hint_btn": "",
|
||||
"align.title": "【库存字段对齐确认 — 确认后再匹配】任务编号:{task_no}",
|
||||
"align.match_rule": "匹配规则:{rule}{note}",
|
||||
@@ -35,7 +35,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"align.source.fallback": "(后端动态兜底)",
|
||||
"align.source.other": "({source})",
|
||||
"align.confirm": "请确认以上字段对齐是否正确。",
|
||||
"align.hint": "回复「确认」进入匹配;「更正映射」重选列;「重新上传」换库存文件;「驳回」终止本任务。",
|
||||
"align.hint": "请核对字段对齐后使用下方按钮继续。",
|
||||
"align.hint_btn": "",
|
||||
"common.tips": "提示:",
|
||||
"table.field": "字段",
|
||||
@@ -109,6 +109,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"workflow.inventory.uploading": "正在上传并解析库存文件",
|
||||
"workflow.inventory.uploading_detail": "正在处理库存文件 {filename}",
|
||||
"workflow.inventory.save_failed": "保存库存文件失败: {error}",
|
||||
"workflow.inventory.completed_task_locked": "该任务已完成,不能再重新上传库存。请切换到仍待处理的任务后再上传库存文件。",
|
||||
"workflow.inventory.uploaded": "库存文件已上传。",
|
||||
"workflow.inventory.uploaded_suggested_complete": " suggested_mapping 已完整,画布可直通 apply_inventory_mapping(无需 LLM)。",
|
||||
"workflow.inventory.uploaded_need_llm": " 请由画布 LLM 推断列映射后 apply_inventory_mapping。",
|
||||
@@ -133,7 +134,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"workflow.fulfillment.manual_already_done": "任务 {task_no} 已标记为完成,无需重复操作。",
|
||||
"workflow.fulfillment.manual_confirmed": "已确认手工上传货代完成",
|
||||
"workflow.fulfillment.task_completed": "任务已完成",
|
||||
"workflow.fulfillment.manual_done_message": "已标记为手工上传货代系统完成。任务 {task_no} 已全部处理完毕,无需再进行任何操作。",
|
||||
"workflow.fulfillment.manual_done_message": "好的,任务 {task_no} 已确认完成,无需再处理。",
|
||||
"workflow.fulfillment.upload_running": "RPA 上传进行中(第 {attempt}/{max_attempts} 次)。已等待 {elapsed}s / 超时 {timeout}s。请稍后再试(建议 {remaining}s 后)。",
|
||||
"workflow.fulfillment.upload_timeout_error": "RPA 上传超时(>{timeout}s)",
|
||||
"workflow.fulfillment.upload_exhausted": "已尝试 {attempts} 次仍无法通过 RPA 上传,请下载 Excel 手工上传。",
|
||||
@@ -154,7 +155,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"parse.no_lines": "No order lines found. Please re-upload or re-parse.",
|
||||
"parse.low_conf": "Low confidence. Please double-check SKU, Qty, Reservation ID, Unit Price and Amount.",
|
||||
"parse.confirm": "Please confirm the above information.",
|
||||
"parse.hint": 'Reply "Confirm" to proceed; "Re-parse" to retry; "Reject" to stop this task.',
|
||||
"parse.hint": "Review the information, then use the buttons below to continue.",
|
||||
"parse.hint_btn": "",
|
||||
"align.title": "[Inventory mapping confirmation] Task: {task_no}",
|
||||
"align.match_rule": "Match rule: {rule}{note}",
|
||||
@@ -169,7 +170,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"align.source.fallback": " (backend fallback)",
|
||||
"align.source.other": " ({source})",
|
||||
"align.confirm": "Please confirm the field alignment above.",
|
||||
"align.hint": 'Reply "Confirm" to match; "Fix mapping" to reselect columns; "Re-upload" to change the inventory file; "Reject" to stop.',
|
||||
"align.hint": "Review the field alignment, then use the buttons below to continue.",
|
||||
"align.hint_btn": "",
|
||||
"common.tips": "Notes:",
|
||||
"table.field": "Field",
|
||||
@@ -243,6 +244,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"workflow.inventory.uploading": "Uploading and parsing the inventory file.",
|
||||
"workflow.inventory.uploading_detail": "Processing inventory file {filename}",
|
||||
"workflow.inventory.save_failed": "Failed to save inventory file: {error}",
|
||||
"workflow.inventory.completed_task_locked": "This task is already completed, so inventory cannot be uploaded again. Please switch to a task that still needs processing.",
|
||||
"workflow.inventory.uploaded": "The inventory file has been uploaded.",
|
||||
"workflow.inventory.uploaded_suggested_complete": " suggested_mapping is complete, so the canvas can call apply_inventory_mapping directly without using the LLM.",
|
||||
"workflow.inventory.uploaded_need_llm": " Please let the canvas LLM infer the column mapping and then call apply_inventory_mapping.",
|
||||
@@ -267,7 +269,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"workflow.fulfillment.manual_already_done": "Task {task_no} is already marked complete. No further action is needed.",
|
||||
"workflow.fulfillment.manual_confirmed": "Manual freight upload has been confirmed.",
|
||||
"workflow.fulfillment.task_completed": "Task completed.",
|
||||
"workflow.fulfillment.manual_done_message": "The task has been marked as manually uploaded to the freight system. Task {task_no} is fully completed and no further action is needed.",
|
||||
"workflow.fulfillment.manual_done_message": "Done. Task {task_no} is confirmed complete. No further action is needed.",
|
||||
"workflow.fulfillment.upload_running": "RPA upload is in progress (attempt {attempt}/{max_attempts}). Waited {elapsed}s / timeout {timeout}s. Please try again later (recommended after {remaining}s).",
|
||||
"workflow.fulfillment.upload_timeout_error": "RPA upload timed out (>{timeout}s)",
|
||||
"workflow.fulfillment.upload_exhausted": "RPA upload failed after {attempts} attempts. Please download the Excel and upload it manually.",
|
||||
@@ -288,7 +290,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"parse.no_lines": "ไม่พบบรรทัดรายการสั่งซื้อ กรุณาอัปโหลดใหม่หรือแยกใหม่อีกครั้ง",
|
||||
"parse.low_conf": "ความมั่นใจต่ำ กรุณาตรวจสอบ SKU, จำนวน, Reservation ID, ราคาต่อหน่วย และจำนวนเงิน",
|
||||
"parse.confirm": "กรุณายืนยันว่าข้อมูลด้านบนถูกต้องหรือไม่",
|
||||
"parse.hint": 'พิมพ์ "ยืนยัน" เพื่อไปต่อ; "แยกใหม่" เพื่อลองใหม่; "ปฏิเสธ" เพื่อยุติงานนี้',
|
||||
"parse.hint": "ตรวจสอบข้อมูลแล้วใช้ปุ่มด้านล่างเพื่อดำเนินการต่อ",
|
||||
"parse.hint_btn": "",
|
||||
"align.title": "【ยืนยันการจับคู่คอลัมน์สต็อก】งาน: {task_no}",
|
||||
"align.match_rule": "กฎการจับคู่: {rule}{note}",
|
||||
@@ -303,7 +305,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"align.source.fallback": " (สำรองโดยระบบ)",
|
||||
"align.source.other": " ({source})",
|
||||
"align.confirm": "กรุณายืนยันว่าการจับคู่ฟิลด์ด้านบนถูกต้อง",
|
||||
"align.hint": 'พิมพ์ "ยืนยัน" เพื่อจับคู่; "แก้ไขการจับคู่" เพื่อเลือกคอลัมน์ใหม่; "อัปโหลดใหม่" เพื่อเปลี่ยนไฟล์สต็อก; "ปฏิเสธ" เพื่อยุติ',
|
||||
"align.hint": "ตรวจสอบการจับคู่ฟิลด์แล้วใช้ปุ่มด้านล่างเพื่อดำเนินการต่อ",
|
||||
"align.hint_btn": "",
|
||||
"common.tips": "หมายเหตุ:",
|
||||
"table.field": "ฟิลด์",
|
||||
@@ -377,6 +379,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"workflow.inventory.uploading": "กำลังอัปโหลดและ解析ไฟล์สต็อก",
|
||||
"workflow.inventory.uploading_detail": "กำลังประมวลผลไฟล์สต็อก {filename}",
|
||||
"workflow.inventory.save_failed": "บันทึกไฟล์สต็อกไม่สำเร็จ: {error}",
|
||||
"workflow.inventory.completed_task_locked": "งานนี้เสร็จสิ้นแล้ว จึงไม่สามารถอัปโหลดสต็อกซ้ำได้ โปรดสลับไปยังงานที่ยังต้องดำเนินการ",
|
||||
"workflow.inventory.uploaded": "อัปโหลดไฟล์สต็อกแล้ว",
|
||||
"workflow.inventory.uploaded_suggested_complete": " suggested_mapping ครบแล้ว จึงสามารถเรียก apply_inventory_mapping ได้ตรงจาก canvas โดยไม่ต้องผ่าน LLM",
|
||||
"workflow.inventory.uploaded_need_llm": " โปรดให้ LLM บน canvas อนุมานการจับคู่คอลัมน์ แล้วจึงเรียก apply_inventory_mapping",
|
||||
@@ -401,7 +404,7 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"workflow.fulfillment.manual_already_done": "งาน {task_no} ถูกทำเครื่องหมายว่าเสร็จแล้ว จึงไม่ต้องดำเนินการซ้ำ",
|
||||
"workflow.fulfillment.manual_confirmed": "ยืนยันการอัปโหลดเข้าระบบขนส่งด้วยตนเองแล้ว",
|
||||
"workflow.fulfillment.task_completed": "งานเสร็จสิ้นแล้ว",
|
||||
"workflow.fulfillment.manual_done_message": "ทำเครื่องหมายว่าอัปโหลดเข้าระบบขนส่งด้วยตนเองเสร็จแล้ว งาน {task_no} เสร็จสมบูรณ์และไม่ต้องดำเนินการต่อ",
|
||||
"workflow.fulfillment.manual_done_message": "เรียบร้อย งาน {task_no} ยืนยันว่าเสร็จแล้ว ไม่ต้องดำเนินการต่อ",
|
||||
"workflow.fulfillment.upload_running": "RPA กำลังอัปโหลดอยู่ (ครั้งที่ {attempt}/{max_attempts}) รอแล้ว {elapsed}s / หมดเวลา {timeout}s โปรดลองอีกครั้งภายหลัง (แนะนำหลัง {remaining}s)",
|
||||
"workflow.fulfillment.upload_timeout_error": "RPA อัปโหลดหมดเวลา (>{timeout}s)",
|
||||
"workflow.fulfillment.upload_exhausted": "พยายามอัปโหลดผ่าน RPA มาแล้ว {attempts} ครั้งแต่ยังไม่สำเร็จ โปรดดาวน์โหลด Excel แล้วอัปโหลดด้วยตนเอง",
|
||||
|
||||
Reference in new issue
Block a user