门诊换卡优化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user