fix:交接完善2

This commit is contained in:
shijing 2025-12-10 14:43:59 +08:00
parent 37b4fc5662
commit 4ff175073d
1 changed files with 12 additions and 15 deletions

View File

@ -413,16 +413,14 @@ export default {
that.getUserList();
}
//
if(that.type==10||that.type==50){//
if(that.type==10){//
that.getMaterial();
}else if(that.type==20){//
if(that.mgroupName=='废品库'){
that.getMaterialFP();
}else{
that.getMaterialOkFangong();
}
}else if(that.type==40){//
that.getMaterialOkFangong();
}else if(that.type==40){//
that.getMaterialNotok();
}else if(that.type==50){//
that.getMaterialFP();
}
that.getMgroupOptions();
},
@ -478,15 +476,10 @@ export default {
let that = this;
var req = {
page: 0,
state:10,
tag:that.tag,
mgroupx:that.mgroupId
};
if(that.type==50){
req.state = 50;
req.state_all= 1;
}else{
req.state = 10;
req.tag = that.tag;
}
that.materialOptions = [];
this.$API.wpm.wmaterial.list.req(req).then((res) => {
that.materialOptions = res.filter(item=>{
@ -514,9 +507,13 @@ export default {
that.materialOptions = [];
var obj = {
page: 0,
state : 50,
state_all: 1
};
if(that.isFeiPinku){
obj.state = 50;
}else{
obj.mgroupx=that.mgroupId;
}
that.$API.wpm.wmaterial.list.req(obj).then((res) => {
that.materialOptions = res.filter(item=>{
return item.count_canhandover>0;