소스 검색

Merge branch '3.3.7-scxjy' into web-v2

dedsudiyu 1 년 전
부모
커밋
3ab9658c9f
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      src/views/safetyCheck/startInspection/index.vue

+ 12 - 0
src/views/safetyCheck/startInspection/index.vue

@@ -580,6 +580,12 @@
                   this.msgError('请添加隐患检查项')
                   return
                 }
+                for(let i=0;i<obj.checkHazardInfoVoList.length;i++){
+                  if(!obj.checkHazardInfoVoList[i].checkHazardDtoList[0]){
+                    this.msgError('请添加'+obj.checkHazardInfoVoList[i].hazardName+'隐患检查项')
+                    return
+                  }
+                }
                 let list=[]
                 let checkFlagList=[];
                 for(let i=0;i<this.addForm.checkHazardInfoVoList.length;i++){
@@ -655,6 +661,12 @@
                   this.msgError('请添加隐患检查项')
                   return
                 }
+                for(let i=0;i<obj.checkHazardInfoVoList.length;i++){
+                  if(!obj.checkHazardInfoVoList[i].checkHazardDtoList[0]){
+                    this.msgError('请添加'+obj.checkHazardInfoVoList[i].hazardName+'隐患检查项')
+                    return
+                  }
+                }
                 let list=[]
                 let checkFlagList=[];
                 for(let i=0;i<this.addForm.checkHazardInfoVoList.length;i++){