解决医嘱确定后中成药项目名消失

This commit is contained in:
2025-11-21 09:23:20 +08:00
parent 6da3b63012
commit fcccfc1959

View File

@@ -1766,14 +1766,11 @@ function handleSave() {
// 保存时将前端的耗材类型4转换为后端需要的类型2
// 后端接口中1=药品, 2=耗材, 3=诊疗
// 前端显示中1=西药, 2=中成药, 3=诊疗, 4=耗材
const saveAdviceType = parsedContent.adviceType == 4 ? 2 : parsedContent.adviceType;
const saveAdviceType = item.adviceType == 4 ? 2 : item.adviceType;
return {
...parsedContent,
...item,
adviceType: saveAdviceType,
requestId: item.requestId,
dbOpType: '1',
groupId: item.groupId,
uniqueKey: undefined,
dbOpType: item.requestId ? '2' : '1',
};
});
savePrescriptionSign({