Ver código fonte

容错,补充内容不展示

zhouna 5 anos atrás
pai
commit
69e4988f77
4 arquivos alterados com 13 adições e 11 exclusões
  1. 3 1
      src/common/Picker.vue
  2. 4 4
      src/components/Preview.vue
  3. 1 1
      src/store.js
  4. 5 5
      src/utils/tools.js

+ 3 - 1
src/common/Picker.vue

@@ -23,7 +23,9 @@
 export default {
     name:"Picker",
     props: {
-      symptomResult:{default:{}},
+      symptomResult:{default:function() {
+        return {}
+        }},
       defaultIndex:{default:0},
       num:{default:0},
       defaultVal:{default:"37.3°C"},

+ 4 - 4
src/components/Preview.vue

@@ -265,10 +265,10 @@ export default {
       const symText = this.symptom.text;
       const bans = symText[symText.length-1];
       const call = this.pathInfo.patientAge>18?'患者':'患儿';
-      const times = symChoose[0].special;
-      const reason = symChoose[0].reason;
-      const timesp = symChoose[0].specialP;
-      const reasonp = symChoose[0].reasonP;
+      const times = symChoose[0].special||'';
+      const reason = symChoose[0].reason||'';
+      const timesp = symChoose[0].specialP||'';
+      const reasonp = symChoose[0].reasonP||'';
       const timeText = times?"于"+times+"前"+reason+"出现":reason+"出现";
       const timeTextp = times?"于"+timesp+"前"+reasonp+"出现":reasonp+"出现";
       this.mainText = call+timeText+symChoose[0].name;

+ 1 - 1
src/store.js

@@ -168,7 +168,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": param.length > 0 && param.filter(item => item.code == "replenish_show")[0].value,
+        "52": 0,//param.length > 0 && param.filter(item => item.code == "replenish_show")[0].value,
       }
       state.tabType = tabType
     },

+ 5 - 5
src/utils/tools.js

@@ -123,7 +123,7 @@ const phoneTest = /^[1]([3-9])[0-9]{9}$/;
  * \d{2}[0-9Xx]                顺序码两位,一位校验码最后一位数字或者大小写X
  */
 /**18位
- * 
+ *
  *
  *
  * [1-9]\d{5}                 前六位地区,非0打头
@@ -188,10 +188,10 @@ const moduleConfig = (config,modules) => {
       }else if(tmpCode=="omhistory_show"&&tmpType==moduleCP['other']&&tmpVal==1){
         activeModule.push(modules[j])
         activeModuleObj.omhistory_show = modules[j]
-      }else if(tmpCode=="replenish_show"&&tmpType==moduleCP['suplement']&&tmpVal==1){
+      }/*else if(tmpCode=="replenish_show"&&tmpType==moduleCP['suplement']&&tmpVal==1){
         activeModule.push(modules[j])
         activeModuleObj.replenish_show = modules[j]
-      }
+      }*/
     }
   }
   return {
@@ -408,11 +408,11 @@ const getRouteName = (flg,active,order) => {
       return '/preview'
     } else if(flg == 1){
       return '/tab'
-    } 
+    }
   }else{
     if(order == 1){
       if(active.diagnosis_show){
-        return '/tab/treat' 
+        return '/tab/treat'
       }else if(active.omhistory_show){
         return '/tab/others'
       }else if(active.replenish_show){