Fix Bug #522: [住院护士站-三测单] 体征录入点击保存后缺乏执行反馈且窗口异常自动关闭

根因: 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 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 09:08:27 +08:00
committed by zhaoyun
parent 1fbed5c595
commit d54ad5ef88

View File

@@ -1058,7 +1058,7 @@ function confirmCharge() {
addVitalSigns(params).then(res => { addVitalSigns(params).then(res => {
if (res.code === 200) { if (res.code === 200) {
proxy.msgSuccess('保存成功'); proxy.$modal.msgSuccess('保存成功');
// 保存成功后刷新列表 // 保存成功后刷新列表
getPatientList(); getPatientList();
// 清空表单 // 清空表单
@@ -1088,6 +1088,9 @@ function confirmCharge() {
stoolVolume: '', stoolVolume: '',
}; };
} }
}).catch(err => {
console.error('保存体征数据失败:', err);
proxy.$modal.msgError('保存失败,请重试');
}); });
} }
/** 重置操作表单 */ /** 重置操作表单 */