1
This commit is contained in:
@@ -662,6 +662,13 @@
|
||||
/>
|
||||
<el-empty v-else description="请先保存诊单后再查看挂号记录" />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="医生备注" name="doctorNote" :disabled="!formData.id" lazy>
|
||||
<div v-if="formData.id" class="p-4">
|
||||
<NoteTimeline v-if="diagNotes.length" :notes="diagNotes" />
|
||||
<el-empty v-else description="暂无备注记录" :image-size="48" />
|
||||
</div>
|
||||
<el-empty v-else description="请先保存诊单后查看" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
|
||||
<!-- 处方详情(查看病历) -->
|
||||
@@ -702,7 +709,9 @@ import CallRecordPanel from './components/CallRecordPanel.vue'
|
||||
import ImChatRecordPanel from './components/ImChatRecordPanel.vue'
|
||||
import AssignLogPanel from './components/AssignLogPanel.vue'
|
||||
import AppointmentRecordPanel from './components/AppointmentRecordPanel.vue'
|
||||
import NoteTimeline from '@/views/patient/reception/components/NoteTimeline.vue'
|
||||
import TcmPrescription from '@/components/tcm-prescription/index.vue'
|
||||
import { getDoctorNotes } from '@/api/patient'
|
||||
import {
|
||||
DIAGNOSIS_TONGUE_IMAGES_UPDATED,
|
||||
type DiagnosisTongueImagesUpdatedDetail
|
||||
@@ -733,6 +742,16 @@ const drawerTitle = computed(() => {
|
||||
return mode.value === 'add' ? '新增诊单' : '编辑诊单'
|
||||
})
|
||||
|
||||
const diagNotes = ref<any[]>([])
|
||||
|
||||
watch(() => activeTab.value, async (tab) => {
|
||||
if (tab === 'doctorNote' && formData.value.id) {
|
||||
try {
|
||||
diagNotes.value = await getDoctorNotes({ diagnosis_id: Number(formData.value.id) }) || []
|
||||
} catch { diagNotes.value = [] }
|
||||
}
|
||||
})
|
||||
|
||||
watch([visible, activeTab], () => {
|
||||
if (!visible.value) return
|
||||
if (activeTab.value === 'chat' && !hasPermission(['tcm.diagnosis/chat'])) {
|
||||
|
||||
Reference in New Issue
Block a user