|
@@ -1,44 +1,44 @@
|
|
|
import style from "../index.less";
|
|
|
-import { normalVal,getStatusImg } from '@utils/tools';
|
|
|
+import { normalVal, getStatusImg } from '@utils/tools';
|
|
|
import report from '@common/images/report_time.png';
|
|
|
import billing from '@common/images/billing_time.png';
|
|
|
|
|
|
const PreviewInspect = (props) => {
|
|
|
- const { dataJson, toTime ,dateTime,showDetails } = props;
|
|
|
+ const { dataJson, toTime, dateTime, showDetails } = props;
|
|
|
// console.log(dateTime,'dateTime');
|
|
|
- return <tr className={style['patInfoFst']}>
|
|
|
- <td className={style['patInfoSec']}>检验:</td>
|
|
|
- <td className={style['patInfoSec']}>
|
|
|
- <table className={style.assistTable}>
|
|
|
+ return <tr className={style['patInfoFst']}>
|
|
|
+ <td className={style['patInfoSec']}>检验:</td>
|
|
|
+ <td className={style['patInfoSec']}>
|
|
|
+ <table className={style.assistTable}>
|
|
|
{
|
|
|
- (dataJson.labelListSmall.length !== 0 || dataJson.labelListBig.length !== 0) && ( <span style={{ lineHeight: '36px' }}>检验结果数据</span>)
|
|
|
+ (dataJson.labelListSmall.length !== 0 || dataJson.labelListBig.length !== 0) && (<span style={{ lineHeight: '36px' }}>检验结果数据</span>)
|
|
|
}
|
|
|
{
|
|
|
dataJson && dataJson.labelListSmall && dataJson.labelListSmall.map((item) => {
|
|
|
// console.log(item, item,'=====');
|
|
|
- return (
|
|
|
- <tr className={style.assistTableTrSec}>
|
|
|
- <td className={style.assistTableTdFst}>{item.detailName}</td>
|
|
|
- <td className={style.assistTableTdSec}>
|
|
|
- {/* {getStatusImg(value.type, value.value, 1)}
|
|
|
+ return (
|
|
|
+ <tr className={style.assistTableTrSec}>
|
|
|
+ <td className={style.assistTableTdFst}>{item.detailName}</td>
|
|
|
+ <td className={style.assistTableTdSec}>
|
|
|
+ {/* {getStatusImg(value.type, value.value, 1)}
|
|
|
{value.unit} */}
|
|
|
- {getStatusImg(0, item.value, 1)}
|
|
|
- {item.units}
|
|
|
- {/* {getStatusImg(2, 9.8, 1)}
|
|
|
+ {getStatusImg(0, 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 className={style.assistTableTdFor}>{item.time == '' ? dateTime : item.time}</td> */}
|
|
|
- <td className={style.assistTableTdFor}><img className={style.imgCheck} src={report} title={'报告时间'} />{item.time }</td>
|
|
|
- <td className={style.assistTableTdFor}><img className={style.imgCheck} src={report} title={'报告时间'} />{item.finishDateValue}</td>
|
|
|
- </tr>
|
|
|
- // </table>
|
|
|
- )
|
|
|
+ </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 className={style.assistTableTdFor}>{item.time == '' ? dateTime : item.time}</td> */}
|
|
|
+ <td className={style.assistTableTdFor}><img className={style.imgCheck} src={report} title={'开单时间'} />{item.time}</td>
|
|
|
+ <td className={style.assistTableTdFor}><img className={style.imgCheck} src={report} title={'报告时间'} />{item.finishDateValue}</td>
|
|
|
+ </tr>
|
|
|
+ // </table>
|
|
|
+ )
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -46,21 +46,28 @@ const PreviewInspect = (props) => {
|
|
|
dataJson && dataJson.labelListBig && dataJson.labelListBig.map((item) => {
|
|
|
return (
|
|
|
// <table style={style.assistTable}>
|
|
|
- <tr className={style.assistTableTrSec}>
|
|
|
- <td className={style.assistTableTdFst}>{item.name}</td>
|
|
|
- <td className={style.assistTableTdSec}></td>
|
|
|
- <td className={style.assistTableTdTrd}></td>
|
|
|
- {/* <td className={style.assistTableTdFor}>{item.time == '' ? ('导入时间:' + dateTime) : '检验时间:' + toTime(item.time) */}
|
|
|
- {/* <td className={style.assistTableTdFor}>{item.time == '' ? dateTime : toTime(item.time) */}
|
|
|
- <td className={style.assistTableTdFor}>{item.time == '' ? dateTime : toTime(item.time)}</td>
|
|
|
- </tr>
|
|
|
+ <tr className={style.assistTableTrSec}>
|
|
|
+ <td className={style.assistTableTdFst}>{item.name}</td>
|
|
|
+ <td className={style.assistTableTdSec}></td>
|
|
|
+ <td className={style.assistTableTdTrd}></td>
|
|
|
+ {/* <td className={style.assistTableTdFor}>{item.time == '' ? ('导入时间:' + dateTime) : '检验时间:' + toTime(item.time) */}
|
|
|
+ {/* <td className={style.assistTableTdFor}>{item.time == '' ? dateTime : toTime(item.time) */}
|
|
|
+ <td className={style.assistTableTdFor}><img className={style.imgCheck} src={report} title={'开单时间'} />{item.time == '' ? dateTime : toTime(item.time)}</td>
|
|
|
+ <td className={style.assistTableTdFor}>
|
|
|
+ {
|
|
|
+ item.finishDateValue || item.finishDateValue != '' ? (
|
|
|
+ <img className={style.imgCheck} src={report} title={'报告时间'} />
|
|
|
+ ) : null
|
|
|
+ }
|
|
|
+ {item.finishDateValue}</td>
|
|
|
+ </tr>
|
|
|
// </table>
|
|
|
)
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- </table>
|
|
|
- {/* {
|
|
|
+ </table>
|
|
|
+ {/* {
|
|
|
dataJson&&dataJson.getExcelDataList && dataJson.getExcelDataList.map((items) => {
|
|
|
return items.lisExcelRes && items.lisExcelRes.map((item) => {
|
|
|
return <table style={style.assistTable}>
|
|
@@ -85,7 +92,7 @@ const PreviewInspect = (props) => {
|
|
|
})
|
|
|
})
|
|
|
} */}
|
|
|
- {/* {
|
|
|
+ {/* {
|
|
|
dataJson&&dataJson.labelList && dataJson.labelList.map((item, idx) => {
|
|
|
return <table style={{ margin: '8px 0', width: '100%' }}>
|
|
|
{
|
|
@@ -117,8 +124,8 @@ const PreviewInspect = (props) => {
|
|
|
</table>
|
|
|
})
|
|
|
} */}
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
}
|
|
|
|
|
|
export default PreviewInspect;
|