Procházet zdrojové kódy

不在处理标点符号

luolei před 4 roky
rodič
revize
4350da454b

+ 1 - 0
src/common/components/BlockInp/index.jsx

@@ -52,6 +52,7 @@ class BlockInp extends PureComponent {
   handleInput(e){
     const {handleInput,handlePush,boxMark} = this.props;
     const text = e.target.innerText || e.target.innerHTML.replace(/&nbsp;+/g,' ').replace(/<br>$/,'');
+    // console.log(text,999999999999)
     const stimer = this.state.timer;//console.log(e.target,text)
     this.setState({
       inpText:text,

+ 1 - 1
src/containers/BlockInpContainer.js

@@ -14,7 +14,7 @@ import BlockInp from '@common/components/BlockInp';
 import {didPushParamChange,isAllPartClear,getAllDataList,getAllDataStringList,isAllClear} from '@utils/tools';
 import {embedPush} from '@store/async-actions/pushMessage';
 
-function mapStateToProps(state){
+function mapStateToProps(state){//console.log(state,999999999)
   const {homePage} = state;
   return {
     isRead:homePage.isRead,

+ 1 - 1
src/utils/config.js

@@ -14,7 +14,7 @@ const imageUrlPrefix = 'http://192.168.2.241:82';
 function geturl(){
     if(window.location.href.indexOf('localhost')>-1){
         return {
-            gourl:'http://localhost:8080/cdss.html',
+            gourl:'http://localhost:8083/cdss.html',
             imgurl:host.replace('6060','22')
         }
     }else if(window.location.href.indexOf('192.168.2.236')>-1){

+ 10 - 8
src/utils/tools.js

@@ -801,6 +801,7 @@ function filterDataArr(arrTmp){   //数据处理
           return '';
       }
       return it.replace(config.punReg,function(word){
+        console.log(9898)
         return word.substr(0,1);
       });
     });
@@ -953,15 +954,16 @@ function getEMRParams(){
     "age": formatFormParmas('patientAge', patInfoData),
     "sex": sex,
     "deptName": formatFormParmas('hospitalDeptName', patInfoData),
-    "chief": filterDataArr(mainSuit.saveText)||'',    //主诉
-    "symptom": filterDataArr(currentIll.saveText)||'',  //现病史
-    "vital": filterDataArr(checkBody.saveText)||'',  //查体
-    "pasts": filterDataArr(pastHistory.saveText)||'',  //既往史
+    "chief": mainSuit.saveText[0]||'',    //主诉
+    "symptom": currentIll.saveText[0]||'',  //现病史
+    "vital": checkBody.saveText[0]||'',  //查体
+    "pasts": pastHistory.saveText[0]||'',  //既往史
+    // "pasts": filterDataArr(pastHistory.saveText)||'',  //既往史
     "marriage": '',
-    "personal": filterDataArr(personalHistory.saveText)||'',  //个人史
-    "family": filterDataArr(familyHistory.saveText)||'',  //家族史
-    "marital": filterDataArr(marriageHistory.saveText)||'',  //婚育史
-    "menstrual": filterDataArr(menstruationHistory.saveText)||'',  //月经史
+    "personal": personalHistory.saveText[0]||'',  //个人史
+    "family": familyHistory.saveText[0]||'',  //家族史
+    "marital": marriageHistory.saveText[0]||'',  //婚育史
+    "menstrual": menstruationHistory.saveText[0]||'',  //月经史
     "diseaseName":diagnosticList.diseaseName,
     "operationName":newAdvice.operationName,
     "infectious": "",