heyang hai 1 ano
pai
achega
17fee69665
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/views/safetyCheck/startInspection/index.vue

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

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