Przeglądaj źródła

纯标点符号不搜索,查体获取数据bug修改

zhouna 6 lat temu
rodzic
commit
b1f56da5d6

+ 1 - 1
src/common/components/EditableSpan/index.jsx

@@ -87,7 +87,7 @@ class EditableSpan extends Component{
       temp = newText.replace(searchPre,'');
       isEnd = !(newText.indexOf(searchPre)>0);
       search = temp.replace(/[(^\s*)|(\s*$)|(^\,*)|(\,*$)]/g,'');
-      console.log(labelVal,'旧:',searchPre,'新:',newText,'搜索:',search);
+      //console.log(labelVal,'旧:',searchPre,'新:',newText,'搜索:',search);
       if(config.punctuationReg.test(search)){     //只有标点符号时不搜索
         handleSearch&&handleSearch({text:search,isEnd,boxMark,mainIds});
       }

+ 1 - 1
src/components/CheckBody/index.jsx

@@ -63,7 +63,7 @@ class CheckBody extends Component{
       return ;
     }
     //有主诉时且本身无数据,第一次点击获取数据,(不论获取成功与否)再点击不获取(直到刷新成空白页或清空)
-    if(hasMain&&isEmpty!=false){
+    if(hasMain&&isEmpty!=false&&!hasData){
       this.props.getInit();
     }
   }

+ 0 - 8
src/components/OtherHistory/index.jsx

@@ -57,14 +57,6 @@ class OtherHistory extends Component{
     }
     //智能模式有主诉或者文本模式获取最近历史
     setInitData();
-
-    //回读后容器框要不可编辑,否则自由文本标签onInput,onFocus事件失效(原因未知)
-    /*if(data.length>0){
-       this.setState({
-         editable:false
-       });
-      changeEditClear(false)
-    }*/
   }
   handleClick(e){//让搜索框跟随鼠标点击移动
     //e.stopPropagation();

+ 1 - 1
src/config/index.js

@@ -30,7 +30,7 @@ export default {
     delayTime:500,      //延迟搜索的时间
     delayPushTime:1000,    //延迟推送时间
     pushDelay:1000,
-    punctuationReg:/[^,,.。;;、]/g,
+    punctuationReg:/[^,,.。;;、]/g,       //正则表达式,全局查找不是括号内标点的字符
     currentText:"患者XX因XX诊断为(**),经XX治疗后,目前XX症状已缓解,仍有XX,各项指标情况:XX,辅助检查:XX。今来复诊,进一步治疗",
     timeUnit:{
       minute:"分",

+ 1 - 0
src/store/async-actions/fetchModules.js

@@ -71,6 +71,7 @@ export const getOtherHisRecord = ()=>{
         const objStr = JSON.parse(data.otherStr||'[]');
         let arr = [];
         if((!obj||!obj.other||obj.other.length==0)&&!objStr[0]){        //无其他史历史记录用默认模板
+          //console.log('其他史最近数据无')
           //arr = state.homePage.initData.otherHis;
         }else{
           arr = obj.other;