|
@@ -92,7 +92,7 @@ class DiagnosticList extends Component {
|
|
|
getTips && getTips({id:item.id,type:7});
|
|
|
}
|
|
|
referRecord() {
|
|
|
- const { hideReferRecord, showHistoryCaseModal ,chronicMagItem,hisTemplates,autoFillModules} = this.props
|
|
|
+ const { hideReferRecord, showHistoryCaseModal ,chronicMagItem,hisTemplates,autoFillModules,typeConfig} = this.props
|
|
|
hideReferRecord && hideReferRecord()
|
|
|
// showHistoryCaseModal && showHistoryCaseModal()
|
|
|
// store.dispatch(initItemList(chronicMagItem))
|
|
@@ -102,23 +102,28 @@ class DiagnosticList extends Component {
|
|
|
store.dispatch(setInitHistory(result.data));
|
|
|
showHistoryCaseModal && showHistoryCaseModal();
|
|
|
}else{
|
|
|
- Notify.info("暂无历史病例,已默认展示慢病相关内容");
|
|
|
- const timer = setTimeout(function(){
|
|
|
- autoFillModules && autoFillModules();
|
|
|
- clearTimeout(timer);
|
|
|
- },1000) //需求要求延时
|
|
|
+ if(typeConfig==0){
|
|
|
+ Notify.info("暂无历史病例,已默认展示慢病相关内容");
|
|
|
+ const timer = setTimeout(function(){
|
|
|
+ autoFillModules && autoFillModules();
|
|
|
+ clearTimeout(timer);
|
|
|
+ },1000) //需求要求延时
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
noReferRecord() {
|
|
|
- const { hideReferRecord ,autoFillModules} = this.props
|
|
|
+ const { hideReferRecord ,autoFillModules,typeConfig} = this.props
|
|
|
hideReferRecord && hideReferRecord();
|
|
|
- autoFillModules&&autoFillModules();
|
|
|
+ if(typeConfig==0){//智能推送模式才自动填充
|
|
|
+ autoFillModules&&autoFillModules();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
referCase() {
|
|
|
- const { hideHistoryCaseModal, items ,autoFillModules} = this.props
|
|
|
+ const { hideHistoryCaseModal, items ,autoFillModules,typeConfig} = this.props
|
|
|
hideHistoryCaseModal && hideHistoryCaseModal()
|
|
|
- if (this.state.activeHistory === -1) {//没有选择历史病例直接点确定
|
|
|
+ if (this.state.activeHistory === -1 && typeConfig==0) {//没有选择历史病例直接点确定
|
|
|
Notify.info("未选择历史病历,已默认展示慢病相关内容");
|
|
|
const timer = setTimeout(function(){
|
|
|
autoFillModules && autoFillModules();
|
|
@@ -138,12 +143,14 @@ class DiagnosticList extends Component {
|
|
|
})
|
|
|
}
|
|
|
closeHistoryCaseModal() {
|
|
|
- const { hideHistoryCaseModal ,autoFillModules} = this.props
|
|
|
+ const { hideHistoryCaseModal ,autoFillModules,typeConfig} = this.props
|
|
|
this.setState({
|
|
|
activeHistory: -1
|
|
|
})
|
|
|
hideHistoryCaseModal && hideHistoryCaseModal()
|
|
|
- autoFillModules && autoFillModules();
|
|
|
+ if(typeConfig==0){//智能推送模式才自动填充
|
|
|
+ autoFillModules&&autoFillModules();
|
|
|
+ }
|
|
|
}
|
|
|
handleQuoteClick(item, index) {
|
|
|
const { handleQuoteClick } = this.props
|