|
@@ -323,19 +323,19 @@ class DiagnosticList extends Component {
|
|
|
hasEnterImg: false
|
|
|
})
|
|
|
}
|
|
|
- handleFocus(){
|
|
|
+ handleFocus(flag){
|
|
|
const {getBilling} = this.props;
|
|
|
- getBilling&&getBilling({mode:10});
|
|
|
+ getBilling&&getBilling({isTcm:flag});
|
|
|
}
|
|
|
- handleInput(e,index){
|
|
|
+ handleInput(e,index,isTcm){
|
|
|
const {editDiagName,getBilling} = this.props;
|
|
|
let name = (e.target.value).trim()
|
|
|
- editDiagName(index,name)
|
|
|
+ editDiagName(index,name,isTcm)
|
|
|
//右侧推送--延时推送
|
|
|
const stimer = this.state.timer;
|
|
|
clearTimeout(stimer);
|
|
|
let timer = setTimeout(function(){
|
|
|
- getBilling&&getBilling({mode:10});
|
|
|
+ getBilling&&getBilling({isTcm:!!isTcm});
|
|
|
clearTimeout(stimer);
|
|
|
},config.delayPushTime);
|
|
|
this.setState({timer})
|
|
@@ -357,13 +357,13 @@ class DiagnosticList extends Component {
|
|
|
|
|
|
{tcmDiag?<span className={style['diag-name']}>
|
|
|
<span title={tcmDiag} className={style['diag-name-box']} style={{'max-width': '300px'}}>
|
|
|
- <input type="text" value={tcmDiag} disabled={true}/>
|
|
|
+ <input type="text" value={tcmDiag} onFocus={(e)=>{this.handleFocus(true)}} onBlur={(e)=>{this.handleBlur(e,item,index)}} onInput={(e)=>this.handleInput(e,index,'tcmDiag')}/>
|
|
|
</span>
|
|
|
|
|
|
</span>:<Add showText="添加中医诊断结果" isTcm={isTcm} handleClick={this.handleTcmShowSearch} id="addTcmDiag" height="50px" />}
|
|
|
{tcmSyndrome?<span className={style['diag-name']}>
|
|
|
<span title={tcmSyndrome} className={style['diag-name-box']} style={{'max-width': '300px'}}>
|
|
|
- <input type="text" value={tcmSyndrome} disabled={true}/>
|
|
|
+ <input type="text" value={tcmSyndrome} onFocus={(e)=>{this.handleFocus(true)}} onBlur={(e)=>{this.handleBlur(e,item,index)}} onInput={(e)=>this.handleInput(e,index,'tcmSyndrome')}/>
|
|
|
</span>
|
|
|
|
|
|
</span>:(tcmDiag?<Add showText="添加中医证候" isTcm={isTcm} handleClick={this.handleSymShowSearch} id="addSymDiag" height="50px" />:'')}
|