|
@@ -1,12 +1,11 @@
|
|
|
import { get, post, json } from "@utils/ajax";
|
|
|
-import { BILLING_ADVICE, SET_TIPS, SET_TIPS_DETAILS ,SET_CHRONIC_TABLELIST,SET_SCALE_INFO,SET_CHRONIC_PUSHS,SHOW_TABLE_LIST} from '@store/types/pushMessage';
|
|
|
+import { BILLING_ADVICE, SET_TIPS, SET_TIPS_DETAILS ,SET_CHRONIC_TABLELIST,SET_SCALE_INFO,SET_CHRONIC_PUSHS,SHOW_TABLE_LIST, SHOW_TIPS_DETAILS} from '@store/types/pushMessage';
|
|
|
import { SET_DRUG_INFO, SHOW_DRUG_INFO } from '@store/types/treat';
|
|
|
import { SET_CLICK_DIAG } from '../types/diagnosticList';
|
|
|
import {storageLocal,getEMRParams} from '@utils/tools';
|
|
|
import {SET_IMPORT_CHECKBODY_LABEL,PRESET} from "../types/checkBody";
|
|
|
import { Notify} from '@commonComp';
|
|
|
import {pregetCheckbodyData} from '@store/async-actions/fetchModules';
|
|
|
-
|
|
|
const api={
|
|
|
push:'/push/pushInner',
|
|
|
getTableList:'/scale/getList', //获取量表列表
|
|
@@ -153,18 +152,20 @@ export const getConceptDetail = (item) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export const getAllConceptDetail = () => {
|
|
|
+export const getAllConceptDetail = (item) => {
|
|
|
return(dispatch, getState) => {
|
|
|
const state = getState();
|
|
|
- const clickItem = state.diagnosticList.clickDiag
|
|
|
const params = {
|
|
|
- type: clickItem.type,
|
|
|
- name: clickItem.name,
|
|
|
- position:2
|
|
|
+ type: item.type,
|
|
|
+ name: item.name,
|
|
|
+ position:item.position
|
|
|
}
|
|
|
json(api.getConceptDetail, params)
|
|
|
.then((res)=>{
|
|
|
if(res.data.code == '0') {
|
|
|
+ dispatch({
|
|
|
+ type: SHOW_TIPS_DETAILS
|
|
|
+ })
|
|
|
dispatch({
|
|
|
type: SET_TIPS_DETAILS,
|
|
|
tipsDetails: res.data.data
|