瀏覽代碼

修改诊断依据校验

zhangxc 5 年之前
父節點
當前提交
516896eb3a
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/components/diagBase/AddDiagBase.vue

+ 4 - 3
src/components/diagBase/AddDiagBase.vue

@@ -589,8 +589,9 @@
                     this.hasNoUniqueName = false
                     this.hasNoUniqueName = false
                     const labVerifyData = this.labVerifyData(labArr,type)
                     const labVerifyData = this.labVerifyData(labArr,type)
                     if(labVerifyData) {
                     if(labVerifyData) {
-                         return labVerifyData.then(() =>{
-                            if(this.hasNoUniqueName) {
+                         return labVerifyData.then((data) =>{
+                            
+                            if(this.hasNoUniqueName||!data) {
                             }else {
                             }else {
                                 return this.verifyDiagBase(type)
                                 return this.verifyDiagBase(type)
                             }
                             }
@@ -820,12 +821,12 @@
                        return this.errorTips(errorStr);
                        return this.errorTips(errorStr);
                         
                         
                     }
                     }
-                     console.log('bbbbbbbbb')
 
 
                     this.disFeatureList = JSON.parse(JSON.stringify(this.disFeatureListResult))
                     this.disFeatureList = JSON.parse(JSON.stringify(this.disFeatureListResult))
                     this.disFeatureListResult = JSON.parse(JSON.stringify(this.disFeatureListResult))
                     this.disFeatureListResult = JSON.parse(JSON.stringify(this.disFeatureListResult))
                     
                     
                 } else {
                 } else {
+                    console.log('asdddddd')
                     this.warning(res.data.msg)
                     this.warning(res.data.msg)
                     return false
                     return false
                 }
                 }