From db2329e7a32b07ff51fc1197b6e4a6ccd3cfe521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=80=E5=BD=A7?= <荀彧@gentronhealth.com> Date: Wed, 13 May 2026 20:30:51 +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 Co-Authored-By: Claude Opus 4.7 --- .../components/surgery/surgeryApplication.vue | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 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 ec1a4c60b..79ee08254 100755 --- a/openhis-ui-vue3/src/views/doctorstation/components/surgery/surgeryApplication.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/surgery/surgeryApplication.vue @@ -1133,13 +1133,17 @@ function submitForm() { // 新增手术 addSurgery(form.value).then((res) => { if (res.code === 200) { - proxy.$modal.msgSuccess(res.msg || '手术申请提交成功!') + proxy.$modal.msgSuccess('手术申请提交成功!') // 保存麻醉方式 sessionStorage.setItem('anesthesiaType', form.value.anesthesiaTypeEnum) open.value = false emit('saved') // 通知父组件刷新医嘱列表 - // 刷新手术申请列表 - getList() + // 刷新手术申请列表,使用 nextTick 确保数据一致性 + proxy.$nextTick(() => { + if (props.patientInfo?.encounterId) { + getList() + } + }) } else { proxy.$modal.msgError(res.msg || '新增手术失败,请检查表单信息') } @@ -1151,13 +1155,17 @@ function submitForm() { // 修改手术 updateSurgery(form.value).then((res) => { if (res.code === 200) { - proxy.$modal.msgSuccess(res.msg || '手术申请修改成功!') + proxy.$modal.msgSuccess('手术申请修改成功!') // 保存麻醉方式 sessionStorage.setItem('anesthesiaType', form.value.anesthesiaTypeEnum) open.value = false emit('saved') // 通知父组件刷新医嘱列表 - // 刷新手术申请列表 - getList() + // 刷新手术申请列表,使用 nextTick 确保数据一致性 + proxy.$nextTick(() => { + if (props.patientInfo?.encounterId) { + getList() + } + }) } else { proxy.$modal.msgError(res.msg || '更新手术失败,请检查表单信息') }