feat(shipping-notice): 完成货代发货通知全流程开发与代码重构

- 新增PO号提取、预约ID解析(支持`PR@xxx`格式)工具,完善库存匹配逻辑
- 新增库存映射缓存、匹配/解析结果格式化摘要,优化用户提示
- 修复数据库迁移脚本未检查表存在的问题,避免全新部署失败
- 新增路径工具类统一管理相对路径,优化配置文件处理逻辑
- 归档旧文档,将部署、Dify配置合并到`shipping_notice.md`
- 新增完整单元测试与集成测试覆盖核心流程
- 更新前端国际化与会话管理逻辑,优化界面交互
This commit is contained in:
hugo committed 2026-06-04 15:26:34 +08:00
1 parent b62082758b
commit 8deae3146b
65 files changed
+6477 -1937

No files matched your search

+16 -10
View File
@@ -432,14 +432,14 @@ const messages = {
}
},
shippingNotice: {
title: 'Shipping Notice Cases',
title: 'Shipping Notice Tasks',
subtitle: 'Read-only view. Continue processing in Chat.',
refresh: 'Refresh',
search: 'Search',
loading: 'Loading...',
empty: 'No shipping cases yet',
selectCase: 'Select a case to view details',
loadFailed: 'Failed to load case',
empty: 'No shipping tasks yet',
selectCase: 'Select a task to view details',
loadFailed: 'Failed to load task',
openChat: 'Continue in Chat',
download: 'Download Excel',
lines: 'Shipment lines',
@@ -1267,6 +1267,8 @@ const messages = {
placeholder: 'Ask anything...',
history: 'Chat History',
noHistory: 'No history',
historyEmpty: 'This conversation has no saved messages.',
historyLoadFailed: 'Failed to load conversation history.',
newChat: 'New Chat',
rate: 'Rate this response',
send: 'Send',
@@ -1275,9 +1277,9 @@ const messages = {
thinking: 'Generating response...',
disclaimer: 'AI can make mistakes. Please verify important information.',
createNewChat: 'New Chat',
shippingNoticeContinue: 'Please continue shipping case {caseId}. Call get_case_status first and tell me the next step.',
shippingNoticeContinue: 'Please continue shipping task {taskId}. Call get_task_status first and tell me the next step.',
shippingNoticeActionsHint: 'Choose an action (no need to type):',
shippingNoticeMissingCaseId: 'Case ID not found. Complete shipping notice parsing first.',
shippingNoticeMissingTaskId: 'Task ID not found. Complete shipping notice parsing first.',
shippingNoticeUploadDone: 'Inventory file uploaded: {fileName}.',
shippingNoticeUploadOk: 'Upload succeeded.',
shippingNoticeUploadFailed: 'Inventory upload failed.',
@@ -2780,6 +2782,8 @@ const messages = {
placeholder: '请输入问题...',
history: '历史记录',
noHistory: '暂无历史记录',
historyEmpty: '该会话暂无消息记录',
historyLoadFailed: '加载历史会话失败',
newChat: '新对话',
rate: '评价回答',
send: '发送',
@@ -2788,9 +2792,9 @@ const messages = {
thinking: '正在生成回答...',
disclaimer: 'AI 可能会犯错,请核实重要信息。',
createNewChat: '创建新对话',
shippingNoticeContinue: '请继续处理发货任务 {caseId},请先调用 get_case_status 查询当前状态并告知我下一步。',
shippingNoticeContinue: '请继续处理发货任务 {taskId},请先调用 get_task_status 查询当前状态并告知我下一步。',
shippingNoticeActionsHint: '请选择操作(无需输入文字):',
shippingNoticeMissingCaseId: '未找到 case_id,请先完成发货通知解析。',
shippingNoticeMissingTaskId: '未找到任务编号,请先完成发货通知解析。',
shippingNoticeUploadDone: '库存文件已上传:{fileName}。',
shippingNoticeUploadOk: '上传成功。',
shippingNoticeUploadFailed: '库存文件上传失败。',
@@ -4117,6 +4121,8 @@ const messages = {
placeholder: '請輸入問題...',
history: '歷史記錄',
noHistory: '暫無歷史記錄',
historyEmpty: '該會話暫無消息記錄',
historyLoadFailed: '加載歷史會話失敗',
newChat: '新對話',
rate: '評價回答',
send: '發送',
@@ -5363,6 +5369,8 @@ const messages = {
placeholder: 'ถามอะไรก็ได้...',
history: 'ประวัติการแชท',
noHistory: 'ไม่มีประวัติ',
historyEmpty: 'ไม่มีข้อความที่บันทึกไว้ในการสนทนานี้',
historyLoadFailed: 'โหลดประวัติการสนทนาไม่สำเร็จ',
newChat: 'แชทใหม่',
rate: 'ให้คะแนนคำตอบนี้',
send: 'ส่ง',
@@ -5633,5 +5641,3 @@ const i18n = createI18n({
});
export default i18n;