|
@@ -157,7 +157,7 @@ const pushAllDataList =(whichSign,action,reData,type) =>{ //回读清
|
|
|
const block = Object.assign(JSON.parse(config.textLabel),{full:true});//空白时保留一个自由文本标签
|
|
|
//清除已删除标签记录
|
|
|
localStorage.removeItem('deletedTags');
|
|
|
- store.dispatch({type: SET_READ_MODE, readMode: -1}); //清除回读模式值
|
|
|
+ store.dispatch({type: SET_READ_MODE, readMode: -1,readConfig:-1}); //清除回读模式值
|
|
|
store.dispatch({type: CLEAR_MAIN_SUIT,data:[],saveText:[],editClear:true,mainIds:[],mainTailIds:[],clearAction:true,symptomFeature:[],chronicDesease:null,mainReadSonM:[]});
|
|
|
store.dispatch({type: CLEAR_CURRENT_ILL,data:[],saveText:[],editClear:true,symptomIds:[],currReadSonM:[]});
|
|
|
store.dispatch({type: CLEAROTHERHISTORY,data:[block],isEmpty:true,saveText:[],editClear:true,yjs_1:'',yjs_2:'',yjs_3:'',yjs_4:''});
|
|
@@ -231,10 +231,11 @@ const pushAllDataList =(whichSign,action,reData,type) =>{ //回读清
|
|
|
isText:true, //查体只显示文本
|
|
|
});
|
|
|
}else{
|
|
|
+ let dataJson = JSON.parse(reData.dataJson);
|
|
|
+ const docConfig = dataJson.docConfigs;
|
|
|
//回读/引用设置回读模式值(主诉-其他史使用)
|
|
|
- store.dispatch({type: SET_READ_MODE, readMode: whichSign});
|
|
|
+ store.dispatch({type: SET_READ_MODE, readMode: whichSign,readConfig:docConfig});
|
|
|
if (whichSign == 0) {
|
|
|
- let dataJson = JSON.parse(reData.dataJson);
|
|
|
//其他史data
|
|
|
const oData = dataJson.other;
|
|
|
const onlyOneText = oData.length==1&&oData[0].tagType==8&&!(oData[0].name||oData[0].value);
|
|
@@ -368,7 +369,7 @@ const pushAllDataList =(whichSign,action,reData,type) =>{ //回读清
|
|
|
}
|
|
|
} else {
|
|
|
if(type == 'template'){ //纯文本模板回读
|
|
|
- let dataJson = JSON.parse(reData.dataJson);
|
|
|
+ //let dataJson = JSON.parse(reData.dataJson);
|
|
|
let dataJsonStr = JSON.parse(reData.preview);
|
|
|
// console.log(dataJson,dataJsonStr,'纯文本模板引用')
|
|
|
store.dispatch({ //主诉文本框
|
|
@@ -422,7 +423,7 @@ const pushAllDataList =(whichSign,action,reData,type) =>{ //回读清
|
|
|
//tab跳回辅助信息
|
|
|
store.dispatch(tabChange('0'));
|
|
|
}else{ //纯文本历史病历回读
|
|
|
- let dataJson = JSON.parse(reData.dataJson);
|
|
|
+ //let dataJson = JSON.parse(reData.dataJson);
|
|
|
let dataJsonStr = reData.detailList;
|
|
|
// console.log(dataJson,dataJsonStr,'纯文本历史病历回读')
|
|
|
if(!dataJson && !dataJsonStr && !reData.sign){
|
|
@@ -764,7 +765,7 @@ function getCurrentDate(flg,con){
|
|
|
}
|
|
|
function inspectAndAssist(){
|
|
|
const state = store.getState();
|
|
|
- let mainType = state.typeConfig.typeConfig
|
|
|
+ let mainType = state.typeConfig.mode
|
|
|
if(mainType == 1){return}//文本模式不放化验辅检的模板
|
|
|
let tmpAll = state.homePage.allModules;
|
|
|
let tmpInspected = state.inspect.labelList;
|
|
@@ -1329,6 +1330,77 @@ function setPosition (e,dom,setHighter){
|
|
|
// $(e.target)[0].scrollIntoView(true);
|
|
|
},10);
|
|
|
}
|
|
|
+/**
|
|
|
+ * 获取样式类名
|
|
|
+ * largeFontSize 18px middleFontSize 16px(暂无) simpleFontSize 14px
|
|
|
+ * flg 1标准字体时颜色加深,可以让选中的字体加粗
|
|
|
+ * 2体征颜色单独处理不需要设置
|
|
|
+ */
|
|
|
+const setFontColorSize = (flg,pacs) => {
|
|
|
+ const classNameSelect = ['largeFontSize','middleFontSize','simpleFontSize','simpleLightColor','simpleColor','selectColor']
|
|
|
+ const state = store.getState();
|
|
|
+ let readConfig = state.typeConfig.readConfig
|
|
|
+ let mainType = readConfig==-1?state.typeConfig.typeConfig:readConfig;
|
|
|
+ let font = mainType[3],colour = mainType[4],classStr = '';
|
|
|
+ if(font == 1&&colour == 1){//字体加大颜色加深
|
|
|
+ if(flg == 2){
|
|
|
+ if(pacs == 1){
|
|
|
+ classStr = `largeFontSize pdright`
|
|
|
+ }else if(pacs == 2){
|
|
|
+ classStr = `largeFontSize widthChangeed`
|
|
|
+ }else if(pacs == 3){
|
|
|
+ classStr = `largeFontSize middleImg`
|
|
|
+ }else if(pacs == 4){
|
|
|
+ classStr = `largeFontSize titleWidth`
|
|
|
+ }else if(pacs == 5){
|
|
|
+ classStr = `largeFontSize specialSize`
|
|
|
+ }else{
|
|
|
+ classStr = `largeFontSize`
|
|
|
+ }
|
|
|
+ }else if(flg == 1){
|
|
|
+ classStr = `selectColor largeFontSize`
|
|
|
+ }else{
|
|
|
+ classStr = `selectColor largeFontSize`
|
|
|
+ }
|
|
|
+ }else if(font == 0&&colour == 1){//标准字体颜色加黑
|
|
|
+ if(flg == 2){
|
|
|
+ classStr = `simpleFontSize`
|
|
|
+ }else if(flg == 1){
|
|
|
+ classStr = `selectColor simpleFontSize`
|
|
|
+ }else{
|
|
|
+ classStr = `selectColor simpleFontSize`
|
|
|
+ }
|
|
|
+ }else if(font == 1&&colour == 0){//大字体标准颜色
|
|
|
+ if(flg == 2){
|
|
|
+ if(pacs == 1){
|
|
|
+ classStr = `largeFontSize pdright`
|
|
|
+ }else if(pacs == 2){
|
|
|
+ classStr = `largeFontSize widthChangeed`
|
|
|
+ }else if(pacs == 3){
|
|
|
+ classStr = `largeFontSize middleImg`
|
|
|
+ }else if(pacs == 4){
|
|
|
+ classStr = `largeFontSize titleWidth`
|
|
|
+ }else if(pacs == 5){
|
|
|
+ classStr = `largeFontSize specialSize`
|
|
|
+ }else{
|
|
|
+ classStr = `largeFontSize`
|
|
|
+ }
|
|
|
+ }else if(flg == 1){
|
|
|
+ classStr = `simpleLightColor largeFontSize`
|
|
|
+ }else{
|
|
|
+ classStr = `simpleColor largeFontSize`
|
|
|
+ }
|
|
|
+ }else{//都是标准的
|
|
|
+ if(flg == 2){
|
|
|
+ classStr = `simpleFontSize`
|
|
|
+ }else if(flg == 1){
|
|
|
+ classStr = `simpleLightColor simpleFontSize`
|
|
|
+ }else{
|
|
|
+ classStr = `simpleColor simpleFontSize`
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return classStr;
|
|
|
+}
|
|
|
module.exports = {
|
|
|
getIds,
|
|
|
getWindowInnerWidth,
|
|
@@ -1378,5 +1450,6 @@ module.exports = {
|
|
|
shiftLocalDelTag,
|
|
|
setPosition,
|
|
|
isAllPartClear,
|
|
|
- getDomUpDown
|
|
|
+ getDomUpDown,
|
|
|
+ setFontColorSize
|
|
|
};
|