diff --git a/openhis-ui-vue3/src/views/doctorstation/components/surgery/surgeryApplication.vue b/openhis-ui-vue3/src/views/doctorstation/components/surgery/surgeryApplication.vue index 79ee08254..cd6f521e4 100755 --- a/openhis-ui-vue3/src/views/doctorstation/components/surgery/surgeryApplication.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/surgery/surgeryApplication.vue @@ -626,14 +626,19 @@ function getList() { loading.value = false return } - + loading.value = true getSurgeryPage({ pageNo: 1, pageSize: 100, encounterId: props.patientInfo.encounterId }).then((res) => { - surgeryList.value = res.data.records || [] + if (res.code === 200) { + surgeryList.value = res.data?.records || [] + } else { + proxy.$modal.msgError(res.msg || '数据加载失败,请稍后重试') + surgeryList.value = [] + } }).catch(error => { console.error('获取手术列表失败:', error) proxy.$modal.msgError('数据加载失败,请稍后重试') diff --git a/openhis-ui-vue3/src/views/doctorstation/index.vue b/openhis-ui-vue3/src/views/doctorstation/index.vue index 8d81c4f6f..c1960987b 100755 --- a/openhis-ui-vue3/src/views/doctorstation/index.vue +++ b/openhis-ui-vue3/src/views/doctorstation/index.vue @@ -151,8 +151,8 @@ @saved="() => prescriptionRef?.getListInfo()" /> - +