|
@@ -63,6 +63,7 @@ class ChronicInfo extends React.Component{
|
|
|
this.onPrint = this.onPrint.bind(this);
|
|
|
this.handleForRadio = this.handleForRadio.bind(this);
|
|
|
this.showRecommendFn = this.showRecommendFn.bind(this);
|
|
|
+ this.handleSaveCalcu = this.handleSaveCalcu.bind(this); //保存评估修改的计算和可能结果
|
|
|
}
|
|
|
|
|
|
onPrint() {
|
|
@@ -239,7 +240,12 @@ class ChronicInfo extends React.Component{
|
|
|
radioVal:Object.assign({},possible,radioVal),//不设置radioVal只有最近一次选中的值
|
|
|
optionId:null
|
|
|
})
|
|
|
-
|
|
|
+ }
|
|
|
+ handleSaveCalcu(obj){
|
|
|
+ this.setState({
|
|
|
+ possible:Object.assign({},obj.possible),
|
|
|
+ radioVal:Object.assign({},obj.radioVal),//不设置radioVal只有最近一次选中的值
|
|
|
+ })
|
|
|
}
|
|
|
calcuFormula(it,j, v, i) { //计算公式计算
|
|
|
const { calcuFormula, data ,chronicPushItems} = this.props
|
|
@@ -277,8 +283,8 @@ class ChronicInfo extends React.Component{
|
|
|
}
|
|
|
}
|
|
|
getDetail(){
|
|
|
- const {data,indexs,scaleInfo,formulaResult} = this.props;
|
|
|
- const {showInfo,showOption,infoId,formulaId,optionId,possible,radioVal,isFormulaConfirm} = this.state;
|
|
|
+ const {data,indexs,formulaResult} = this.props;
|
|
|
+ const {formulaId,optionId,possible,radioVal,isFormulaConfirm} = this.state;
|
|
|
let list = data&&data.map((v,i)=>{
|
|
|
return <div className={style["list"]}>
|
|
|
{v.name?<p>
|
|
@@ -515,6 +521,7 @@ class ChronicInfo extends React.Component{
|
|
|
bottom={20}
|
|
|
width={820}>
|
|
|
<AssessResult handleSave={saveAssessInfos}
|
|
|
+ handleSaveCalcu={this.handleSaveCalcu}
|
|
|
closeAssess={this.showAssessFn}
|
|
|
showScaleFn={this.showTable.bind(this)}
|
|
|
calcuFormula={calcuFormula}
|