fix:返工日志输出物料列表不展示问题
This commit is contained in:
parent
4e8d8b1558
commit
701b085cb5
|
|
@ -677,11 +677,18 @@ export default {
|
||||||
}
|
}
|
||||||
that.materialIn = res.material_in!==null?res.material_in:res.mlogb_full[0]?res.mlogb_full[0].material_in:null;
|
that.materialIn = res.material_in!==null?res.material_in:res.mlogb_full[0]?res.mlogb_full[0].material_in:null;
|
||||||
that.deptId = res.belong_dept;
|
that.deptId = res.belong_dept;
|
||||||
that.checkTableShow = true;
|
|
||||||
that.apiObjWm = that.$API.wpm.wmaterial.list;
|
that.apiObjWm = that.$API.wpm.wmaterial.list;
|
||||||
that.$API.wpm.mlogb.list.req(that.paramsOut).then((res) => {
|
if(res.qct!==null){
|
||||||
that.tableData2 = res;
|
that.checkTableShow = true;
|
||||||
|
}else{
|
||||||
|
that.$API.wpm.mlogb.list.req(that.paramsOut).then((res_out) => {
|
||||||
|
that.tableData2 = res_out;
|
||||||
|
if(res.is_fix&&res_out[0].qct!==null){
|
||||||
|
that.mlogItem.qct = res_out[0].qct;
|
||||||
|
}
|
||||||
|
that.checkTableShow = true;
|
||||||
})
|
})
|
||||||
|
}
|
||||||
if(!res.is_fix){
|
if(!res.is_fix){
|
||||||
that.getcutCount(res.material_in);
|
that.getcutCount(res.material_in);
|
||||||
that.$API.mtm.routepack.list.req({page:0,search:res.routepack_name}).then((res) => {
|
that.$API.mtm.routepack.list.req({page:0,search:res.routepack_name}).then((res) => {
|
||||||
|
|
|
||||||
|
|
@ -536,6 +536,8 @@ export default {
|
||||||
}).catch(()=>{
|
}).catch(()=>{
|
||||||
that.getList();
|
that.getList();
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
that.getList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
that.visible = true;
|
that.visible = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue