门诊医生站患者病历打不开 不显示数据问题

This commit is contained in:
2025-12-16 17:12:21 +08:00
parent 3188ca5752
commit 633cf2c17f
5 changed files with 288 additions and 186 deletions

View File

@@ -426,11 +426,17 @@ function handleCardClick(item, index) {
}
activeTab.value = 'emr';
nextTick(() => {
prescriptionRef.value.getListInfo();
tcmRef.value.getListInfo();
diagnosisRef.value.getList();
eprescriptionRef.value.getList();
emrRef.value.getDetail(item.encounterId);
// 确保所有组件引用都已初始化
if (prescriptionRef.value) prescriptionRef.value.getListInfo();
if (tcmRef.value) tcmRef.value.getListInfo();
if (diagnosisRef.value) diagnosisRef.value.getList();
if (eprescriptionRef.value) eprescriptionRef.value.getList();
if (emrRef.value) {
emrRef.value.getDetail(item.encounterId);
} else {
console.error('emr组件未正确初始化');
proxy.$modal.msgError('病历组件加载失败,请刷新页面重试');
}
setTimeout(() => {
loading.value = false;
}, 200);