|
@@ -10,18 +10,16 @@ import {MODI_LOADING} from '@store/types/homePage.js';
|
|
|
import { SHOW_TREAT} from '@store/types/treat.js';
|
|
|
|
|
|
const api={
|
|
|
- push:'/push/pushInner',
|
|
|
- textPush:'/push/pushText'
|
|
|
+ pushTreatment:'/push/pushTreatment',
|
|
|
+ getConceptDetail:'/conceptDetail/getConceptDetail'
|
|
|
}
|
|
|
|
|
|
export const addDiagnostic = (item) => {
|
|
|
return (dispatch, getState) => {
|
|
|
const state = getState();
|
|
|
- let url = api.push;
|
|
|
- if(+state.typeConfig.confirmType===1){
|
|
|
- url=api.textPush;
|
|
|
- }
|
|
|
+ let url = api.pushTreatment;
|
|
|
const emrData = getEMRParams();
|
|
|
+ console.log('emrData', emrData)
|
|
|
const diagnosticList = state.diagnosticList.diagnosticList;
|
|
|
let diag = '';
|
|
|
if(diagnosticList) {
|
|
@@ -312,9 +310,10 @@ export const setAllFollowUp = (item) => {
|
|
|
export const getInstroduce = (item, type, position)=>{
|
|
|
|
|
|
return (dispatch, getState) =>{
|
|
|
- const url = '/introduceInfo/getByQuestionId';
|
|
|
+ const url = '/conceptDetail/getConceptDetail';
|
|
|
const params = {
|
|
|
questionId: item.id,
|
|
|
+ name: item.name,
|
|
|
type: type,
|
|
|
position: position
|
|
|
}
|
|
@@ -348,7 +347,7 @@ export const getInstroduceMore = (drugIdList) =>{
|
|
|
return (dispatch, getState) =>{
|
|
|
let drugInfoList = [];
|
|
|
for (let i = 0; i < drugIdList.drugIdList.length; i++ ) {
|
|
|
- const url = '/introduceInfo/getByQuestionId';
|
|
|
+ const url = '/conceptDetail/getConceptDetail';
|
|
|
const params = {
|
|
|
questionId: drugIdList.drugIdList[i],
|
|
|
type: 8,
|