|
@@ -6,6 +6,8 @@ import saveHistory from '@common/images/saveHistory.png';
|
|
|
import PrintPreviewContainer from '@containers/PrintPreviewContainer';
|
|
|
import PreviewContainer from '@containers/PreviewContainer';
|
|
|
import { ConfirmModal, Notify } from '@commonComp';
|
|
|
+import check_circle from './img/check-circle.png';
|
|
|
+import check_right from './img/check-right.png';
|
|
|
import {getAllDataList,getAllDataStringList,isAllClear,filterArr} from '@utils/tools';
|
|
|
import store from '@store';
|
|
|
|
|
@@ -21,7 +23,9 @@ class Operation extends Component {
|
|
|
oKBg: '',
|
|
|
msg: '',
|
|
|
type: '',
|
|
|
- zIndex:40
|
|
|
+ zIndex:40,
|
|
|
+ sex:'3',
|
|
|
+ radio:[true,false,false]
|
|
|
}
|
|
|
this.showPrint = this.showPrint.bind(this);
|
|
|
this.closePrint = this.closePrint.bind(this);
|
|
@@ -31,6 +35,8 @@ class Operation extends Component {
|
|
|
this.clearAll = this.clearAll.bind(this);
|
|
|
this.saveHis = this.saveHis.bind(this);
|
|
|
this.keypress = this.keypress.bind(this);
|
|
|
+ this.changeRadio = this.changeRadio.bind(this);
|
|
|
+ this.getCheckIcon = this.getCheckIcon.bind(this);
|
|
|
}
|
|
|
|
|
|
showPrint() {
|
|
@@ -222,6 +228,14 @@ class Operation extends Component {
|
|
|
return true
|
|
|
}
|
|
|
}
|
|
|
+ getCheckIcon(flg) {
|
|
|
+ alert(flg)
|
|
|
+ if (flg) {
|
|
|
+ return check_right;
|
|
|
+ } else {
|
|
|
+ return check_circle;
|
|
|
+ }
|
|
|
+}
|
|
|
changeTitle() {
|
|
|
return <div className={style['box']}>
|
|
|
<input className={style['ipt']}
|
|
@@ -237,8 +251,32 @@ class Operation extends Component {
|
|
|
onKeyPress={e => this.keypress(e)}
|
|
|
/>
|
|
|
<div className={style['line']}></div>
|
|
|
+ <div className={style['iptWrap']}>
|
|
|
+ {
|
|
|
+ this.state.radio.map(()=>{
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
+ <label onClick={()=>{this.changeRadio(3)}}><img src={this.getCheckIcon(this.state.radio[0])} alt=""/>通用</label>
|
|
|
+ <label onClick={()=>{this.changeRadio(1)}}><img src={this.getCheckIcon(this.state.radio[1])} alt=""/>男</label>
|
|
|
+ <label onClick={()=>{this.changeRadio(2)}}><img src={this.getCheckIcon(this.state.radio[2])} alt=""/>女</label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
}
|
|
|
+ changeRadio(sex){
|
|
|
+ let radios = [false,false,false]
|
|
|
+ if(sex == 1){
|
|
|
+ radios = [false,true,false]
|
|
|
+ }else if(sex == 2){
|
|
|
+ radios = [false,false,true]
|
|
|
+ }else if(sex == 3){
|
|
|
+ radios = [true,false,false]
|
|
|
+ }
|
|
|
+ this.setState({
|
|
|
+ sex:sex,
|
|
|
+ radio:radios
|
|
|
+ })
|
|
|
+ }
|
|
|
makeSure() {
|
|
|
const { save, clear, saveDataAll,diagShowTmp } = this.props;
|
|
|
const { type } = this.state;
|
|
@@ -256,7 +294,7 @@ class Operation extends Component {
|
|
|
return;
|
|
|
}
|
|
|
// diagShowTmp(false)
|
|
|
- saveDataAll(this.state.title);
|
|
|
+ saveDataAll(this.state.title,this.state.sex);
|
|
|
}
|
|
|
}
|
|
|
closeDiagBox(){
|