This commit is contained in:
Your Name
2026-03-11 09:49:47 +08:00
parent 02ae537b4c
commit 38ad60f4bb
290 changed files with 36917 additions and 123 deletions
+24 -8
View File
@@ -193,7 +193,7 @@
v-perms="['doctor.appointment/prescription']"
type="success"
link
@click="handleCreatePrescription(row)"
@click="handleChat(row)"
>
聊天
</el-button>
@@ -271,6 +271,7 @@
<script setup lang="ts">
import { usePaging } from '@/hooks/usePaging'
import { appointmentLists, cancelAppointment, completeAppointment, appointmentDetail } from '@/api/doctor'
import { getCallSignature } from '@/api/tcm'
import feedback from '@/utils/feedback'
import EditPopup from '../diagnosis/edit.vue'
import VideoCall from '@/components/video-call/index.vue'
@@ -459,8 +460,8 @@ const handleGroupVideoCall = (row: any) => {
})
}
// 创建处方单
const handleCreatePrescription = async (row: any) => {
// 聊天
const handleChat = async (row: any) => {
if (!row.patient_id) {
feedback.msgWarning('患者信息不完整')
return
@@ -472,11 +473,26 @@ const handleCreatePrescription = async (row: any) => {
return
}
chatDialogRef.value?.open({
patientId: row.patient_id,
patientName: row.patient_name,
diagnosisId: row.diagnosis_id || row.id // 使用诊单ID,如果没有则使用预约ID
})
try {
// 获取聊天签名信息
const res = await getCallSignature({
patient_id: row.patient_id,
diagnosis_id: row.diagnosis_id || row.id
})
console.log('获取聊天签名成功:', res)
// 直接打开聊天对话框,传入必要的参数
chatDialogRef.value?.open({
patientId: row.patient_id,
patientName: row.patient_name,
diagnosisId: row.diagnosis_id || row.id,
signatureData: res // 传入签名数据
})
} catch (error: any) {
console.error('获取聊天签名失败:', error)
feedback.msgError(error.message || '获取聊天签名失败')
}
}
loadData()
+2 -2
View File
@@ -894,7 +894,7 @@ defineExpose({
}
</style>
<style lang="scss">
<style lang="scss" scoped>
/* 全局样式,用于提高弹出层的z-index */
.high-z-index {
z-index: 3000 !important;
@@ -906,7 +906,7 @@ defineExpose({
}
.el-overlay {
z-index: 1499 !important;
z-index: 1499 ;
}
/* 确保日期选择器和下拉选择器的弹出层在最上层 */