|
@@ -1,22 +1,19 @@
|
|
|
import React from 'react';
|
|
|
import { connect } from 'react-redux';
|
|
|
import MainSuit from '@components/MainSuit';
|
|
|
-import {CLEAR_COMSYMPTOMS,SHOW_TAIL,INSERT_MAIN,CLEAR_SEARCH,SET_SEARCH,SAVE_FREE,SET_DATA,INSERT_SEARCH,SETTEXTMODEVALUE,SET_FEATURE,SAVE_CHRONIC,SHOW_HISTORY_BOX,HIDE_HISTORY_BOX} from '@store/types/mainSuit';
|
|
|
+import {CLEAR_COMSYMPTOMS,SHOW_TAIL,INSERT_MAIN,CLEAR_SEARCH,SET_SEARCH,SAVE_FREE,SET_DATA,INSERT_SEARCH,SETTEXTMODEVALUE,SET_FEATURE,SAVE_CHRONIC} from '@store/types/mainSuit';
|
|
|
import {RESET,CLICKCOUNT,ISREAD,SEARCH_DROP_LOCATION,MODI_LOADING} from '@store/types/homePage.js';
|
|
|
import {getCommSymptoms,getCommSymptomPush} from '@store/async-actions/mainSuit.js'
|
|
|
-import {SET_MAIN_SUIT} from '@store/types/fillInfo';
|
|
|
import {CLEAR_DIAGNOSE} from '@store/types/diagnosticList';
|
|
|
-import {getSearch,getFeature,setOtherHisModule,autoFillModules} from '@store/async-actions/fetchModules';
|
|
|
+import {getSearch,getFeature,autoFillModules} from '@store/async-actions/fetchModules';
|
|
|
import {billing} from '@store/async-actions/pushMessage';
|
|
|
import {didPushParamChange,filterDataArr,inspectAndAssist} from '@utils/tools.js';
|
|
|
import config from '@config/index.js';
|
|
|
import {Notify} from '@commonComp';
|
|
|
import {getInitModules} from '@store/async-actions/homePage.js';
|
|
|
-import {CURRENT_CHRONIC} from '@store/types/currentIll';
|
|
|
-import {SET} from '@types/checkBody';
|
|
|
import {SHOW_REFER_RECORD} from '@store/types/diagnosticList';
|
|
|
|
|
|
-function mapStateToProps(state) {//console.log(11,state);
|
|
|
+function mapStateToProps(state) {
|
|
|
return {
|
|
|
showDrop:state.mainSuit.showDrop,//用于更新
|
|
|
update:state.mainSuit.update,
|
|
@@ -26,7 +23,6 @@ function mapStateToProps(state) {//console.log(11,state);
|
|
|
saveText:state.mainSuit.saveText,
|
|
|
searchData:state.mainSuit.searchDatas,//搜索结果
|
|
|
type: state.typeConfig.typeConfig,
|
|
|
- fillInfo: state.fillInfo,
|
|
|
showArr:state.homePage.showDrop,
|
|
|
totalHide:state.homePage.totalHide,
|
|
|
focusIndex:state.mainSuit.focusIndex,
|
|
@@ -41,9 +37,7 @@ function mapStateToProps(state) {//console.log(11,state);
|
|
|
boxLeft:state.homePage.boxLeft,
|
|
|
currentData:state.currentIll.data,
|
|
|
allModules:state.homePage.allModules,
|
|
|
- chronicDesease:state.mainSuit.chronicDesease,
|
|
|
- items:state.historyTemplates.items,
|
|
|
- showHisBox:state.mainSuit.showHisBox,
|
|
|
+ chronicDesease:state.mainSuit.chronicDesease||state.diagnosticList.chronicMagItem,
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -102,11 +96,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
type: SET_DATA
|
|
|
})
|
|
|
},
|
|
|
- setMainSuit: (value) => {
|
|
|
- dispatch({type: SET_MAIN_SUIT, value})
|
|
|
- },
|
|
|
pushMessage(data) {//结构模式右侧推送
|
|
|
- // console.log("右侧推送接口");
|
|
|
dispatch(billing(data));
|
|
|
},
|
|
|
getSearchData:(item)=>{
|
|
@@ -156,7 +146,6 @@ function mapDispatchToProps(dispatch) {
|
|
|
},
|
|
|
fetchPushInfos(){//文本模式下推送
|
|
|
//调右侧推送
|
|
|
- console.log('右侧推送内容');
|
|
|
dispatch(billing());
|
|
|
},
|
|
|
handleInput(obj){ //文本模式值保存
|
|
@@ -190,8 +179,6 @@ function mapDispatchToProps(dispatch) {
|
|
|
}
|
|
|
},
|
|
|
async saveChronic(item){//储存慢病信息
|
|
|
- // 页面已有数据不再请求
|
|
|
-
|
|
|
// loading
|
|
|
dispatch({type:MODI_LOADING,flag:true});
|
|
|
// 存慢病
|
|
@@ -203,10 +190,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
await dispatch(getInitModules);
|
|
|
// 模板回来关闭;loading
|
|
|
dispatch({type:MODI_LOADING,flag:false});
|
|
|
- // 弹窗是否引用历史病例?
|
|
|
- // dispatch({type:SHOW_HISTORY_BOX});
|
|
|
dispatch({type:SHOW_REFER_RECORD});
|
|
|
-
|
|
|
},
|
|
|
pureSaveChronic(item){//引用病例时储存
|
|
|
// 存慢病
|
|
@@ -215,9 +199,6 @@ function mapDispatchToProps(dispatch) {
|
|
|
data:item
|
|
|
})
|
|
|
},
|
|
|
- closeHisBox(){
|
|
|
- dispatch({type:HIDE_HISTORY_BOX})
|
|
|
- },
|
|
|
getBilling: () => {
|
|
|
dispatch(billing())
|
|
|
},
|