Browse Source

无预问诊记录传空

1178232204@qq.com 3 years ago
parent
commit
48e07dcda0

+ 1 - 1
config/index.js

@@ -3,7 +3,7 @@
 // see http://vuejs-templates.github.io/webpack for documentation.
 
 const path = require('path')
-const proxy_path = 'http://192.168.2.236:5050';
+const proxy_path = 'http://192.168.2.241:5050';
 // const proxy_path = 'http://192.168.2.236:5050';
 // const proxy_path = 'http://127.0.0.1:5050';
 // const proxy_path = 'http://223.93.170.82:23650';

+ 1 - 1
src/common/MultSelect.vue

@@ -7,7 +7,7 @@
         :class="[{'liSelect':item.select,'noBorder':((item.description||item.name).indexOf('${'))!=-1}]"
         :key="item.id"
       >
-        <span v-if="((item.description||item.name).indexOf('${'))==-1">{{item.description||item.name}}s</span>
+        <span v-if="((item.description||item.name).indexOf('${'))==-1">{{item.description||item.name}}</span>
         <OptionInp v-else :item="item" @handleInp="inpVal" @handleSelect="selectResult(item,idx)" :inx="idx"/>
       </li>
     </ul>

+ 2 - 0
src/components/ChooseScale.vue

@@ -101,9 +101,11 @@ export default {
       font-size: 0.3rem;
       border-radius: 0.36rem;
       margin-left: 0.3rem;
+      color: #7C828E;
     }
     .realItem {
       background: #6678ff;
+      color: #fff;
     }
   }
   .sure {

+ 41 - 33
src/components/Preview.vue

@@ -48,7 +48,7 @@
               <h4><i></i> 现病史:</h4>
               <p>
                 <!-- 患者于时间单位前诱因出现症状,其余题目的内容; -->
-                <span>{{mainTextP? mainTextP + ",":'' }}</span>
+                <span>{{ mainTextP ? mainTextP + "," : "" }}</span>
                 <template v-for="(value, index) in checkText">
                   <!-- 患者于时间单位前诱因出现症状,其余题目的内容; -->
                   <span
@@ -59,7 +59,7 @@
                       value.flag != 2 &&
                       index < checkText.length - 1
                     "
-                    >{{ value.textP?value.textP + ",":'' }}</span
+                    >{{ value.textP ? value.textP + "," : "" }}</span
                   >
                 </template>
                 <span>{{ banTextP }}</span>
@@ -324,7 +324,6 @@ export default {
       return obg;
     },
     formatSymText() {
-      console.log(this.symptom);
       if (this.symptom.choose.lengtn > 0 && his.symptom.text.length > 0) {
         const symChoose = this.symptom.choose;
         const symText = this.symptom.text;
@@ -348,40 +347,45 @@ export default {
       }
     },
     saveAllDate() {
-      const { pathInfo, symptom, diagnose, others, addContent, scaleInfo } =
-        this;
-      let tmpSymptom = JSON.parse(JSON.stringify(symptom));
-      let detailList = [{ type: 1 }, { type: 2 }, { type: 3 }, { type: 4 }];
-      for (let i = 0; i < detailList.length; i++) {
-        if (i == 0) {
-          detailList[0] = this.getDetailText(tmpSymptom.choose, 1);
-        } else if (i == 1) {
-          let tmpArr = [this.mainText];
-          let tmpStr = this.banText;
-          let symText = tmpSymptom.text;
-          for (let j = 1; j < symText.length - 1; j++) {
-            if (
-              +symText[j].flag !== 1 &&
-              +symText[j].flag !== 2 &&
-              typeof symText[j].text !== "object"
-            ) {
-              //诱因和时间已拼不重复添加,上传的图片不拼单独显示
-              tmpArr.push(symText[j].text);
+      const { pathInfo, symptom, diagnose, others, addContent, scaleInfo } = this;
+      let detailList
+      if (symptom.choose.length == 0) {
+        detailList = [];
+      } else {
+        let tmpSymptom = JSON.parse(JSON.stringify(symptom));
+        detailList = [{ type: 1 }, { type: 2 }, { type: 3 }, { type: 4 }];
+        for (let i = 0; i < detailList.length; i++) {
+          if (i == 0) {
+            detailList[0] = this.getDetailText(tmpSymptom.choose, 1);
+          } else if (i == 1) {
+            let tmpArr = [this.mainText];
+            let tmpStr = this.banText;
+            let symText = tmpSymptom.text;
+            for (let j = 1; j < symText.length - 1; j++) {
+              if (
+                +symText[j].flag !== 1 &&
+                +symText[j].flag !== 2 &&
+                typeof symText[j].text !== "object"
+              ) {
+                //诱因和时间已拼不重复添加,上传的图片不拼单独显示
+                tmpArr.push(symText[j].text);
+              }
             }
+            const diagObj = this.getDetailText(diagnose.text, false);
+            const diagStr = diagObj.content;
+            const diagJson = diagObj.contentJson;
+            tmpStr ? tmpArr.push(tmpStr) : null;
+            detailList[1].content = tmpArr.join() + "," + diagStr;
+            detailList[1].contentJson = JSON.stringify(tmpArr.concat(diagJson));
+            detailList[1].contentValue = tmpArr.join();
+          } else if (i == 2) {
+            detailList[2] = this.getDetailText(others.text, 3);
+          } else if (i == 3) {
+            detailList[3] = this.getDetailText(addContent.text, 4);
           }
-          const diagObj = this.getDetailText(diagnose.text, false);
-          const diagStr = diagObj.content;
-          const diagJson = diagObj.contentJson;
-          tmpStr ? tmpArr.push(tmpStr) : null;
-          detailList[1].content = tmpArr.join() + "," + diagStr;
-          detailList[1].contentJson = JSON.stringify(tmpArr.concat(diagJson));
-          detailList[1].contentValue = tmpArr.join();
-        } else if (i == 2) {
-          detailList[2] = this.getDetailText(others.text, 3);
-        } else if (i == 3) {
-          detailList[3] = this.getDetailText(addContent.text, 4);
         }
       }
+
       let params = {
         dataJson: "1",
         detailList: detailList,
@@ -458,6 +462,9 @@ export default {
 </script>
 <style lang="less" scoped>
 @import "../less/base.less";
+body{
+  overflow-y: auto
+}
 .foot {
   .dbfooter;
   z-index: 998;
@@ -474,6 +481,7 @@ export default {
   position: fixed;
   width: 100%;
   height: 100%;
+  overflow-y: auto;
   top: 0;
   left: 0;
   box-sizing: border-box;

+ 1 - 1
src/components/ScaleShow.vue

@@ -8,7 +8,7 @@
           <p class="title">结果:{{ list.result }}</p>
         </div>
       </div>
-      <div class="item" v-for="(item, index) in scaleInfo.list" :key="index">
+      <div class="item" v-for="(item, index) in scaleInfo" :key="index">
         <p>{{ item.title }}</p>
         <ul>
           <li v-for="(it, i) in item.scaleList" :key="i">

+ 1 - 1
src/utils/api.js

@@ -10,7 +10,7 @@ const urls = {
   getById:'/api/prec/questionInfo/getById',//常标签详情
   getByIds:'/api/prec/questionInfo/getByIds',// 获取多个问题
   push:'/api/prec/push/pushInner',//症状推送
-  saveInquiry:'/api/prec//inquiryInfoSyf/saveInquiry',//保存问诊记录
+  saveInquiry:'/api/prec/inquiryInfoSyf/saveInquiry',//保存问诊记录
   uploadImageThum:'/api/prec/file/uploadImageThum',//单个文件上传同时生成缩略图
   uploadImageThums:'/api/prec/file/uploadImageThums',//多个文件上传同时生成缩略图
   // uploadImageThums:'http://192.168.3.117:5050/api/prec/file/uploadImageThums',//多个文件上传同时生成缩略图