bug 349 350 351 354 356 357
This commit is contained in:
@@ -1010,6 +1010,13 @@ const mapAdviceTypeLabel = (type, adviceTableName) => {
|
||||
if (type === 2 && adviceTableName === 'adm_device_definition') {
|
||||
return '耗材';
|
||||
}
|
||||
|
||||
// 🔧 Bug Fix: 处理检查类型(adviceType=23)
|
||||
// 检查类型属于诊疗类,应该显示为"检查"
|
||||
if (type === 23) {
|
||||
return '检查';
|
||||
}
|
||||
|
||||
const found = adviceTypeList.value.find((item) => item.value === type);
|
||||
return found ? found.label : '';
|
||||
};
|
||||
@@ -2559,9 +2566,25 @@ function handleSave(prescriptionId) {
|
||||
if (res.code === 200) {
|
||||
proxy.$modal.msgSuccess('签发成功');
|
||||
isSaving.value = false;
|
||||
|
||||
// 🔧 Bug Fix: 签发成功后立即更新本地医嘱状态,确保用户看到的状态是正确的
|
||||
// 遍历签发的医嘱列表,更新本地状态
|
||||
saveList.forEach((item) => {
|
||||
// 在当前列表中找到对应的医嘱
|
||||
const index = prescriptionList.value.findIndex(p => p.uniqueKey === item.uniqueKey);
|
||||
if (index !== -1) {
|
||||
// 更新状态:从待签发(1)改为已签发(2)
|
||||
prescriptionList.value[index].statusEnum = 2;
|
||||
// 更新保存状态
|
||||
prescriptionList.value[index].isSaved = true;
|
||||
console.log('BugFix: 更新本地医嘱状态,adviceName=', item.adviceName, 'statusEnum=', 2);
|
||||
}
|
||||
});
|
||||
|
||||
// 刷新列表数据(从后端获取最新状态)
|
||||
getListInfo(false);
|
||||
bindMethod.value = {};
|
||||
nextId.value == 1;
|
||||
nextId.value = 1;
|
||||
} else {
|
||||
proxy.$modal.msgError(res.message);
|
||||
isSaving.value = false;
|
||||
|
||||
Reference in New Issue
Block a user