设备检查bug

This commit is contained in:
caoqianming 2021-03-09 20:41:53 +08:00
parent 03089fd2c6
commit fc8609d851
1 changed files with 9 additions and 0 deletions

View File

@ -324,6 +324,15 @@ submit:function(){
})
return
}
for(var i=0;i<that.data.itemscheck.length;i++){
if(that.data.itemscheck[i].checked == undefined){
wx.showToast({
title: '有检查项未勾选!',
icon:'none'
})
return
}
}
let data1 = {
equipment: this.data.equipment.id,
state: 1,