|
@@ -7,7 +7,7 @@ import {ConfirmModal, Message} from '@commonComp';
|
|
import Notify from '@commonComp/Notify';
|
|
import Notify from '@commonComp/Notify';
|
|
import Treat from '@containers/Treat'
|
|
import Treat from '@containers/Treat'
|
|
import store from '@store';
|
|
import store from '@store';
|
|
-import { initItemList } from '@store/async-actions/historyTemplates';
|
|
|
|
|
|
+import { initItemList ,setInitHistory} from '@store/async-actions/historyTemplates';
|
|
import { pushAllDataList,inspectAndAssist } from '@utils/tools';
|
|
import { pushAllDataList,inspectAndAssist } from '@utils/tools';
|
|
import iconRadioDefault from '@common/images/icon-radio-default.png'
|
|
import iconRadioDefault from '@common/images/icon-radio-default.png'
|
|
import iconRadioActive from '@common/images/icon-radio-active.png'
|
|
import iconRadioActive from '@common/images/icon-radio-active.png'
|
|
@@ -92,15 +92,28 @@ class DiagnosticList extends Component {
|
|
getTips && getTips({id:item.id,type:7});
|
|
getTips && getTips({id:item.id,type:7});
|
|
}
|
|
}
|
|
referRecord() {
|
|
referRecord() {
|
|
- const { hideReferRecord, showHistoryCaseModal ,chronicMagItem} = this.props
|
|
|
|
|
|
+ const { hideReferRecord, showHistoryCaseModal ,chronicMagItem,hisTemplates,autoFillModules} = this.props
|
|
hideReferRecord && hideReferRecord()
|
|
hideReferRecord && hideReferRecord()
|
|
- showHistoryCaseModal && showHistoryCaseModal()
|
|
|
|
- store.dispatch(initItemList(chronicMagItem));
|
|
|
|
-
|
|
|
|
|
|
+ // showHistoryCaseModal && showHistoryCaseModal()
|
|
|
|
+ // store.dispatch(initItemList(chronicMagItem))
|
|
|
|
+ initItemList(chronicMagItem).then((res)=>{
|
|
|
|
+ const result = res.data;
|
|
|
|
+ if(result.code==0 && result.data){
|
|
|
|
+ store.dispatch(setInitHistory(result.data));
|
|
|
|
+ showHistoryCaseModal && showHistoryCaseModal();
|
|
|
|
+ }else{
|
|
|
|
+ Notify.info("暂无历史病例,默认引用通用模板");
|
|
|
|
+ const timer = setTimeout(function(){
|
|
|
|
+ autoFillModules && autoFillModules();
|
|
|
|
+ clearTimeout(timer);
|
|
|
|
+ },1000) //需求要求延时
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
noReferRecord() {
|
|
noReferRecord() {
|
|
- const { hideReferRecord } = this.props
|
|
|
|
- hideReferRecord && hideReferRecord()
|
|
|
|
|
|
+ const { hideReferRecord ,autoFillModules} = this.props
|
|
|
|
+ hideReferRecord && hideReferRecord();
|
|
|
|
+ autoFillModules&&autoFillModules();
|
|
}
|
|
}
|
|
referCase() {
|
|
referCase() {
|
|
const { hideHistoryCaseModal, items } = this.props
|
|
const { hideHistoryCaseModal, items } = this.props
|
|
@@ -120,11 +133,12 @@ class DiagnosticList extends Component {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
closeHistoryCaseModal() {
|
|
closeHistoryCaseModal() {
|
|
- const { hideHistoryCaseModal } = this.props
|
|
|
|
|
|
+ const { hideHistoryCaseModal ,autoFillModules} = this.props
|
|
this.setState({
|
|
this.setState({
|
|
activeHistory: -1
|
|
activeHistory: -1
|
|
})
|
|
})
|
|
hideHistoryCaseModal && hideHistoryCaseModal()
|
|
hideHistoryCaseModal && hideHistoryCaseModal()
|
|
|
|
+ autoFillModules && autoFillModules();
|
|
}
|
|
}
|
|
handleQuoteClick(item, index) {
|
|
handleQuoteClick(item, index) {
|
|
console.log('asadsd', item)
|
|
console.log('asadsd', item)
|