luolei 4 anos atrás
pai
commit
6aeede3569

+ 9 - 2
src/components/basicKnow/AddTerm.vue

@@ -796,8 +796,12 @@ export default {
           this.warning('年龄必须是0-200');
           return;
         }
+        if(this.minAge >= this.maxAge){
+          this.warning('年龄最小值应该小于最大值');
+          return;
+        }
         if(this.minValue >= this.maxValue&&this.data.type=='实验室检查子项目'){
-          this.warning('最小值小于最大值');
+          this.warning('最小值应该小于最大值');
           return;
         }
       }
@@ -828,7 +832,10 @@ export default {
       for (let i = 0; i < realData.length; i++) {
         let obj = {}
         realData[i].synonymName = realData[i].name;
-        realData[i].typeId = this.data.typeId||this.data.code;
+        realData[i].typeId = undefined;
+        realData[i].conceptId = undefined;
+        realData[i].status = undefined;
+        realData[i].libType = this.data.code||this.data.typeId;
 
         // obj.isConcept=realData[i].isConcept
         // obj.remark=realData[i].remark

+ 0 - 1
src/components/basicKnow/BasicTermsMaintenance.vue

@@ -171,7 +171,6 @@ export default {
     reloadLib() {
       if (this.reloadFlag) {
         this.reloadFlag = false;
-        return
         api.clearStandRuleDrug().then(res => {
           if (res.data.code == 0) {
             this.reloadFlag = true;