feat(equipment-maintenance): 增加上下文设备解析

This commit is contained in:
sophie committed 2026-07-06 15:20:24 +08:00
1 parent 76d5778c3b
commit 2566ce53e4
21 files changed
+512 -62

No files matched your search

@@ -40,6 +40,7 @@ const props = defineProps<{
canSendMessage: boolean;
isShippingNoticeAgent: boolean;
isMaintenanceAgent?: boolean;
canManageMaintenance?: boolean;
shippingSuggestedPrompt: string;
shippingFocusTaskNo?: string;
shippingFocusReason?: string;
@@ -200,7 +201,7 @@ watch(
ref="textareaRef"
v-model="inputValue"
rows="1"
:placeholder="isVoiceTranscribing ? $t('chat.voiceTranscribing') : isVoiceRecording ? $t('chat.voiceListening') : shippingFocusTaskNo ? $t('chat.shippingNoticeUi.focusInputPlaceholder', { taskId: shippingFocusTaskNo }) : $t('chat.askAnything')"
:placeholder="isVoiceTranscribing ? $t('chat.voiceTranscribing') : isVoiceRecording ? $t('chat.voiceListening') : shippingFocusTaskNo ? $t('chat.shippingNoticeUi.focusInputPlaceholder', { taskId: shippingFocusTaskNo }) : isMaintenanceAgent ? $t('maintenance.chat.inputPlaceholder') : $t('chat.askAnything')"
class="w-full resize-none border-none bg-transparent px-2.5 py-1.5 text-[15px] leading-relaxed text-primary placeholder-slate-400 focus:border-transparent focus:outline-none focus:ring-0"
style="min-height: 40px; max-height: 220px;"
:disabled="isVoiceTranscribing"
@@ -257,7 +258,7 @@ watch(
</div>
<div
v-if="isMaintenanceAgent"
v-if="isMaintenanceAgent && canManageMaintenance"
class="flex flex-wrap items-center gap-2 px-3 pb-1 text-xs text-muted"
>
<button