feat(shipping-notice): 新增发货批次和任务管理功能,支持批次创建与任务处理
This commit is contained in:
1 parent
457f0f4e5e
commit
634dee4b81
81 files changed
+9088
-3625
No files matched your search
@@ -22,6 +22,7 @@ export interface ChatPageConversationContext {
|
||||
onConversationLoadFailed: () => Promise<void>;
|
||||
isShippingNoticeAgent: ComputedRef<boolean>;
|
||||
shippingTaskIdFromQuery: ComputedRef<string>;
|
||||
shippingBatchNoFromQuery?: ComputedRef<string>;
|
||||
clearHistory: () => void;
|
||||
clearAttachments: () => void;
|
||||
input: Ref<string>;
|
||||
@@ -51,7 +52,11 @@ export function createChatPageConversationApi(ctx: ChatPageConversationContext)
|
||||
} catch (e) {
|
||||
console.error('Failed to load conversation', e);
|
||||
await ctx.onConversationLoadFailed();
|
||||
if (ctx.isShippingNoticeAgent.value && ctx.shippingTaskIdFromQuery.value && !ctx.isThinking.value) {
|
||||
if (
|
||||
ctx.isShippingNoticeAgent.value
|
||||
&& (ctx.shippingTaskIdFromQuery.value || ctx.shippingBatchNoFromQuery?.value)
|
||||
&& !ctx.isThinking.value
|
||||
) {
|
||||
return;
|
||||
}
|
||||
ctx.deps.msg.warning(ctx.deps.t('chat.historyLoadFailed'));
|
||||
|
||||
Reference in new issue
Block a user