|
@@ -33,7 +33,8 @@ class ChronicInfo extends React.Component{
|
|
|
showAssess:false, //评估弹窗
|
|
|
infoId:null, //静态知识
|
|
|
formulaId:null, //计算公式
|
|
|
- optionId:null //可能结果
|
|
|
+ optionId:null, //可能结果,
|
|
|
+ assessInfos:{}, //评估内容
|
|
|
};
|
|
|
this.showInfo = this.showInfo.bind(this);
|
|
|
this.closeInfo = this.closeInfo.bind(this);
|
|
@@ -45,6 +46,8 @@ class ChronicInfo extends React.Component{
|
|
|
this.close = this.close.bind(this); //关闭量表列表
|
|
|
this.showFormula = this.showFormula.bind(this); //打开计算公式
|
|
|
this.closeFormula = this.closeFormula.bind(this); //关闭计算公式
|
|
|
+ this.addAssessItem = this.addAssessItem.bind(this); //加入病例记录
|
|
|
+ this.handleAssessChange = this.handleAssessChange.bind(this);
|
|
|
}
|
|
|
showTableList(id){//量表
|
|
|
const {getTableList,questionId} = this.props;
|
|
@@ -108,7 +111,17 @@ class ChronicInfo extends React.Component{
|
|
|
formulaId:null
|
|
|
})
|
|
|
}
|
|
|
+ addAssessItem(){ //加入整体评估
|
|
|
|
|
|
+ }
|
|
|
+ handleAssessChange(i,infos){ //整体评估操作内容变动
|
|
|
+ console.log(i,infos)
|
|
|
+ let obj = this.state.assessInfos;
|
|
|
+ obj[i]=infos;
|
|
|
+ this.setState({
|
|
|
+ assessInfos:obj
|
|
|
+ })
|
|
|
+ }
|
|
|
getDetail(){
|
|
|
const {data} = this.props;
|
|
|
const {showInfo,showOption,infoId,formulaId,optionId} = this.state;
|
|
@@ -133,7 +146,7 @@ class ChronicInfo extends React.Component{
|
|
|
if(it.type==1){
|
|
|
return <p>
|
|
|
<span className={style["listName"]} onClick={this.showTable.bind(this,it.content)}>{'【'+it.content.name+'】'}</span>
|
|
|
- <span className={style["listResult"]}>
|
|
|
+ <span className={style["listResult"]} onClick={this.addAssessItem}>
|
|
|
<img src={add} />
|
|
|
加入病历记录
|
|
|
</span>
|
|
@@ -225,14 +238,13 @@ class ChronicInfo extends React.Component{
|
|
|
})
|
|
|
return list;
|
|
|
}
|
|
|
-
|
|
|
render(){
|
|
|
+ const {chronicMagItem,showList,tableList,scaleInfo,data,saveAssessInfos} = this.props;
|
|
|
+ const {showInfo,showOption,showTable,showAssess,assessInfos} = this.state;
|
|
|
const footer = <div className={style['footer']}>
|
|
|
<span className={style['print']}><img src={printIcon} alt=""/>打印</span>
|
|
|
- <span className={style['okBtn']}>确定</span>
|
|
|
+ <span className={style['okBtn']} onClick={()=>saveAssessInfos(assessInfos)}>确定</span>
|
|
|
</div>;
|
|
|
- const {chronicMagItem,showList,tableList,scaleInfo,data} = this.props;
|
|
|
- const {showInfo,showOption,showTable,showAssess} = this.state;
|
|
|
return <div className={style["tips"]} style={{marginBottom:'15px'}}>
|
|
|
<div className={`${style["tips-title"]} ${style["chronic"]}`}>
|
|
|
<div className={style["tips-name"]}>
|
|
@@ -282,7 +294,7 @@ class ChronicInfo extends React.Component{
|
|
|
top={20}
|
|
|
bottom={20}
|
|
|
width={820}>
|
|
|
- <AssessResult></AssessResult>
|
|
|
+ <AssessResult handleChange={this.handleAssessChange}></AssessResult>
|
|
|
</ComplexModal>:''}
|
|
|
</div>
|
|
|
}
|