From 3beec42913313b6730655c889a510a6db312a282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BA=91?= <赵云@gentronhealth.com> Date: Sat, 16 May 2026 21:08:58 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#528:=20[=E4=BD=8F=E9=99=A2?= =?UTF-8?q?=E5=8C=BB=E7=94=9F=E5=B7=A5=E4=BD=9C=E7=AB=99-=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E7=94=B3=E8=AF=B7]=20=E4=BF=AE=E6=94=B9=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E5=8D=95=E6=88=90=E5=8A=9F=E5=90=8E=EF=BC=8C=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=9C=AA=E8=87=AA=E5=8A=A8=E5=85=B3=E9=97=AD=E4=B8=94?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=95=B0=E6=8D=AE=E6=9C=AA=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:submit() 方法的 .then() 回调中 else 分支使用 res.message(后端返回 res.msg), 且缺少 .catch() 错误处理。当请求异常时既无错误提示也不触发 submitOk 事件。 修复: 1. 统一使用 res.msg 替代 res.message 2. 添加 .catch() 错误处理(console.error + 用户提示) 3. 统一使用已导入的 ElMessage 替代 proxy.$message Co-Authored-By: Claude Opus 4.6 --- .../order/applicationForm/medicalExaminations.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue index 224ea9322..bc6a8b2ab 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue @@ -499,17 +499,16 @@ const submit = () => { categoryEnum: '22', }).then((res) => { if (res.code === 200) { - if (props.isEditMode) { - proxy.$message.success(res.msg || '修改成功'); - } else { - proxy.$message.success(res.msg); - } + ElMessage.success(res.msg || (props.isEditMode ? '修改成功' : '保存成功')); applicationList.value = []; resetForm(); emits('submitOk'); } else { - proxy.$message.error(res.message); + ElMessage.error(res.msg || '保存失败'); } + }).catch((error) => { + console.error('保存检查申请失败:', error); + ElMessage.error('保存失败,请稍后重试'); }); };