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..62d25c0b8 100755 --- a/openhis-ui-vue3/src/views/doctorstation/components/surgery/surgeryApplication.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/surgery/surgeryApplication.vue @@ -1138,12 +1138,12 @@ function submitForm() { sessionStorage.setItem('anesthesiaType', form.value.anesthesiaTypeEnum) open.value = false emit('saved') // 通知父组件刷新医嘱列表 - // 刷新手术申请列表,使用 nextTick 确保数据一致性 - proxy.$nextTick(() => { + // 延迟刷新手术申请列表,确保后端事务提交且父组件状态更新完成 + setTimeout(() => { if (props.patientInfo?.encounterId) { getList() } - }) + }, 500) } else { proxy.$modal.msgError(res.msg || '新增手术失败,请检查表单信息') } @@ -1160,12 +1160,12 @@ function submitForm() { sessionStorage.setItem('anesthesiaType', form.value.anesthesiaTypeEnum) open.value = false emit('saved') // 通知父组件刷新医嘱列表 - // 刷新手术申请列表,使用 nextTick 确保数据一致性 - proxy.$nextTick(() => { + // 延迟刷新手术申请列表,确保后端事务提交且父组件状态更新完成 + setTimeout(() => { if (props.patientInfo?.encounterId) { getList() } - }) + }, 500) } else { proxy.$modal.msgError(res.msg || '更新手术失败,请检查表单信息') }