fix:输出物料检验为空白数据时提示报错的修改
This commit is contained in:
parent
9b43129147
commit
0443ee42e9
|
@ -568,19 +568,18 @@ export default {
|
||||||
obj_form.count_notok = that.count_json_wx.count_n_not;
|
obj_form.count_notok = that.count_json_wx.count_n_not;
|
||||||
sum = obj_form.count_ok + obj_form.count_notok;
|
sum = obj_form.count_ok + obj_form.count_notok;
|
||||||
}
|
}
|
||||||
// if(that.count_json_wx.count_ok_s!==null){
|
|
||||||
|
|
||||||
// }
|
|
||||||
}else{
|
}else{
|
||||||
that.qct_defects.forEach(item => {
|
that.qct_defects.forEach(item => {
|
||||||
if(item.defect_okcate==30){
|
if(that.defectform[item.defect_name]!==null){
|
||||||
that.form.count_notok += that.defectform[item.defect_name] ;
|
if(item.defect_okcate==30){
|
||||||
|
that.form.count_notok += that.defectform[item.defect_name] ;
|
||||||
|
}
|
||||||
|
let obj = {};
|
||||||
|
obj.defect = item.defect;
|
||||||
|
obj.count = that.defectform[item.defect_name];
|
||||||
|
obj.mlogb = that.mlogbItem.id;
|
||||||
|
this.form.mlogbdefect.push(obj);
|
||||||
}
|
}
|
||||||
let obj = {};
|
|
||||||
obj.defect = item.defect;
|
|
||||||
obj.count = that.defectform[item.defect_name];
|
|
||||||
obj.mlogb = that.mlogbItem.id;
|
|
||||||
this.form.mlogbdefect.push(obj);
|
|
||||||
})
|
})
|
||||||
that.form.count_ok = that.form.count_real -that.form.count_notok;
|
that.form.count_ok = that.form.count_real -that.form.count_notok;
|
||||||
sum = that.form.count_ok + that.form.count_notok;
|
sum = that.form.count_ok + that.form.count_notok;
|
||||||
|
|
Loading…
Reference in New Issue