|
@@ -5,6 +5,8 @@ import del_on from './img/delete-on.png'
|
|
|
import diagUp from './img/diagUp.png'
|
|
|
import diagDown from './img/diagDown.png'
|
|
|
import manageIcon from '@common/images/manage.png';
|
|
|
+import infoShow from '@common/images/info-show.png';
|
|
|
+import infoMove from '@common/images/info-move.png';
|
|
|
import {ConfirmModal, Message,ComplexModal,Footer,Loading} from '@commonComp';
|
|
|
import Notify from '@commonComp/Notify';
|
|
|
import Treat from '@containers/Treat'
|
|
@@ -35,7 +37,9 @@ class DiagnosticList extends Component {
|
|
|
isAssessConfirm:false,
|
|
|
hasOndel: false,
|
|
|
hasOnIndex: -1,
|
|
|
- activeItem:{}
|
|
|
+ activeItem:{},
|
|
|
+ hasEnterItem: -1,
|
|
|
+ hasEnterImg: false
|
|
|
}
|
|
|
this.deleteItem = this.deleteItem.bind(this);
|
|
|
this.cancel = this.cancel.bind(this);
|
|
@@ -103,10 +107,10 @@ class DiagnosticList extends Component {
|
|
|
treatTitle: item.name
|
|
|
})
|
|
|
}
|
|
|
- handleClickDiag(item) {
|
|
|
+ handleClickDiag(item,noTips,noDetails,noNotify) {
|
|
|
const { getTips } = this.props;
|
|
|
// getTips && getTips(item);
|
|
|
- getTips && getTips({id:item.conceptId, type:7, name: item.name, position: 1});
|
|
|
+ getTips && getTips({id:item.conceptId, type:7, name: item.name, position: 1},noTips,noDetails,noNotify);
|
|
|
}
|
|
|
referRecord() {
|
|
|
const { hideReferRecord, showHistoryCaseModal ,chronicMagItem,hisTemplates,autoFillModules,typeConfig} = this.props;
|
|
@@ -249,9 +253,29 @@ class DiagnosticList extends Component {
|
|
|
hasOndel: false
|
|
|
})
|
|
|
}
|
|
|
+ handleMouseEnterDrug(index) {
|
|
|
+ this.setState({
|
|
|
+ hasEnterItem: index,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ handleMouseLeaveDrug() {
|
|
|
+ this.setState({
|
|
|
+ hasEnterItem: -1,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ handleMouseEnterImg() {
|
|
|
+ this.setState({
|
|
|
+ hasEnterImg: true
|
|
|
+ })
|
|
|
+ }
|
|
|
+ handleMouseLeaveImg() {
|
|
|
+ this.setState({
|
|
|
+ hasEnterImg: false
|
|
|
+ })
|
|
|
+ }
|
|
|
render(){
|
|
|
const { list, treatment, showReferRecord, showHistoryCase ,chronicMagItem,loading,refreshScroller} = this.props;
|
|
|
- const {visible, treatTitle, showAssess, isAssessConfirm, assessId, disName, hasOndel, hasOnIndex} = this.state;
|
|
|
+ const {visible, treatTitle, showAssess, isAssessConfirm, assessId, disName, hasOndel, hasOnIndex,hasEnterItem,hasEnterImg} = this.state;
|
|
|
const chronicList = JSON.parse(localStorage.getItem('chronic')||null);
|
|
|
let isChronic = false; //是否要显示管理评估
|
|
|
const footer = <Footer print={true}
|
|
@@ -268,7 +292,22 @@ class DiagnosticList extends Component {
|
|
|
{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>
|
|
|
- <span className={style['diag-name']} onClick={()=>{this.handleClickDiag(item)}}>{item.name}<span></span></span>
|
|
|
+ <span className={style['diag-name']}
|
|
|
+ onMouseEnter={this.handleMouseEnterDrug.bind(this,index)}
|
|
|
+ onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}
|
|
|
+ >
|
|
|
+ <span onClick={this.handleClickDiag.bind(this,item,false,true,false)}>
|
|
|
+ {item.name}
|
|
|
+ </span>
|
|
|
+ <img className={style['info-img']}
|
|
|
+ title='点击i图标可查看详细说明'
|
|
|
+ style ={hasEnterItem===index ? {display: "inline-block"} : {display: "none"}}
|
|
|
+ src={hasEnterImg ? infoMove : infoShow}
|
|
|
+ onMouseEnter={this.handleMouseEnterImg.bind(this)}
|
|
|
+ onMouseLeave = {this.handleMouseLeaveImg.bind(this)}
|
|
|
+ onClick={this.handleClickDiag.bind(this,item,false,false,false)}
|
|
|
+ />
|
|
|
+ </span>
|
|
|
{item.type === 1 ? <span className={style['diag-first']}>初诊</span> :<span className={style['diag-second']}> 复诊</span>}
|
|
|
<span className={style['treat']}
|
|
|
// style ={hasTreat ? '' : { color: 'gray', cursor: 'text'}}
|