index.jsx 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import React, { Component } from 'react';
  2. import style from "../index.less";
  3. class MedicalAdvice extends Component {
  4. constructor(props) {
  5. super(props);
  6. this.state = { }
  7. }
  8. render() {
  9. const {advice} = this.props
  10. // console.log(advice,'===========');
  11. const {labelListBig,labelListSmall,labelListBlood} = advice
  12. // console.log(advice, 'advice');
  13. return (
  14. <tr className={style['patInfoFst']}>
  15. <td className={style['patInfoSec']}>医嘱:</td>
  16. <td className={style['patInfoSec']}>
  17. <table style={style.assistTable}>
  18. {
  19. labelListBig && labelListBig.map((item,index)=>{
  20. return (
  21. <tr>
  22. <td className={style.adviceTableTdFst}>{item.name}</td>
  23. <td className={style.assistTableTdTrd}>药品</td>
  24. <td className={style.assistTableTdSec}>{item.value}</td>
  25. <td className={style.assistTableTdFor}>{item.time}</td>
  26. </tr>
  27. )
  28. })
  29. }
  30. {
  31. labelListSmall && labelListSmall.map((item, index) => {
  32. return (
  33. <tr>
  34. <td className={style.adviceTableTdFst}>{item.name}</td>
  35. {/* <td className={style.assistTableTdSec}></td> */}
  36. <td className={style.assistTableTdTrd}>手术/操作</td>
  37. <td className={style.assistTableTdSec}>{item.value}</td>
  38. <td className={style.assistTableTdFor}>{item.time}</td>
  39. </tr>
  40. )
  41. })
  42. }
  43. {
  44. labelListBlood && labelListBlood.map((item, index) => {
  45. return (
  46. <tr>
  47. <td className={style.adviceTableTdFst}>{item.name}</td>
  48. <td className={style.assistTableTdTrd}>输血</td>
  49. <td className={style.assistTableTdSec}>{item.value}</td>
  50. <td className={style.assistTableTdFor}>{item.time}</td>
  51. </tr>
  52. )
  53. })
  54. }
  55. </table>
  56. </td>
  57. </tr>
  58. );
  59. }
  60. }
  61. export default MedicalAdvice;