门诊换卡优化

This commit is contained in:
2025-11-24 09:22:11 +08:00
parent 60593233bc
commit c561586cfa
3 changed files with 26 additions and 25 deletions

View File

@@ -1207,7 +1207,7 @@ function getListInfo(addNewRow) {
: 0);
// 从后端获取数据时将后端的耗材类型2转换为前端显示的耗材类型4
// 后端接口中1=药品, 2=耗材, 3=诊疗
// 前端显示中1=西药, 2=中成药, 3=诊疗, 4=耗材
// 前端显示中1=西药, 2=中成药, 3=诊疗, 4=耗材
let displayAdviceType = parsedContent.adviceType !== undefined ? Number(parsedContent.adviceType) : (item.adviceType !== undefined ? Number(item.adviceType) : undefined);
if (displayAdviceType === 2 && (parsedContent.deviceId || parsedContent.deviceName || item.deviceId || item.deviceName)) {
// 如果是耗材adviceType=2 且有deviceId或deviceName转换为前端显示的4