|
@@ -3,12 +3,57 @@ import { normalVal,getStatusImg } from '@utils/tools';
|
|
|
|
|
|
const PreviewInspect = (props) => {
|
|
|
const { dataJson, toTime ,dateTime,showDetails } = props;
|
|
|
- console.log(props,'===props');
|
|
|
- console.log(dataJson,'===dataJson==_');
|
|
|
return <tr className={style['patInfoFst']}>
|
|
|
<td className={style['patInfoSec']}>化验:</td>
|
|
|
<td className={style['patInfoSec']}>
|
|
|
+ <table style={style.assistTable}>
|
|
|
+ <tr style={{lineHeight: '36px'}}>化验结果数据</tr>
|
|
|
{
|
|
|
+ dataJson && dataJson.labelListSmall && dataJson.labelListSmall.map((item) => {
|
|
|
+ // console.log(item, item,'=====');
|
|
|
+ return (
|
|
|
+
|
|
|
+ <tr className={style.assistTableTrSec}>
|
|
|
+ <td className={style.assistTableTdFst}>{item.uniqueName}</td>
|
|
|
+ <td className={style.assistTableTdSec}>
|
|
|
+ {/* {getStatusImg(value.type, value.value, 1)}
|
|
|
+ {value.unit} */}
|
|
|
+ {/* {getStatusImg(2, item.value, 1)}
|
|
|
+ {item.units} */}
|
|
|
+ {getStatusImg(2, 9.8, 1)}
|
|
|
+ {'mmol/L'}
|
|
|
+ </td>
|
|
|
+ {/* {showDetails(item)} */}
|
|
|
+ <td className={style.assistTableTdTrd}>
|
|
|
+ {/* {normalVal(item.minValue, item.maxValue)} */}
|
|
|
+ {normalVal(3.9, 6.1)}
|
|
|
+ </td>
|
|
|
+ <td className={style.assistTableTdFor}>{item.time == '' ? ('导入时间:' + dateTime) : '化验时间:' + toTime(item.time)
|
|
|
+ }</td>
|
|
|
+ </tr>
|
|
|
+ // </table>
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ {
|
|
|
+ dataJson && dataJson.labelListBig && dataJson.labelListBig.map((item) => {
|
|
|
+ return (
|
|
|
+ // <table style={style.assistTable}>
|
|
|
+ <tr className={style.assistTableTrSec}>
|
|
|
+ <td className={style.assistTableTdFst}>{item.uniqueName}</td>
|
|
|
+ <td className={style.assistTableTdSec}></td>
|
|
|
+ <td className={style.assistTableTdTrd}></td>
|
|
|
+ <td className={style.assistTableTdFor}>{item.time == '' ? ('导入时间:' + dateTime) : '化验时间:' + toTime(item.time)
|
|
|
+ }</td>
|
|
|
+ </tr>
|
|
|
+ // </table>
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ </table>
|
|
|
+ {/* {
|
|
|
dataJson&&dataJson.getExcelDataList && dataJson.getExcelDataList.map((items) => {
|
|
|
return items.lisExcelRes && items.lisExcelRes.map((item) => {
|
|
|
return <table style={style.assistTable}>
|
|
@@ -32,8 +77,8 @@ const PreviewInspect = (props) => {
|
|
|
</table>
|
|
|
})
|
|
|
})
|
|
|
- }
|
|
|
- {
|
|
|
+ } */}
|
|
|
+ {/* {
|
|
|
dataJson&&dataJson.labelList && dataJson.labelList.map((item, idx) => {
|
|
|
return <table style={{ margin: '8px 0', width: '100%' }}>
|
|
|
{
|
|
@@ -64,7 +109,7 @@ const PreviewInspect = (props) => {
|
|
|
}
|
|
|
</table>
|
|
|
})
|
|
|
- }
|
|
|
+ } */}
|
|
|
</td>
|
|
|
</tr>
|
|
|
}
|