index.jsx 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.form}</td>
  25. <td className={style.assistTableTdSec}>{item.value}</td>
  26. <td className={style.assistTableTdFor}>{item.time}</td>
  27. </tr>
  28. )
  29. })
  30. }
  31. {
  32. labelListSmall && labelListSmall.map((item, index) => {
  33. return (
  34. <tr>
  35. <td className={style.adviceTableTdFst}>{item.name}</td>
  36. {/* <td className={style.assistTableTdSec}></td> */}
  37. <td className={style.assistTableTdTrd}>手术/操作</td>
  38. <td className={style.assistTableTdSec}></td>
  39. <td className={style.assistTableTdSec}>{item.value}</td>
  40. <td className={style.assistTableTdFor}>{item.time}</td>
  41. </tr>
  42. )
  43. })
  44. }
  45. {
  46. labelListBlood && labelListBlood.map((item, index) => {
  47. return (
  48. <tr>
  49. <td className={style.adviceTableTdFst}>{item.name}</td>
  50. <td className={style.assistTableTdTrd}>输血</td>
  51. <td className={style.assistTableTdSec}></td>
  52. <td className={style.assistTableTdSec}>{item.value}</td>
  53. <td className={style.assistTableTdFor}>{item.time}</td>
  54. </tr>
  55. )
  56. })
  57. }
  58. </table>
  59. </td>
  60. </tr>
  61. );
  62. }
  63. }
  64. export default MedicalAdvice;