docs(tec): 更新货代发货通知批次库存能力文档

- 添加单票与多票发货需求的处理方式
- 说明库存 Excel 上传后的保存与关联机制
- 解释库存匹配与 Excel 生成的独立执行方式
- 明确批次库存的真相来源

feat(chat): 优化发货库存上传提示语
- 根据上传结果生成更详细的提示信息
- 增加批次号的提示逻辑
- 使用国际化支持替换硬编码字符串

refactor(chat): 重构发货库存上传处理逻辑
- 移除多余的任务选择逻辑
- 简化上传处理流程
- 增强代码可读性与维护性

feat(locales): 更新多语言支持的提示信息
- 添加库存上传与任务处理的多语言提示
- 更新库存缺口与任务状态的描述
This commit is contained in:
hugo committed 2026-06-26 16:27:49 +08:00
1 parent 1bd9f278fe
commit 1cf8ff40bd
34 files changed
+4367 -3553

No files matched your search

+32 -9
View File
@@ -22,6 +22,29 @@
"shippingNoticeUploadFailed": "Inventory upload failed.",
"shippingNoticePasteHint": "Paste inventory rows in the input box, then send.",
"shippingNoticeDecisionDone": "Action completed.",
"shippingNoticePrompt": {
"inventory": {
"prefix": "I have uploaded the inventory file",
"prefixWithFile": "I have uploaded the inventory file \"{fileName}\"",
"prefixBatch": "I have uploaded the batch inventory snapshot for batch {batchNo}",
"prefixBatchWithFile": "I have uploaded the batch inventory snapshot \"{fileName}\" for batch {batchNo}",
"mapInferSuggested": "{prefix}. Please continue the inventory column mapping. If the system has already identified a complete mapping, apply it directly and show me the field alignment result for confirmation.",
"mapInferPending": "{prefix}. Please continue parsing the inventory column mapping, and after a usable mapping is available, show me the field alignment result for confirmation.",
"alignReview": "{prefix}. Please show the inventory field alignment result and guide me to confirm or correct the mapping.",
"default": "{prefix}. Please continue the inventory import and tell me the next step."
},
"notice": {
"fileLabelSingleFile": "\"{fileName}\"",
"fileLabelMulti": "{fileCount} shipping notices",
"fileLabelDefault": "the shipping notice",
"uploadedPrefix": "I have uploaded {fileLabel}",
"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."
}
},
"shippingNoticeMapping": {
"inventoryHeaders": "Inventory headers",
"headerRow": "Header row: {row}",
@@ -70,7 +93,7 @@
"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.",
"shortageBanner": "Inventory shortage exists. Do not continue to freight upload yet. Resolve the shortage first, or use the available actions to retry matching / revise the input.",
"shortageDetails": "Shortage details",
"shortageRowDetail": "Line {index}: Reservation ID {reservationId}, SKU {sku}, shortage {shortage}",
"availableActions": "Available actions",
@@ -100,13 +123,13 @@
"nextTask": "Next",
"collapseTasks": "Hide tasks",
"viewTasks": "View tasks",
"inventoryTaskPickTitle": "Select inventory target task",
"inventoryTaskPickHint": "This batch contains multiple tasks. To avoid cross-task mistakes, choose which task this inventory belongs to before uploading.",
"inventoryTaskPickPendingHint": "This batch contains multiple tasks. To avoid cross-task mistakes, select the target task first and the pending inventory file will continue uploading after selection.",
"inventoryTaskPickTitle": "Batch inventory snapshot",
"inventoryTaskPickHint": "This batch contains multiple tasks. The inventory file will be uploaded as one batch snapshot, then each task matches independently.",
"inventoryTaskPickPendingHint": "This batch contains multiple tasks. The pending inventory file will be uploaded as one batch snapshot, then each task matches independently.",
"cancelInventoryTaskPick": "Cancel",
"uploadInventoryToTask": "Upload to this task",
"inventoryTargetTask": "Inventory target {taskId}",
"inventoryTargetIdle": "Waiting for target selection",
"uploadInventoryToTask": "Upload batch inventory",
"inventoryTargetTask": "Batch inventory entry {taskId}",
"inventoryTargetIdle": "Waiting for batch inventory",
"fileCount": "Files",
"runningCount": "Running",
"completedCount": "Completed",
@@ -141,13 +164,13 @@
},
"matchStatus": {
"fulfillable": "Fully fulfillable",
"partial": "Partially fulfillable",
"partial": "Shortage exists",
"unfulfillable": "Unfulfillable",
"pending": "Pending match"
},
"rowStatus": {
"ok": "Enough",
"partial": "Partial",
"partial": "Shortage",
"shortage": "Shortage"
},
"stepper": {