Parcourir la source

既往史限制条件改变

Luolei il y a 6 ans
Parent
commit
7d81835e06

+ 4 - 4
src/api/config.js

@@ -163,7 +163,7 @@ export default {
   },
   labelTypesMaps: {       //// 归属和填写单类型限制
     '1':['2','3','4','11'],
-    '3':['4','6'],
+    '3':['2','4','6'],
     '4':[,'2','3'],
     '5':['7'],
     '6':['9'],
@@ -172,9 +172,9 @@ export default {
   },
   groupParams:[
     {controlType:[1,2],tagType:[1],notTagType:[8]},     //多列多选(杂音/初为)     notTagType为文字标签剔除
-    {controlType:[0,1,2,5,6],tagType:[1,2],notTagType:[8]},  //多项统一横铺标签(血压)
-    {controlType:[0,1,2,5,6],tagType:[1,2],notTagType:[8]},  //症状详细(症状尾巴)
-    {controlType:[1,2],tagType:[1,2,3,4,10],notTagType:[8]}, //组合项标签(既往史)
+    {controlType:[0,1,2,5,6,7],tagType:[1,2],notTagType:[8]},  //多项统一横铺标签(血压)
+    {controlType:[0,1,2,5,6,7],tagType:[1,2],notTagType:[8]},  //症状详细(症状尾巴)
+    {controlType:[0,1,2],tagType:[1,2,3,4],notTagType:[2,8]}, //组合项标签(既往史)
     {controlType:[1,6],tagType:[],notTagType:[8]},    //化验组合
     {controlType:[1,2,99],tagType:[],notTagType:[8]},   //症状推送类型(添加症状)
   ]

+ 1 - 1
src/components/icss/PubTagGroup.vue

@@ -238,7 +238,7 @@ export default {
       },
       labelTypesMaps: {       //// 归属和填写单类型限制
         '1':['2','3','4','11'],
-        '3':['4','6'],
+        '3':['2','4','6'],
         '4':['2','3'],
         '5':['7'],
         '6':['9'],

+ 21 - 3
src/components/icss/PubTagPartDetail.vue

@@ -489,7 +489,7 @@ export default {
                   this.$message({
                     showClose: true,
                     message: '添加的数据有误',
-                    type: 'error'
+                    type: 'warning'
                   });
                   return;
                 }
@@ -521,11 +521,29 @@ export default {
             this.currentLis.map((id)=>{
               tmpArr.push(res.data.data[id]);
             })
-            // console.log(tmpArr,'多选既往史')
+            console.log(tmpArr,'多选既往史')
             this.selectArr.map((flg,idx)=>{         //判断右侧有没有选中
               if(flg){    //有选中
                 if(idx == 0 || idx == 1){
-                  this.poolDetailList[idx] = tmpArr;
+                  if(tmpArr.length > 1){
+                    this.$message({
+                      showClose: true,
+                      message: '添加的数据有误',
+                      type: 'warning'
+                    });
+                    return;
+                  }else{
+                    if((idx == 0 && (tmpArr[0].questionDetailList && tmpArr[0].questionDetailList.length > 1)) || (idx == 1 && (tmpArr[0].tagType != 1 && tmpArr[0].tagType != 2))){      //第一列
+                      this.$message({
+                        showClose: true,
+                        message: '添加的数据有误',
+                        type: 'warning'
+                      });
+                      return;
+                    }else{
+                      this.poolDetailList[idx] = tmpArr;
+                    }
+                  }
                 }else{
                   this.poolDetailList[idx] = (this.poolDetailList[idx]).concat(tmpArr);
                 }