|
@@ -21,6 +21,7 @@ import {getAssessData} from '@store/async-actions/fetchModules';
|
|
import DetailsModal from '@components/PushItems/DetailsModal';
|
|
import DetailsModal from '@components/PushItems/DetailsModal';
|
|
import tableIcon from '@common/images/table.png';
|
|
import tableIcon from '@common/images/table.png';
|
|
import { CONFIRM_TYPE } from "@store/types/typeConfig";
|
|
import { CONFIRM_TYPE } from "@store/types/typeConfig";
|
|
|
|
+import config from '@config/index';
|
|
import $ from "jquery";
|
|
import $ from "jquery";
|
|
import {getMRAnalyse} from '@store/async-actions/pushMessage';
|
|
import {getMRAnalyse} from '@store/async-actions/pushMessage';
|
|
|
|
|
|
@@ -41,7 +42,8 @@ class DiagnosticList extends Component {
|
|
hasOnIndex: -1,
|
|
hasOnIndex: -1,
|
|
activeItem:{},
|
|
activeItem:{},
|
|
hasEnterItem: -1,
|
|
hasEnterItem: -1,
|
|
- hasEnterImg: false
|
|
|
|
|
|
+ hasEnterImg: false,
|
|
|
|
+ timer:null
|
|
}
|
|
}
|
|
this.deleteItem = this.deleteItem.bind(this);
|
|
this.deleteItem = this.deleteItem.bind(this);
|
|
this.cancel = this.cancel.bind(this);
|
|
this.cancel = this.cancel.bind(this);
|
|
@@ -279,6 +281,19 @@ class DiagnosticList extends Component {
|
|
hasEnterImg: false
|
|
hasEnterImg: false
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ handleInput(e,index){
|
|
|
|
+ const {editDiagName,getBilling} = this.props;
|
|
|
|
+ let name = e.target.value
|
|
|
|
+ editDiagName(index,name)
|
|
|
|
+ //右侧推送--延时推送
|
|
|
|
+ const stimer = this.state.timer;
|
|
|
|
+ clearTimeout(stimer);
|
|
|
|
+ let timer = setTimeout(function(){
|
|
|
|
+ getBilling&&getBilling({mode:10});
|
|
|
|
+ clearTimeout(stimer);
|
|
|
|
+ },config.delayPushTime);
|
|
|
|
+ this.setState({timer})
|
|
|
|
+ }
|
|
render(){
|
|
render(){
|
|
const { list, treatment,pushMessage, showReferRecord, showHistoryCase ,chronicMagItem,loading,refreshScroller,windowWidth,hideChronic} = this.props;
|
|
const { list, treatment,pushMessage, showReferRecord, showHistoryCase ,chronicMagItem,loading,refreshScroller,windowWidth,hideChronic} = this.props;
|
|
const {showTipsDetails,tipsDetails,showAllName}=pushMessage;
|
|
const {showTipsDetails,tipsDetails,showAllName}=pushMessage;
|
|
@@ -304,7 +319,7 @@ class DiagnosticList extends Component {
|
|
onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}
|
|
onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}
|
|
>
|
|
>
|
|
<span title={item.name} className={style['diag-name-box']} style={{'max-width': '300px'}}>
|
|
<span title={item.name} className={style['diag-name-box']} style={{'max-width': '300px'}}>
|
|
- {item.name}
|
|
|
|
|
|
+ <input type="text" value={item.name} onInput={(e)=>this.handleInput(e,index)}/>
|
|
</span>
|
|
</span>
|
|
{/* <img className={`${style['info-img']}`}
|
|
{/* <img className={`${style['info-img']}`}
|
|
title='点击i图标可查看详细说明'
|
|
title='点击i图标可查看详细说明'
|