Compare commits

..

No commits in common. "316bad38b2bdb5ce4df30c1891a643d42a7e6cd8" and "c3add8079c131c131f6a0e13132ae85885856e98" have entirely different histories.

2 changed files with 18 additions and 19 deletions

View File

@ -1,8 +1,5 @@
<template> <template>
<view class="input-section" :style="{ bottom: props.keyboardHeight + 'px' }"> <view class="input-section" :style="{ bottom: props.keyboardHeight + 'px' }">
<!-- AI助手按钮组 -->
<slot name="ai-assistant"></slot>
<view class="input-toolbar"> <view class="input-toolbar">
<view @click="toggleVoiceInput" class="voice-toggle-btn"> <view @click="toggleVoiceInput" class="voice-toggle-btn">
<image v-if="showVoiceInput" src="/static/jianpan.png" class="voice-toggle-icon" mode="aspectFit"></image> <image v-if="showVoiceInput" src="/static/jianpan.png" class="voice-toggle-icon" mode="aspectFit"></image>

View File

@ -135,6 +135,23 @@
@cancel="handleRejectReasonCancel" @cancel="handleRejectReasonCancel"
/> />
<!-- AI助手按钮组 -->
<AIAssistantButtons
v-if="
!isEvaluationPopupOpen &&
!showConsultAccept &&
orderStatus === 'processing'
"
ref="aiAssistantRef"
:groupId="groupId"
:patientAccountId="chatInfo.userID || ''"
:patientId="patientId"
:corpId="corpId"
@streamText="handleStreamText"
@clearInput="handleClearInput"
@generatingStateChange="handleGeneratingStateChange"
/>
<!-- 聊天输入组件 --> <!-- 聊天输入组件 -->
<ChatInput <ChatInput
v-if="!isEvaluationPopupOpen && !showConsultAccept" v-if="!isEvaluationPopupOpen && !showConsultAccept"
@ -158,22 +175,7 @@
@messageSent="() => scrollToBottom(true)" @messageSent="() => scrollToBottom(true)"
@endConsult="handleEndConsult" @endConsult="handleEndConsult"
@openConsult="handleOpenConsult" @openConsult="handleOpenConsult"
>
<!-- AI助手按钮组插槽 -->
<template #ai-assistant>
<AIAssistantButtons
v-if="orderStatus === 'processing'"
ref="aiAssistantRef"
:groupId="groupId"
:patientAccountId="chatInfo.userID || ''"
:patientId="patientId"
:corpId="corpId"
@streamText="handleStreamText"
@clearInput="handleClearInput"
@generatingStateChange="handleGeneratingStateChange"
/> />
</template>
</ChatInput>
</view> </view>
</template> </template>