From b8666e535b54fe458edb4a31f0f74314fb6f6de4 Mon Sep 17 00:00:00 2001 From: guanyu Date: Mon, 18 May 2026 09:08:27 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#522:=20[=E4=BD=8F=E9=99=A2?= =?UTF-8?q?=E6=8A=A4=E5=A3=AB=E7=AB=99-=E4=B8=89=E6=B5=8B=E5=8D=95]=20?= =?UTF-8?q?=E4=BD=93=E5=BE=81=E5=BD=95=E5=85=A5=E7=82=B9=E5=87=BB=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=90=8E=E7=BC=BA=E4=B9=8F=E6=89=A7=E8=A1=8C=E5=8F=8D?= =?UTF-8?q?=E9=A6=88=E4=B8=94=E7=AA=97=E5=8F=A3=E5=BC=82=E5=B8=B8=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因: proxy.msgSuccess 不存在(正确路径为 proxy.$modal.msgSuccess), 导致保存成功提示无法弹出;同时 addVitalSigns 缺少 .catch() 块, API 失败时既无错误提示也无任何反馈。 修复: 1. proxy.msgSuccess → proxy.$modal.msgSuccess(保存成功提示) 2. 添加 .catch() 块:console.error 日志 + proxy.$modal.msgError 错误提示 Co-Authored-By: Claude Opus 4.7 --- .../inpatientNurse/tprChart/components/addTprDialog.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openhis-ui-vue3/src/views/inpatientNurse/tprChart/components/addTprDialog.vue b/openhis-ui-vue3/src/views/inpatientNurse/tprChart/components/addTprDialog.vue index c36215f84..1cdacb67b 100755 --- a/openhis-ui-vue3/src/views/inpatientNurse/tprChart/components/addTprDialog.vue +++ b/openhis-ui-vue3/src/views/inpatientNurse/tprChart/components/addTprDialog.vue @@ -1058,7 +1058,7 @@ function confirmCharge() { addVitalSigns(params).then(res => { if (res.code === 200) { - proxy.msgSuccess('保存成功'); + proxy.$modal.msgSuccess('保存成功'); // 保存成功后刷新列表 getPatientList(); // 清空表单 @@ -1088,6 +1088,9 @@ function confirmCharge() { stoolVolume: '', }; } + }).catch(err => { + console.error('保存体征数据失败:', err); + proxy.$modal.msgError('保存失败,请重试'); }); } /** 重置操作表单 */