fix:交接完善2
This commit is contained in:
parent
37b4fc5662
commit
4ff175073d
|
|
@ -413,16 +413,14 @@ export default {
|
||||||
that.getUserList();
|
that.getUserList();
|
||||||
}
|
}
|
||||||
//获取交送物料
|
//获取交送物料
|
||||||
if(that.type==10||that.type==50){//正常交接
|
if(that.type==10){//正常交接
|
||||||
that.getMaterial();
|
that.getMaterial();
|
||||||
}else if(that.type==20){//返工交接
|
}else if(that.type==20){//返工交接
|
||||||
if(that.mgroupName=='废品库'){
|
that.getMaterialOkFangong();
|
||||||
that.getMaterialFP();
|
}else if(that.type==40){//废品入库不合格物料
|
||||||
}else{
|
|
||||||
that.getMaterialOkFangong();
|
|
||||||
}
|
|
||||||
}else if(that.type==40){//废品入库
|
|
||||||
that.getMaterialNotok();
|
that.getMaterialNotok();
|
||||||
|
}else if(that.type==50){//废品库物料
|
||||||
|
that.getMaterialFP();
|
||||||
}
|
}
|
||||||
that.getMgroupOptions();
|
that.getMgroupOptions();
|
||||||
},
|
},
|
||||||
|
|
@ -478,15 +476,10 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
var req = {
|
var req = {
|
||||||
page: 0,
|
page: 0,
|
||||||
|
state:10,
|
||||||
|
tag:that.tag,
|
||||||
mgroupx:that.mgroupId
|
mgroupx:that.mgroupId
|
||||||
};
|
};
|
||||||
if(that.type==50){
|
|
||||||
req.state = 50;
|
|
||||||
req.state_all= 1;
|
|
||||||
}else{
|
|
||||||
req.state = 10;
|
|
||||||
req.tag = that.tag;
|
|
||||||
}
|
|
||||||
that.materialOptions = [];
|
that.materialOptions = [];
|
||||||
this.$API.wpm.wmaterial.list.req(req).then((res) => {
|
this.$API.wpm.wmaterial.list.req(req).then((res) => {
|
||||||
that.materialOptions = res.filter(item=>{
|
that.materialOptions = res.filter(item=>{
|
||||||
|
|
@ -514,9 +507,13 @@ export default {
|
||||||
that.materialOptions = [];
|
that.materialOptions = [];
|
||||||
var obj = {
|
var obj = {
|
||||||
page: 0,
|
page: 0,
|
||||||
state : 50,
|
|
||||||
state_all: 1
|
state_all: 1
|
||||||
};
|
};
|
||||||
|
if(that.isFeiPinku){
|
||||||
|
obj.state = 50;
|
||||||
|
}else{
|
||||||
|
obj.mgroupx=that.mgroupId;
|
||||||
|
}
|
||||||
that.$API.wpm.wmaterial.list.req(obj).then((res) => {
|
that.$API.wpm.wmaterial.list.req(obj).then((res) => {
|
||||||
that.materialOptions = res.filter(item=>{
|
that.materialOptions = res.filter(item=>{
|
||||||
return item.count_canhandover>0;
|
return item.count_canhandover>0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue