|
@@ -1,9 +1,9 @@
|
|
|
-import { data } from "jquery";
|
|
|
import React, { Component } from "react";
|
|
|
import style from "./index.less";
|
|
|
import $ from "jquery";
|
|
|
import waringw from '@common/images/waringw.png';
|
|
|
import config from '@config/index';
|
|
|
+import { Notify } from '@commonComp';
|
|
|
|
|
|
class PatInfo extends Component {
|
|
|
constructor(props){
|
|
@@ -100,6 +100,21 @@ class PatInfo extends Component {
|
|
|
this.setState({cover:true})
|
|
|
}
|
|
|
}
|
|
|
+ checkMsg(){
|
|
|
+ const {handleShow,patInfo} = this.props;
|
|
|
+ const messages = patInfo.message
|
|
|
+ handleShow&&handleShow({ikey:'common'});
|
|
|
+ if(!messages.patientName){
|
|
|
+ Notify.error("无法操作,请先输入姓名");
|
|
|
+ return
|
|
|
+ }else if(!messages.sex){
|
|
|
+ Notify.error("无法操作,请选择性别");
|
|
|
+ return
|
|
|
+ }else if(!messages.patientAge){
|
|
|
+ Notify.error("无法操作,请输入年龄");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
render(){
|
|
|
const {message} = this.props.patInfo;
|
|
|
const {show,cover,reg} = this.state;
|
|
@@ -117,12 +132,17 @@ class PatInfo extends Component {
|
|
|
<td key='8' className={`${style.tdBorderR}`} title={'门诊号:'+(message.recordId||'')}>门诊号:{message.recordId}</td>
|
|
|
</tr> */}
|
|
|
<tr>
|
|
|
- <td key='1' className={`${style.tdBorderB} ${style.tdBorderR}`}>
|
|
|
- <span>姓名:</span>
|
|
|
+ <td key='1' className={`${style.tdBorderB} ${style.tdBorderR} ${style.tdBorderOne}`}>
|
|
|
+ <span className={style['title']}>姓名:</span>
|
|
|
<input type="text" placeholder="请输入" className={style['name']} onChange={(e)=>this.handleName(e)} value={message.patientName}/>
|
|
|
</td>
|
|
|
- <td key='2' className={`${style.tdBorderB} ${style.tdBorderR}`}>
|
|
|
- <span>性别:</span>
|
|
|
+ <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',display:reg?'inline-block':'none'}}>* 请输入1-150以内的整数</i>
|
|
|
+ </td>
|
|
|
+ <td key='2' className={`${style.tdBorderB} ${style.tdBorderR} ${style.tdBorderThree}`}>
|
|
|
+ <span className={style['title']}>性别:</span>
|
|
|
<input id="selectSex" type="text" className={style['sex']} value={message.patientSex} placeholder="请选择" onClick={()=>this.showToggle()} readOnly/>
|
|
|
<ul className={style['sexSelect']} style={{display:show?'block':'none'}}>
|
|
|
<li onclick={()=>this.handleSex('')}>请选择</li>
|
|
@@ -131,14 +151,7 @@ class PatInfo extends Component {
|
|
|
</ul>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr>
|
|
|
- <td key='3' colSpan="2" className={`${style.tdBorderB} ${style.tdBorderR}`}>
|
|
|
- <span>年龄:</span>
|
|
|
- <input type="text" className={style['age']} placeholder="请输入" onChange={(e)=>this.handleAge(e)} value={message.patientAge}/>
|
|
|
- <img style={{display:reg?'inline-block':'none'}} className={style['warimg']} src={waringw} alt=""/><i style={{color:reg?'#FF545B':'#999999'}}>(请输入1-150以内的整数)</i>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <div className={style['coverDom']} style={{display:cover?'block':'none'}}></div>
|
|
|
+ <div className={style['coverDom']} onClick={()=>{this.checkMsg()}} style={{display:cover?'block':'none'}}></div>
|
|
|
</table>;
|
|
|
}
|
|
|
}
|