|
@@ -34,6 +34,7 @@ const store = new Vuex.Store({
|
|
|
},
|
|
|
addContent:{
|
|
|
origin:[],
|
|
|
+ datas:[],
|
|
|
txt:'',
|
|
|
txtDoc:''
|
|
|
},
|
|
@@ -116,7 +117,8 @@ const store = new Vuex.Store({
|
|
|
}
|
|
|
state.addContent={
|
|
|
origin:[],
|
|
|
- txt:'',
|
|
|
+ datas:[],
|
|
|
+ text:[],
|
|
|
txtDoc:''
|
|
|
}
|
|
|
},
|
|
@@ -168,7 +170,7 @@ const store = new Vuex.Store({
|
|
|
"1": param.length > 0 && param.filter(item => item.code == "symptoms_show")[0].value,
|
|
|
"51": param.length > 0 && param.filter(item => item.code == "diagnosis_show")[0].value,
|
|
|
"3": param.length > 0 && param.filter(item => item.code == "omhistory_show")[0].value,
|
|
|
- "52": 0,//param.length > 0 && param.filter(item => item.code == "replenish_show")[0].value,
|
|
|
+ "52": param.length > 0 && param.filter(item => item.code == "replenish_show")[0].value,
|
|
|
}
|
|
|
state.tabType = tabType
|
|
|
},
|
|
@@ -183,6 +185,10 @@ const store = new Vuex.Store({
|
|
|
const org = param[k].moduleDetailDTOList;
|
|
|
state.others.origin = JSON.parse(JSON.stringify(org));
|
|
|
state.others.datas = JSON.parse(JSON.stringify(org));
|
|
|
+ }else if(param[k].type == moduleCP['suplement']){
|
|
|
+ const org = param[k].moduleDetailDTOList;
|
|
|
+ state.addContent.origin = JSON.parse(JSON.stringify(org));
|
|
|
+ state.addContent.datas = JSON.parse(JSON.stringify(org));
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -323,10 +329,11 @@ const store = new Vuex.Store({
|
|
|
state.others.text = otherText;*/
|
|
|
break;
|
|
|
case moduleCP['suplement']:
|
|
|
- let addText = state.addContent.txt
|
|
|
- state.addContent.origin = param.data
|
|
|
- state.addContent.txt = getAllStr(param).allStr
|
|
|
- state.addContent.txtDoc = getAllStr(param).allStrDoc
|
|
|
+ let addText = state.addContent.text
|
|
|
+ if(param.isEdit){
|
|
|
+ addText.pop();
|
|
|
+ }
|
|
|
+ addText.push(param);
|
|
|
break;
|
|
|
default:
|
|
|
break;
|