From 7caac9e9a139fc5d59e9a564a7aace81dd164815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B3=E7=BE=BD?= <关羽@gentronhealth.com> Date: Thu, 14 May 2026 06:17:25 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#509:=20[=E9=97=A8=E8=AF=8A?= =?UTF-8?q?=E5=8C=BB=E7=94=9F=E7=AB=99-=E6=89=8B=E6=9C=AF=E7=94=B3?= =?UTF-8?q?=E8=AF=B7]=20=E6=8F=90=E4=BA=A4=E7=94=B3=E8=AF=B7=E5=90=8E?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=9C=AA=E5=AE=9E=E6=97=B6=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E6=95=B0=E6=8D=AE=EF=BC=8C=E4=B8=94=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=AF=AD=E9=9C=80=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. getList() 增加 res.code === 200 校验,避免API返回错误数据时静默赋值导致列表不更新 2. 父组件 @saved 事件处理器增加 surgeryRef?.getList(),确保提交后父组件侧也触发列表刷新 3. 统一响应处理模式,与 inspectionApplication 等组件保持一致 Co-Authored-By: Claude Opus 4.7 --- .../components/surgery/surgeryApplication.vue | 9 +++++++-- openhis-ui-vue3/src/views/doctorstation/index.vue | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) 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()" /> - +