feat(shipping-notice): 新增发货批次和任务管理功能,支持批次创建与任务处理

This commit is contained in:
hugo committed 2026-06-17 20:45:19 +08:00
1 parent 457f0f4e5e
commit 634dee4b81
81 files changed
+9088 -3625

No files matched your search

+90
View File
@@ -40,6 +40,96 @@
"empty": "(empty)",
"unrecognized": "(unrecognized)"
},
"shippingNoticeUi": {
"parseReviewIntro": "Please confirm or revise the parsed result below.",
"parseReviewHeader": "Parsed notice header",
"taskId": "Task ID: {taskId}",
"editHeader": "Edit header",
"cancelEdit": "Cancel edit",
"customer": "Customer",
"customerCode": "Customer code",
"shipTo": "Ship to",
"poNumber": "PO number",
"requiredDate": "Required date",
"saveHeader": "Save header",
"saving": "Saving...",
"orderLines": "Order lines",
"addLine": "Add line",
"reservationId": "Reservation ID",
"sku": "SKU",
"qty": "Qty",
"actions": "Actions",
"editLine": "Edit",
"deleteLine": "Delete",
"addOrderLine": "Add order line",
"saveAddedLine": "Save new line",
"editLineTitle": "Edit line {index}",
"saveLineItem": "Save line item",
"matchResult": "Inventory match result",
"orderDemand": "Order demand",
"inventoryAvailable": "Inventory available",
"shortageQty": "Shortage",
"statusLabel": "Status",
"shortageBanner": "Inventory shortage exists. Do not continue to freight upload yet. Resolve the shortage first, or use the available actions to confirm partial shipment / retry matching.",
"shortageDetails": "Shortage details",
"shortageRowDetail": "Line {index}: Reservation ID {reservationId}, SKU {sku}, shortage {shortage}",
"availableActions": "Available actions",
"stepperTitle": "Workflow steps",
"batchTitle": "Shipping batch",
"taskTitle": "Shipping task",
"currentTask": "Current task {taskId}",
"batchProgress": "Item {index}/{total}",
"currentNotice": "Current notice",
"prevTask": "Previous",
"nextTask": "Next",
"collapseTasks": "Hide tasks",
"viewTasks": "View tasks",
"fileCount": "Files",
"runningCount": "Running",
"completedCount": "Completed",
"batchProgressTitle": "Batch progress",
"processing": "Processing",
"status": {
"created": "Pending parse",
"waitingInventory": "Waiting inventory",
"inventoryReady": "Inventory ready",
"matched": "Matched",
"waitingUpload": "Waiting upload",
"uploaded": "Completed",
"uploadFailed": "Upload failed",
"rejected": "Rejected",
"closed": "Closed"
},
"currentStep": {
"noticeParse": "Notice parsing",
"inventoryPrepare": "Inventory prep",
"inventoryMatch": "Inventory match",
"shortageHandle": "Shortage handling",
"generateExcel": "Generate Excel",
"uploadFreight": "Upload to freight",
"finishArchive": "Archive"
},
"matchStatus": {
"fulfillable": "Fully fulfillable",
"partial": "Partially fulfillable",
"unfulfillable": "Unfulfillable",
"pending": "Pending match"
},
"rowStatus": {
"ok": "Enough",
"partial": "Partial",
"shortage": "Shortage"
},
"stepper": {
"noticeSubmit": "Submit notice",
"parseConfirm": "Confirm parsing",
"inventoryPrepare": "Get inventory",
"alignConfirm": "Confirm mapping",
"matchInventory": "Match inventory",
"generateFile": "Generate shipment file",
"uploadFreight": "Upload freight"
}
},
"clearAll": "Clear All",
"clearOneRecord": "Clear This Record",
"agents": "Agents",
+90
View File
@@ -40,6 +40,96 @@
"empty": "(ว่าง)",
"unrecognized": "(ไม่รู้จัก)"
},
"shippingNoticeUi": {
"parseReviewIntro": "โปรดยืนยันหรือแก้ไขผลการแยกข้อมูลด้านล่าง",
"parseReviewHeader": "หัวข้อมูลที่แยกแล้ว",
"taskId": "รหัสงาน: {taskId}",
"editHeader": "แก้ไขส่วนหัว",
"cancelEdit": "ยกเลิกการแก้ไข",
"customer": "ลูกค้า",
"customerCode": "รหัสลูกค้า",
"shipTo": "ผู้รับสินค้า",
"poNumber": "เลขที่ PO",
"requiredDate": "วันที่ต้องการ",
"saveHeader": "บันทึกส่วนหัว",
"saving": "กำลังบันทึก...",
"orderLines": "รายการคำสั่งซื้อ",
"addLine": "เพิ่มแถว",
"reservationId": "Reservation ID",
"sku": "SKU",
"qty": "จำนวน",
"actions": "การทำงาน",
"editLine": "แก้ไข",
"deleteLine": "ลบ",
"addOrderLine": "เพิ่มรายการคำสั่งซื้อ",
"saveAddedLine": "บันทึกรายการใหม่",
"editLineTitle": "แก้ไขแถวที่ {index}",
"saveLineItem": "บันทึกรายการ",
"matchResult": "ผลการจับคู่สต็อก",
"orderDemand": "ความต้องการตามคำสั่งซื้อ",
"inventoryAvailable": "สต็อกที่ใช้ได้",
"shortageQty": "จำนวนที่ขาด",
"statusLabel": "สถานะ",
"shortageBanner": "มีสต็อกขาดอยู่ จึงยังไม่ควรอัปโหลดไปยังผู้ให้บริการขนส่งต่อ กรุณาจัดการส่วนที่ขาดก่อน หรือใช้ปุ่มที่มีให้เพื่อยืนยันการส่งบางส่วน / จับคู่ใหม่",
"shortageDetails": "รายละเอียดส่วนขาด",
"shortageRowDetail": "แถว {index}: Reservation ID {reservationId}, SKU {sku}, ขาด {shortage}",
"availableActions": "การทำงานที่ใช้ได้",
"stepperTitle": "ขั้นตอนการทำงาน",
"batchTitle": "ชุดงานจัดส่ง",
"taskTitle": "งานจัดส่ง",
"currentTask": "งานปัจจุบัน {taskId}",
"batchProgress": "รายการ {index}/{total}",
"currentNotice": "ใบแจ้งปัจจุบัน",
"prevTask": "ก่อนหน้า",
"nextTask": "ถัดไป",
"collapseTasks": "ซ่อนงาน",
"viewTasks": "ดูงาน",
"fileCount": "จำนวนไฟล์",
"runningCount": "กำลังดำเนินการ",
"completedCount": "เสร็จแล้ว",
"batchProgressTitle": "ความคืบหน้าของชุดงาน",
"processing": "กำลังดำเนินการ",
"status": {
"created": "รอแยกข้อมูล",
"waitingInventory": "รอสต็อก",
"inventoryReady": "สต็อกพร้อม",
"matched": "จับคู่แล้ว",
"waitingUpload": "รออัปโหลด",
"uploaded": "เสร็จสมบูรณ์",
"uploadFailed": "อัปโหลดล้มเหลว",
"rejected": "ถูกปฏิเสธ",
"closed": "ปิดแล้ว"
},
"currentStep": {
"noticeParse": "แยกใบแจ้ง",
"inventoryPrepare": "เตรียมสต็อก",
"inventoryMatch": "จับคู่สต็อก",
"shortageHandle": "จัดการส่วนขาด",
"generateExcel": "สร้าง Excel",
"uploadFreight": "อัปโหลดผู้ให้บริการขนส่ง",
"finishArchive": "เก็บงาน"
},
"matchStatus": {
"fulfillable": "จัดส่งได้ครบ",
"partial": "จัดส่งได้บางส่วน",
"unfulfillable": "จัดส่งไม่ได้",
"pending": "รอจับคู่"
},
"rowStatus": {
"ok": "เพียงพอ",
"partial": "บางส่วน",
"shortage": "ขาด"
},
"stepper": {
"noticeSubmit": "ส่งใบแจ้ง",
"parseConfirm": "ยืนยันผลแยก",
"inventoryPrepare": "เตรียมสต็อก",
"alignConfirm": "ยืนยันการจับคู่คอลัมน์",
"matchInventory": "จับคู่สต็อก",
"generateFile": "สร้างไฟล์จัดส่ง",
"uploadFreight": "อัปโหลดผู้ให้บริการขนส่ง"
}
},
"clearAll": "ล้างทั้งหมด",
"clearOneRecord": "ลบรายการนี้",
"agents": "ตัวแทน",
+90
View File
@@ -40,6 +40,96 @@
"empty": "(空)",
"unrecognized": "(未识别)"
},
"shippingNoticeUi": {
"parseReviewIntro": "请确认或修订以下解析结果。",
"parseReviewHeader": "解析结果单头",
"taskId": "任务编号:{taskId}",
"editHeader": "编辑单头",
"cancelEdit": "取消编辑",
"customer": "客户",
"customerCode": "客户编码",
"shipTo": "收货方",
"poNumber": "采购单号",
"requiredDate": "需求日期",
"saveHeader": "保存单头",
"saving": "保存中...",
"orderLines": "订单行",
"addLine": "新增一行",
"reservationId": "预订单号",
"sku": "料号",
"qty": "数量",
"actions": "操作",
"editLine": "编辑",
"deleteLine": "删除",
"addOrderLine": "新增订单行",
"saveAddedLine": "保存新增行",
"editLineTitle": "编辑第 {index} 行",
"saveLineItem": "保存行项目",
"matchResult": "库存匹配结果",
"orderDemand": "订单需求",
"inventoryAvailable": "库存可用",
"shortageQty": "缺口",
"statusLabel": "状态",
"shortageBanner": "存在库存缺口,当前不能直接继续上传货代。请先处理缺口,或按可用按钮确认部分发货 / 重新匹配。",
"shortageDetails": "缺口明细",
"shortageRowDetail": "第 {index} 行:预订单号 {reservationId},料号 {sku},缺口 {shortage}",
"availableActions": "可用操作",
"stepperTitle": "流程步骤",
"batchTitle": "发货批次",
"taskTitle": "发货任务",
"currentTask": "当前任务 {taskId}",
"batchProgress": "第 {index}/{total} 票",
"currentNotice": "当前通知",
"prevTask": "上一票",
"nextTask": "下一票",
"collapseTasks": "收起任务",
"viewTasks": "查看任务",
"fileCount": "文件数",
"runningCount": "处理中",
"completedCount": "已完成",
"batchProgressTitle": "批次进度",
"processing": "处理中",
"status": {
"created": "待解析",
"waitingInventory": "待库存",
"inventoryReady": "库存就绪",
"matched": "已匹配",
"waitingUpload": "待上传",
"uploaded": "已完成",
"uploadFailed": "上传失败",
"rejected": "已驳回",
"closed": "已关闭"
},
"currentStep": {
"noticeParse": "通知解析",
"inventoryPrepare": "库存准备",
"inventoryMatch": "库存匹配",
"shortageHandle": "缺口处理",
"generateExcel": "生成 Excel",
"uploadFreight": "上传货代",
"finishArchive": "完成归档"
},
"matchStatus": {
"fulfillable": "可全部发货",
"partial": "部分满足",
"unfulfillable": "无法满足",
"pending": "待匹配"
},
"rowStatus": {
"ok": "充足",
"partial": "部分满足",
"shortage": "缺口"
},
"stepper": {
"noticeSubmit": "提交通知",
"parseConfirm": "确认解析",
"inventoryPrepare": "获取库存",
"alignConfirm": "确认字段对齐",
"matchInventory": "匹配库存",
"generateFile": "生成发货文件",
"uploadFreight": "上传货代"
}
},
"clearAll": "清空全部",
"clearOneRecord": "清除该记录",
"agents": "智能体",
+116
View File
@@ -14,6 +14,122 @@
"thinking": "正在生成回答...",
"disclaimer": "AI 可能會犯錯,請核實重要信息。",
"createNewChat": "建立新對話",
"shippingNoticeContinue": "請繼續處理發貨任務 {taskId}。請先呼叫 get_task_status,再告訴我下一步。",
"shippingNoticeActionsHint": "請選擇操作:",
"shippingNoticeMissingTaskId": "找不到任務編號,請先完成發貨通知解析。",
"shippingNoticeUploadDone": "庫存檔案已上傳:{fileName}。",
"shippingNoticeUploadOk": "上傳成功。",
"shippingNoticeUploadFailed": "庫存檔案上傳失敗。",
"shippingNoticePasteHint": "請在輸入框貼上庫存小表內容後送出。",
"shippingNoticeDecisionDone": "操作已完成。",
"shippingNoticeMapping": {
"inventoryHeaders": "庫存表頭",
"headerRow": "表頭列:{row}",
"sample": "樣例",
"orderDetails": "訂單明細",
"orderRowCount": "訂單行數:{count}",
"orderSkuPreview": "SKU(前{count}):{skus}",
"skuColumnRequired": "SKU 欄位(必填)",
"availableQtyColumnRequired": "可用數量欄位(必填)",
"reservationIdColumnOptional": "Reservation ID 欄位(選填)",
"selectHeader": "請選擇表頭欄位",
"reservationIdNotUsed": "(不使用 Reservation ID)",
"reupload": "重新上傳",
"applying": "套用中...",
"applyAndParse": "套用映射並解析",
"empty": "(空)",
"unrecognized": "(未辨識)"
},
"shippingNoticeUi": {
"parseReviewIntro": "請確認或修訂以下解析結果。",
"parseReviewHeader": "解析結果單頭",
"taskId": "任務編號:{taskId}",
"editHeader": "編輯單頭",
"cancelEdit": "取消編輯",
"customer": "客戶",
"customerCode": "客戶代碼",
"shipTo": "收貨方",
"poNumber": "採購單號",
"requiredDate": "需求日期",
"saveHeader": "儲存單頭",
"saving": "儲存中...",
"orderLines": "訂單行",
"addLine": "新增一行",
"reservationId": "預訂單號",
"sku": "料號",
"qty": "數量",
"actions": "操作",
"editLine": "編輯",
"deleteLine": "刪除",
"addOrderLine": "新增訂單行",
"saveAddedLine": "儲存新增行",
"editLineTitle": "編輯第 {index} 行",
"saveLineItem": "儲存行項目",
"matchResult": "庫存匹配結果",
"orderDemand": "訂單需求",
"inventoryAvailable": "庫存可用",
"shortageQty": "缺口",
"statusLabel": "狀態",
"shortageBanner": "存在庫存缺口,目前不能直接繼續上傳貨代。請先處理缺口,或依可用按鈕確認部分發貨 / 重新匹配。",
"shortageDetails": "缺口明細",
"shortageRowDetail": "第 {index} 行:預訂單號 {reservationId},料號 {sku},缺口 {shortage}",
"availableActions": "可用操作",
"stepperTitle": "流程步驟",
"batchTitle": "發貨批次",
"taskTitle": "發貨任務",
"currentTask": "當前任務 {taskId}",
"batchProgress": "第 {index}/{total} 票",
"currentNotice": "當前通知",
"prevTask": "上一票",
"nextTask": "下一票",
"collapseTasks": "收起任務",
"viewTasks": "查看任務",
"fileCount": "檔案數",
"runningCount": "處理中",
"completedCount": "已完成",
"batchProgressTitle": "批次進度",
"processing": "處理中",
"status": {
"created": "待解析",
"waitingInventory": "待庫存",
"inventoryReady": "庫存就緒",
"matched": "已匹配",
"waitingUpload": "待上傳",
"uploaded": "已完成",
"uploadFailed": "上傳失敗",
"rejected": "已駁回",
"closed": "已關閉"
},
"currentStep": {
"noticeParse": "通知解析",
"inventoryPrepare": "庫存準備",
"inventoryMatch": "庫存匹配",
"shortageHandle": "缺口處理",
"generateExcel": "生成 Excel",
"uploadFreight": "上傳貨代",
"finishArchive": "完成歸檔"
},
"matchStatus": {
"fulfillable": "可全部發貨",
"partial": "部分滿足",
"unfulfillable": "無法滿足",
"pending": "待匹配"
},
"rowStatus": {
"ok": "充足",
"partial": "部分滿足",
"shortage": "缺口"
},
"stepper": {
"noticeSubmit": "提交通知",
"parseConfirm": "確認解析",
"inventoryPrepare": "獲取庫存",
"alignConfirm": "確認欄位對齊",
"matchInventory": "匹配庫存",
"generateFile": "生成發貨文件",
"uploadFreight": "上傳貨代"
}
},
"clearAll": "清空全部",
"clearOneRecord": "清除此記錄",
"agents": "智能體",