This commit is contained in:
parent
52b13b73e0
commit
c4f28853dd
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue