|
@@ -2,6 +2,7 @@ import {
|
|
json
|
|
json
|
|
} from "../../utils/ajax";
|
|
} from "../../utils/ajax";
|
|
import store from '@store';
|
|
import store from '@store';
|
|
|
|
+import {MODI_LOADING} from '@store/types/homePage.js';
|
|
import Notify from '@commonComp/Notify';
|
|
import Notify from '@commonComp/Notify';
|
|
import {
|
|
import {
|
|
getAllDataList,
|
|
getAllDataList,
|
|
@@ -10,8 +11,37 @@ import {
|
|
filterDataArr,
|
|
filterDataArr,
|
|
filterOtherDataArr
|
|
filterOtherDataArr
|
|
} from '@utils/tools';
|
|
} from '@utils/tools';
|
|
-
|
|
|
|
-export const saveMessage = (bool) => {
|
|
|
|
|
|
+export const getConceptDetails = (bool) => {
|
|
|
|
+ let baseList = store.getState();
|
|
|
|
+ let disLis = baseList.diagnosticList.diagnosticList||[];
|
|
|
|
+ let tmpLis = [];
|
|
|
|
+ for(let i = 0;i < disLis.length;i++){
|
|
|
|
+ let obj = {}
|
|
|
|
+ obj.name = disLis[i].name
|
|
|
|
+ obj.type = 7
|
|
|
|
+ obj.position = 3
|
|
|
|
+ tmpLis.push(obj)
|
|
|
|
+ }
|
|
|
|
+ json('/conceptDetail/getConceptDetails', {
|
|
|
|
+ "conceptIntorduces": tmpLis
|
|
|
|
+ }).then((res)=>{//conceptIntroduceDTO
|
|
|
|
+ let data = res.data;
|
|
|
|
+ if (data.code == 0) {
|
|
|
|
+ realSaveData(bool,data.data)
|
|
|
|
+ } else {
|
|
|
|
+ console.log(res)
|
|
|
|
+ realSaveData(bool)
|
|
|
|
+ }
|
|
|
|
+ }).catch((err)=>{
|
|
|
|
+ realSaveData(bool)
|
|
|
|
+ console.log(err)
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+export const saveMessage=(bool)=>{
|
|
|
|
+ store.dispatch({type:MODI_LOADING,flag:true});
|
|
|
|
+ getConceptDetails(bool)
|
|
|
|
+}
|
|
|
|
+export const realSaveData = (bool,list) => {
|
|
let baseList = store.getState();
|
|
let baseList = store.getState();
|
|
const readMode = baseList.typeConfig.readMode; //回读模式
|
|
const readMode = baseList.typeConfig.readMode; //回读模式
|
|
let state = baseList.patInfo.message;
|
|
let state = baseList.patInfo.message;
|
|
@@ -40,6 +70,7 @@ export const saveMessage = (bool) => {
|
|
pacsData.checkedListImport = jsonData.checkedListImport
|
|
pacsData.checkedListImport = jsonData.checkedListImport
|
|
json('/inquiryInfo/saveInquiry', {
|
|
json('/inquiryInfo/saveInquiry', {
|
|
"doctorId": state.doctorId,
|
|
"doctorId": state.doctorId,
|
|
|
|
+ "conceptIntroduceDTO":list||[],
|
|
"hospitalDeptId": state.hospitalDeptId,
|
|
"hospitalDeptId": state.hospitalDeptId,
|
|
"hospitalId": state.hospitalId,
|
|
"hospitalId": state.hospitalId,
|
|
"patientId": state.patientId, //患者id
|
|
"patientId": state.patientId, //患者id
|
|
@@ -102,7 +133,9 @@ export const saveMessage = (bool) => {
|
|
} else {
|
|
} else {
|
|
Notify.info(data.msg);
|
|
Notify.info(data.msg);
|
|
}
|
|
}
|
|
|
|
+ store.dispatch({type:MODI_LOADING,flag:false});
|
|
}).catch(function(){
|
|
}).catch(function(){
|
|
|
|
+ store.dispatch({type:MODI_LOADING,flag:false});
|
|
Notify.info('保存失败,请稍后再试!');
|
|
Notify.info('保存失败,请稍后再试!');
|
|
});
|
|
});
|
|
if(bool){
|
|
if(bool){
|