Browse Source

提交修改

xiezhiming 3 years ago
parent
commit
ba3d57689a
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/components/knowledgeExtra/AddNewRule.vue

+ 7 - 7
src/components/knowledgeExtra/AddNewRule.vue

@@ -705,14 +705,14 @@ export default {
     			})
     			})
     		}
     		}
     	}
     	}
+		//判断护理非开单项里面的附加信息和关联静态知识是否填写
 		if(this.isStatic&&this.isRedMsg.length>0){
 		if(this.isStatic&&this.isRedMsg.length>0){
-			this.isRedMsg.forEach(item=>{
-				if(item){
-					return
-				}else{
-					this.saveRule(paramsCopy);
-				}
-			})
+			let flag=this.isRedMsg.some(item=>{
+					return item
+				})
+				//都填写了
+			if(!flag) this.saveRule(paramsCopy);
+			
 		}else{
 		}else{
 			this.saveRule(paramsCopy);
 			this.saveRule(paramsCopy);
 		}
 		}