|
@@ -241,6 +241,7 @@ class DiagnosticList extends Component {
|
|
|
this.props.getBilling();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
handleEnterDel(index) {
|
|
|
this.setState({
|
|
|
hasOnIndex: index,
|
|
@@ -274,7 +275,7 @@ class DiagnosticList extends Component {
|
|
|
})
|
|
|
}
|
|
|
render(){
|
|
|
- const { list, treatment, showReferRecord, showHistoryCase ,chronicMagItem,loading,refreshScroller} = this.props;
|
|
|
+ const { list, treatment, showReferRecord, showHistoryCase ,chronicMagItem,loading,refreshScroller,windowWidth} = this.props;
|
|
|
const {visible, treatTitle, showAssess, isAssessConfirm, assessId, disName, hasOndel, hasOnIndex,hasEnterItem,hasEnterImg} = this.state;
|
|
|
const chronicList = JSON.parse(localStorage.getItem('chronic')||null);
|
|
|
let isChronic = false; //是否要显示管理评估
|
|
@@ -288,7 +289,7 @@ class DiagnosticList extends Component {
|
|
|
const hasTreat = item.treat && ((item.treat.commonTreatment&&item.treat.commonTreatment.content) || (item.treat.surgeryTreatment&&item.treat.surgeryTreatment.content) || item.treat.treatment.length>0 ||(item.adverseReactions&&item.adverseReactions.length > 0)
|
|
|
|| (item.drugHistory && item.drugHistory['慢病用药内容'] && item.drugHistory['慢病用药内容'].length > 0) || (item.drugHistory &&item.drugHistory['普通病用药内容'] && item.drugHistory['普通病用药内容'].length > 0) ||item.follow)
|
|
|
isChronic = chronicMagItem&&item.type==2&&chronicList.findIndex((it)=>it.conceptId==item.conceptId)!=-1;
|
|
|
- return (<div draggable={true} className={style['diag-box'] + ' clearfix'} key={item.conceptId} >
|
|
|
+ return (<div draggable={true} className={style['diag-box'] + ' clearfix'} id="diagListBox" key={item.conceptId} >
|
|
|
{index === 0 ? '' : <span className={style['diag-up']} onClick={() => {this.upDiagnostic(index)}}><img className={style["diag-up"]} src={diagUp}/></span>}
|
|
|
{list.length === 1 ? '' : index !== 0 ? '' : <span onClick={() => {this.downDiagnostic(index)}} className={style['diag-down']}><img className={style["diag-down"]} src={diagDown}/></span>}
|
|
|
<span className={style['diag-number']} style={{fontWeight:index === 0 ?'bold':'normal'}}>{index === 0 ? '1' : index+1}</span>
|
|
@@ -296,7 +297,7 @@ class DiagnosticList extends Component {
|
|
|
onMouseEnter={this.handleMouseEnterDrug.bind(this,index)}
|
|
|
onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}
|
|
|
>
|
|
|
- <span onClick={this.handleClickDiag.bind(this,item,false,true,false)}>
|
|
|
+ <span className={style['diag-name-box']} style={{width: windowWidth > 1024 ?windowWidth-900 +'px':'130px'}} onClick={this.handleClickDiag.bind(this,item,false,true,false)}>
|
|
|
{item.name}
|
|
|
</span>
|
|
|
<img className={style['info-img']}
|