import React, { Component } from "react"; import style from "./index.less"; class PatInfo extends Component { constructor(props){ super(props) } componentWillMount() { const { getMessage } = this.props; getMessage && getMessage() } render(){ const {message} = this.props.patInfo; const {sizeFlag} = this.props; return
卡号:{message.patientIdNo && message.patientIdNo} | 3?message.patientName:''}>姓名:{sizeFlag&&message.patientName && message.patientName.length>3?message.patientName.slice(0,3)+'...':message.patientName} | 年龄:{message.patientAge && message.patientAge} | 性别:{message.patientSex && message.patientSex} |
就诊时间:{message.systemTime&&message.systemTime.substring(0, 10)} | 科室:{message.hospitalDeptName && message.hospitalDeptName} | 3?message.doctorName:''}>医生:{sizeFlag&&message.doctorName && message.doctorName.length>3?message.doctorName.slice(0,3)+'...':message.doctorName} | 门诊号:{message.recordId && message.recordId} |