fix:返工时获取qct修正

This commit is contained in:
shijing 2025-12-29 16:27:10 +08:00
parent 11f26a7e30
commit b6ccf46cba
2 changed files with 17 additions and 8 deletions

View File

@ -564,7 +564,6 @@ export default {
this.paramsOut.mlog = this.mlogId; this.paramsOut.mlog = this.mlogId;
this.apiObj = this.$API.wpm.mlogb.list; this.apiObj = this.$API.wpm.mlogb.list;
let userInfo = that.$TOOL.data.get("USER_INFO"); let userInfo = that.$TOOL.data.get("USER_INFO");
that.addTemplate.mlog = that.mlogItem.id;
that.addTemplate.equipment = ""; that.addTemplate.equipment = "";
that.addTemplate.handle_user = userInfo.id; that.addTemplate.handle_user = userInfo.id;
that.addTemplate.handle_user_name = userInfo.name; that.addTemplate.handle_user_name = userInfo.name;
@ -586,6 +585,7 @@ export default {
let that = this; let that = this;
that.$API.wpm.mlog.item.req(that.mlogId).then((res) => { that.$API.wpm.mlog.item.req(that.mlogId).then((res) => {
that.mlogItem = res; that.mlogItem = res;
that.addTemplate.mlog = that.mlogItem.id;
that.isSubmit = res.submit_time==null?false:true; that.isSubmit = res.submit_time==null?false:true;
if(that.processType=='10'&&that.mlogItem.material_out_&&that.mlogItem.material_out_.tracking==20){ if(that.processType=='10'&&that.mlogItem.material_out_&&that.mlogItem.material_out_.tracking==20){
that.getMlogbw(); that.getMlogbw();

View File

@ -408,13 +408,22 @@ export default {
if(that.qct!==''&&that.qct!==null){// if(that.qct!==''&&that.qct!==null){//
that.getdefects(); that.getdefects();
}else{ }else{
if(that.route_code=='chengpingfanxiu'&&that.material_in!==''&&that.material_in!==null){// if(that.material_in!==''&&that.material_in!==null){//
if(that.route_code=='chengpingfanxiu'){
that.$API.qm.qct.getQct.req({ material: that.material_in,type:'out',tag:'fix' }).then((res) => { that.$API.qm.qct.getQct.req({ material: that.material_in,type:'out',tag:'fix' }).then((res) => {
that.qctId = res.id; that.qctId = res.id;
that.testdefectss(res); that.testdefectss(res);
}).catch(()=>{ }).catch(()=>{
that.getList(); that.getList();
}) })
}else{
that.$API.qm.qct.getQct.req({ material: that.material_in,type:'out',tag:'process' }).then((res) => {
that.qctId = res.id;
that.testdefectss(res);
}).catch(()=>{
that.getList();
})
}
}else if(that.material_out!==''&&that.material_out!==null){// }else if(that.material_out!==''&&that.material_out!==null){//
that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => { that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => {
that.qctId = res.id; that.qctId = res.id;