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

@@ -20,6 +20,7 @@ export interface ShippingConversationContext {
agentId: number,
kb: string,
files: ChatUploadFileSpec[],
context?: { task_id?: string; batch_no?: string; display_query?: string },
) => Promise<void>;
}
@@ -40,7 +41,10 @@ export function createShippingConversationHelpers(ctx: ShippingConversationConte
const sendShippingMenuMessage = async (message: string) => {
const taskId = ctx.getActiveShippingTaskId();
const text = taskId ? `${message}\n任务编号:${taskId}` : message;
await ctx.sendMessage(text, ctx.currentAgentId.value, ctx.selectedKb.value, []);
await ctx.sendMessage(text, ctx.currentAgentId.value, ctx.selectedKb.value, [], {
task_id: taskId || undefined,
display_query: message,
});
await ensureShippingHistorySynced(ctx);
};