fix:返工日志输出物料列表不展示问题

This commit is contained in:
shijing 2026-07-01 15:53:23 +08:00
parent 4e8d8b1558
commit 701b085cb5
2 changed files with 13 additions and 4 deletions

View File

@ -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.deptId = res.belong_dept;
that.checkTableShow = true;
that.apiObjWm = that.$API.wpm.wmaterial.list;
that.$API.wpm.mlogb.list.req(that.paramsOut).then((res) => {
that.tableData2 = res;
})
if(res.qct!==null){
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){
that.getcutCount(res.material_in);
that.$API.mtm.routepack.list.req({page:0,search:res.routepack_name}).then((res) => {

View File

@ -536,6 +536,8 @@ export default {
}).catch(()=>{
that.getList();
})
}else{
that.getList();
}
}
that.visible = true;