fix:玻纤后面几个工段的返工只能选择合格品和合格B类

This commit is contained in:
shijing 2025-06-06 08:38:11 +08:00
parent 5f7a15c05c
commit 8b345a1df6
1 changed files with 19 additions and 2 deletions

View File

@ -356,7 +356,7 @@ export default {
that.form.recive_mgroup = that.mgroupId; that.form.recive_mgroup = that.mgroupId;
} }
// type=10 // type=10
// type=20 // type=20
// type=30 // type=30
// type=40 // type=40
// type=50 // type=50
@ -369,7 +369,12 @@ export default {
} }
// //
if((that.type==20&&that.mgroupName!=='废品库')||that.type==40){ if((that.type==20&&that.mgroupName!=='废品库')||that.type==40){
that.getMaterialNotok(); if(that.mgroupName=='成品内外初检'||that.mgroupName=='成品内质复检'||that.mgroupName=='成品性能检测'||that.mgroupName=='成品尺寸检测'||that.mgroupName=='成品外观复检一'||that.mgroupName=='成品外观复检二'){
that.getMaterialOkFangong();
}else{
that.getMaterialNotok();
}
}else if(that.type==20&&that.mgroupName=='废品库'){ }else if(that.type==20&&that.mgroupName=='废品库'){
that.getMaterialFP(); that.getMaterialFP();
}else{ }else{
@ -465,6 +470,18 @@ export default {
that.materialOptions = res; that.materialOptions = res;
}); });
}, },
getMaterialOkFangong(){
let that = this;
that.materialOptions = [];
var obj = {
page: 0,
state : 10,
state_all: 1
};
that.$API.wpm.wmaterial.list.req(obj).then((res) => {
that.materialOptions = res;
});
},
// //
getUserList() { getUserList() {
let that = this; let that = this;