From ff22b4a30bc12ef7095a2243fb938f6c25d89d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BA=91?= <赵云@gentronhealth.com> Date: Mon, 11 May 2026 11:05:00 +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 | 14 ++++++++++---- 1 file changed, 10 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 4618254c..cc3b369e 100755 --- a/openhis-ui-vue3/src/views/doctorstation/components/surgery/surgeryApplication.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/surgery/surgeryApplication.vue @@ -1127,11 +1127,14 @@ 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 - getList() + // 延迟刷新列表,确保后端数据已提交 + setTimeout(() => { + getList() + }, 300) emit('saved') // 🔧 触发保存事件,通知父组件刷新医嘱列表 } else { proxy.$modal.msgError(res.msg || '新增手术失败,请检查表单信息') @@ -1144,11 +1147,14 @@ 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 - getList() + // 延迟刷新列表,确保后端数据已提交 + setTimeout(() => { + getList() + }, 300) emit('saved') // 🔧 触发保存事件,通知父组件刷新医嘱列表 } else { proxy.$modal.msgError(res.msg || '更新手术失败,请检查表单信息')