Przeglądaj źródła

Merge branch '3.3.7-scxjy' into web-v2

dedsudiyu 1 rok temu
rodzic
commit
3ab9658c9f
1 zmienionych plików z 12 dodań i 0 usunięć
  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++){