index.jsx 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import React from "react";
  2. import style from "../index.less";
  3. class WrapModalTable extends React.Component {
  4. constructor(props) {
  5. super(props)
  6. }
  7. render() {
  8. const { hospitalPac, handleGetSonList, msgObj } = this.props;
  9. return <div className={style['modalTable']}>
  10. <div className={style.tablePubP}>
  11. <table>
  12. <tr className={style.head}>
  13. <td className={`${style.fst} ellipsOver`}>申请单号</td>
  14. <td className={`${style.sec} ellipsOver`}>申请时间</td>
  15. <td className={`${style.trd} ellipsOver`}>检查项目</td>
  16. <td className={`${style.four} ellipsOver`}>检查号</td>
  17. <td className={`${style.fif} ellipsOver`}>类型</td>
  18. <td className={`${style.six} ellipsOver`}>患者姓名</td>
  19. <td className={`${style.sev} ellipsOver`}>病人编号</td>
  20. <td className={`${style.egt} ellipsOver`}>检查时间</td>
  21. <td className={`${style.egt} ellipsOver`}>报告时间</td>
  22. <td className={`${style.nig} ellipsOver`} style={{ display: hospitalPac.length > 4 ? '' : 'none' }}></td>
  23. </tr>
  24. </table>
  25. </div>
  26. <div className={`${style.parentTable} ${style.tablePubP}`}>
  27. <table>
  28. {
  29. hospitalPac && hospitalPac.map((item, idx) => {
  30. return <tr onClick={() => handleGetSonList(item.checkItem, item.reportTime)}>
  31. <td title={item.applicationNum} className={`${style.fst} ellipsOver`}>{item.applicationNum}</td>
  32. <td title={item.applicationDate} className={`${style.sec} ellipsOver`}>{item.applicationDate}</td>
  33. <td title={item.checkItem} className={`${style.trd} ellipsOver`}>{item.checkItem}</td>
  34. <td title={item.checkNum} className={`${style.four} ellipsOver`}>{item.checkNum}</td>
  35. <td title={item.type} className={`${style.fif} ellipsOver`}>{item.type}</td>
  36. <td title={msgObj.name} className={`${style.six} ellipsOver`}>{msgObj.name}</td>
  37. <td title={msgObj.patientNum} className={`${style.sev} ellipsOver`}>{msgObj.patientNum}</td>
  38. <td title={item.inspectTime} className={`${style.egt} ellipsOver`}>{item.inspectTime}</td>
  39. <td title={item.reportTime} className={`${style.egt} ellipsOver`}>{item.reportTime}</td>
  40. </tr>
  41. })
  42. }
  43. </table>
  44. </div>
  45. </div>
  46. }
  47. }
  48. export default WrapModalTable;