This commit is contained in:
余文财 2025-06-26 12:37:14 +08:00
parent 52b13b73e0
commit c4f28853dd
2 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,6 @@
package com.dpkj.modules.print.service.impl;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.dpkj.common.config.PrinterConfig;
@ -362,7 +363,9 @@ public class MS439PrintServiceImpl implements MS439PrintService {
item.put("loitemRv", range);// 参考区间
item.put("loitemUnit", unit);// 单位
item.put("inspectionMethod", method);// 测试方法
item.put("oaflag", oaflag);// 结果异常标志|-1-不计算改指标的参考1-正常2-偏低3-偏高4-阳性(异常)5-警戒下限6-警戒上限7-复查下限8-复查上限9-线性异常
item.put("oaflag", StrUtil.equals(oaflag,"0") || StrUtil.equals(oaflag,"1"));// 结果异常标志|-1-不计算改指标的参考1-正常2-偏低3-偏高4-阳性(异常)5-警戒下限6-警戒上限7-复查下限8-复查上限9-线性异常
item.put("oaflagLow", StrUtil.equals(oaflag,"2"));// 2显示下箭头
item.put("oaflagHigh", StrUtil.equals(oaflag,"3"));// 3显示上箭头
items.add(item);
}
}

View File

@ -121,9 +121,13 @@
<tbody style="text-align: center;">
<!-- 动态行渲染+异常值红色高亮 -->
<tr th:each="item : ${items}"
th:style="${item.oaflag=='1'} ? '' : 'background-color: #f9f9f9;color:red;'">
th:style="${item.oaflag} ? '' : 'background-color: #f9f9f9;color: red;'">
<td style="padding: 8px 5px;" th:text="${item.loitemCname}"></td>
<td style="padding: 8px 5px;" th:text="${item.orderRptResult}"></td>
<td style="padding: 8px 5px;">
<span th:text="${item.orderRptResult}"></span>
<span th:if="${item.oaflagLow}"></span>
<span th:if="${item.oaflagHigh}"></span>
</td>
<td style="padding: 8px 5px;" th:text="${item.loitemUnit}"></td>
<td style="padding: 8px 5px;" th:text="${item.loitemRv}"></td>
<td style="padding: 8px 5px;" th:text="${item.inspectionMethod}"></td>