feat:工序余料只显示QS、32.2、3D、2.5D四种
This commit is contained in:
parent
2028889587
commit
b66f71c2d5
|
|
@ -359,10 +359,12 @@ export default {
|
||||||
let list = res.data2.ds0;
|
let list = res.data2.ds0;
|
||||||
if (list.length > 0) {
|
if (list.length > 0) {
|
||||||
list.forEach((item) => {
|
list.forEach((item) => {
|
||||||
let arr = [];
|
if(item.物料名.indexOf('QS')>-1||item.物料名.indexOf('32.2')>-1||item.物料名.indexOf('3D')>-1||item.物料名.indexOf('2.5D')>-1){
|
||||||
arr[0] = item.物料名+'('+item.状态+')';
|
let arr = [];
|
||||||
arr[1] = item.数量;
|
arr[0] = item.物料名+'('+item.状态+')';
|
||||||
that.configDataProcess.data.push(arr);
|
arr[1] = item.数量;
|
||||||
|
that.configDataProcess.data.push(arr);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -471,7 +473,7 @@ export default {
|
||||||
getMaterials(page) {
|
getMaterials(page) {
|
||||||
let that = this;
|
let that = this;
|
||||||
let query = '{ material_name, batch, count, count_working }';
|
let query = '{ material_name, batch, count, count_working }';
|
||||||
that.$API.wpm.wmaterial.list.req({ page: page, page_size: 500, mgroup: that.mgroupId, query: query }).then((res) => {
|
that.$API.wpm.wmaterial.list.req({ page: page, page_size: 100, mgroup: that.mgroupId, query: query }).then((res) => {
|
||||||
if (res.results.length > 0) {
|
if (res.results.length > 0) {
|
||||||
res.results.forEach((item) => {
|
res.results.forEach((item) => {
|
||||||
let arr = [];
|
let arr = [];
|
||||||
|
|
@ -481,6 +483,9 @@ export default {
|
||||||
arr[3] = item.count_working;
|
arr[3] = item.count_working;
|
||||||
that.configDataInm.data.push(arr);
|
that.configDataInm.data.push(arr);
|
||||||
})
|
})
|
||||||
|
if(that.configDataInm.data.length<res.count){
|
||||||
|
that.getMaterials(page+1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue