|
@@ -35,6 +35,12 @@ class PatInfo extends Component {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ componentWillReceiveProps(nextProps){
|
|
|
+ const {patientName,sex,patientAge} = nextProps.patInfo.message;
|
|
|
+ if(!patientName&&!sex&&!patientAge){
|
|
|
+ this.setState({cover:true})
|
|
|
+ }
|
|
|
+ }
|
|
|
handleName(e){
|
|
|
let value = e.target.value
|
|
|
const { setParams } = this.props;
|
|
@@ -140,7 +146,7 @@ class PatInfo extends Component {
|
|
|
<td key='3' className={`${style.tdBorderB} ${style.tdBorderR} ${style.tdBorderTwo}`}>
|
|
|
<span className={style['title']}>年龄:</span>
|
|
|
<input type="text" className={style['age']} style={{"borderColor":reg?'#FF545B':'#E6E6E6'}} placeholder="请输入" onChange={(e)=>this.handleAge(e)} value={message.patientAge}/>
|
|
|
- <i style={{color:reg?'#FF545B':'#999999'}}>* 请输入1-150以内的整数</i>
|
|
|
+ <i style={{color:reg?'#FF545B':'#999999',display:reg?'block':'none'}}>* 请输入1-150以内的整数</i>
|
|
|
</td>
|
|
|
<td key='2' className={`${style.tdBorderB} ${style.tdBorderR} ${style.tdBorderThree}`}>
|
|
|
<span className={style['title']}>性别:</span>
|