|
@@ -4,8 +4,6 @@ import chronicPic from "../../common/images/chronic.png";
|
|
|
import level1 from "../../common/images/级别1.png";
|
|
|
import tableIcon from '@common/images/table.png';
|
|
|
import allTableIcon from '@common/images/all-table.png';
|
|
|
-import add from '@common/images/add-result.png';
|
|
|
-import added from '@common/images/first.png';
|
|
|
import checkIcon from '@common/images/check.png';
|
|
|
import up from '@common/images/slide-up.png';
|
|
|
import down from '@common/images/slide-down.png';
|
|
@@ -152,6 +150,9 @@ class ChronicInfo extends React.Component{
|
|
|
return ;
|
|
|
}
|
|
|
this.handleAddAssessItem(scaleParam.v,scaleParam.i,scaleParam.j);
|
|
|
+ this.setState({
|
|
|
+ scaleParam:{}
|
|
|
+ });
|
|
|
}
|
|
|
this.props.hideList({name:'showTable',value:false});
|
|
|
}
|
|
@@ -216,8 +217,9 @@ class ChronicInfo extends React.Component{
|
|
|
addAssessItem(v,pIndex,i);
|
|
|
}
|
|
|
addFormula(it,v,pIndex,i){
|
|
|
+ const {chronicMagItem} = this.props;
|
|
|
this.closeFormula(it);
|
|
|
- this.handleAddAssessItem(v,pIndex,i);
|
|
|
+ chronicMagItem&&this.handleAddAssessItem(v,pIndex,i);
|
|
|
}
|
|
|
handleReg(e){ //只能输入数字
|
|
|
const hasDot = e.target.value.indexOf('.')!=-1;
|
|
@@ -267,14 +269,14 @@ class ChronicInfo extends React.Component{
|
|
|
}
|
|
|
confirmOption(parent,pIndex,i){//可能结果确定
|
|
|
const {radioVal,possible} = this.state;
|
|
|
- const {savePossibleResult} = this.props;
|
|
|
+ const {savePossibleResult,chronicMagItem} = this.props;
|
|
|
this.setState({
|
|
|
possible:Object.assign({},possible,radioVal),
|
|
|
radioVal:Object.assign({},possible,radioVal),//不设置radioVal只有最近一次选中的值
|
|
|
optionId:null,
|
|
|
});
|
|
|
savePossibleResult&&savePossibleResult({possible:Object.assign({},possible,radioVal),radioVal:Object.assign({},possible,radioVal)})
|
|
|
- this.handleAddAssessItem(parent,pIndex,i);
|
|
|
+ chronicMagItem&&this.handleAddAssessItem(parent,pIndex,i);
|
|
|
|
|
|
}
|
|
|
handleSaveCalcu(obj){
|
|
@@ -343,7 +345,7 @@ class ChronicInfo extends React.Component{
|
|
|
}
|
|
|
|
|
|
getDetail(){
|
|
|
- const {data,formulaResult,calcuResult,indexs} = this.props;
|
|
|
+ const {data,formulaResult,calcuResult,chronicMagItem} = this.props;
|
|
|
const {formulaId,optionId,possible,radioVal,calcuValues,currentIndex,hasEnterImg} = this.state;
|
|
|
let list = data&&data.map((v,i)=>{
|
|
|
return <div className={style["list"]}>
|
|
@@ -387,7 +389,7 @@ class ChronicInfo extends React.Component{
|
|
|
</span>
|
|
|
{formulaId&&formulaId==v.conceptId&&<MiniToast title={it.content.name}
|
|
|
icon={allTableIcon}
|
|
|
- confirmText='加入病例记录'
|
|
|
+ confirmText={chronicMagItem?'加入病例记录':'确定'}
|
|
|
show={formulaId&&formulaId==v.conceptId?true:false}
|
|
|
close={this.closeFormula.bind(this,it)}
|
|
|
confirm={this.addFormula.bind(this,it,v,i,j)}
|
|
@@ -451,7 +453,7 @@ class ChronicInfo extends React.Component{
|
|
|
</span>
|
|
|
<MiniToast title='结果选择'
|
|
|
icon={checkIcon}
|
|
|
- confirmText='加入病例记录'
|
|
|
+ confirmText={chronicMagItem?'加入病例记录':'确定'}
|
|
|
show={optionId&&optionId==v.conceptId?true:false}
|
|
|
close={this.closeOption}
|
|
|
confirm={this.confirmOption.bind(this,v,i,j)}
|
|
@@ -498,9 +500,9 @@ class ChronicInfo extends React.Component{
|
|
|
const {comfirnFlag,flag,ff} = this.state;
|
|
|
const {chronicMagItem,chronicDesease,formulaResult,showHide,slideUp} = this.props;
|
|
|
const scaleFooter = <Footer print={true}
|
|
|
- footText={showHide.isPop?"确定":"加入病例记录"}
|
|
|
+ footText={showHide.isPop||!chronicMagItem?"确定":"加入病例记录"}
|
|
|
handlePrint={this.onPrint}
|
|
|
- handleConfirm={()=>{this.comfirnTable()}}/>;
|
|
|
+ handleConfirm={this.comfirnTable}/>;
|
|
|
return <div className={style["tips"]} style={{marginBottom:'15px'}}>
|
|
|
<div className={`${style["tips-title"]} ${style["chronic"]}`}>
|
|
|
<div className={style["tips-name"]}>
|