fix:光芯车间看板车间库存展示前100条,并传入query
This commit is contained in:
parent
5f00dc2b0c
commit
4b361a734c
|
|
@ -518,7 +518,8 @@ export default {
|
||||||
//库存统计列表
|
//库存统计列表
|
||||||
getMaterials(page) {
|
getMaterials(page) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'倒角' }).then((res) => {
|
let query = '{ material_name, batch, count, count_working }';
|
||||||
|
that.$API.wpm.wmaterial.list.req({ page: page,page_size:100,mgroup__name__in:'倒角',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 = [];
|
||||||
|
|
@ -528,10 +529,10 @@ export default {
|
||||||
arr[3] = item.count_working;
|
arr[3] = item.count_working;
|
||||||
that.configDataInm.data.push(arr);
|
that.configDataInm.data.push(arr);
|
||||||
})
|
})
|
||||||
if(res.count>that.configDataInm.data.length){
|
// if(res.count>that.configDataInm.data.length){
|
||||||
that.page++;
|
// that.page++;
|
||||||
that.getMaterials(that.page);
|
// that.getMaterials(that.page);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -519,7 +519,8 @@ export default {
|
||||||
//库存统计列表
|
//库存统计列表
|
||||||
getMaterials(page) {
|
getMaterials(page) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'多线切' }).then((res) => {
|
let query = '{ material_name, batch, count, count_working }';
|
||||||
|
that.$API.wpm.wmaterial.list.req({ page: page,page_size:100,mgroup__name__in:'多线切',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 = [];
|
||||||
|
|
@ -529,10 +530,6 @@ export default {
|
||||||
arr[3] = item.count_working;
|
arr[3] = item.count_working;
|
||||||
that.configDataInm.data.push(arr);
|
that.configDataInm.data.push(arr);
|
||||||
})
|
})
|
||||||
if(res.count>that.configDataInm.data.length){
|
|
||||||
that.page++;
|
|
||||||
that.getMaterials(that.page);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -518,7 +518,8 @@ export default {
|
||||||
//库存统计列表
|
//库存统计列表
|
||||||
getMaterials(page) {
|
getMaterials(page) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'精雕' }).then((res) => {
|
let query = '{ material_name, batch, count, count_working }';
|
||||||
|
that.$API.wpm.wmaterial.list.req({ page: page,page_size:100,mgroup__name__in:'精雕',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 = [];
|
||||||
|
|
@ -528,10 +529,6 @@ export default {
|
||||||
arr[3] = item.count_working;
|
arr[3] = item.count_working;
|
||||||
that.configDataInm.data.push(arr);
|
that.configDataInm.data.push(arr);
|
||||||
})
|
})
|
||||||
if(res.count>that.configDataInm.data.length){
|
|
||||||
that.page++;
|
|
||||||
that.getMaterials(that.page);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -518,7 +518,8 @@ export default {
|
||||||
//库存统计列表
|
//库存统计列表
|
||||||
getMaterials(page) {
|
getMaterials(page) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'白片抛后超洗,平磨,磨抛一次抛,一次抛后超洗,成品抛,一次超洗,二次超洗,三次超洗' }).then((res) => {
|
let query = '{ material_name, batch, count, count_working }';
|
||||||
|
that.$API.wpm.wmaterial.list.req({ page: page,page_size:100,mgroup__name__in:'白片抛后超洗,平磨,磨抛一次抛,一次抛后超洗,成品抛,一次超洗,二次超洗,三次超洗',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 = [];
|
||||||
|
|
@ -528,10 +529,6 @@ export default {
|
||||||
arr[3] = item.count_working;
|
arr[3] = item.count_working;
|
||||||
that.configDataInm.data.push(arr);
|
that.configDataInm.data.push(arr);
|
||||||
})
|
})
|
||||||
if(res.count>that.configDataInm.data.length){
|
|
||||||
that.page++;
|
|
||||||
that.getMaterials(that.page);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -518,7 +518,8 @@ export default {
|
||||||
//库存统计列表
|
//库存统计列表
|
||||||
getMaterials(page) {
|
getMaterials(page) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'扫边A,扫边B' }).then((res) => {
|
let query = '{ material_name, batch, count, count_working }';
|
||||||
|
that.$API.wpm.wmaterial.list.req({ page: page,page_size:100,mgroup__name__in:'扫边A,扫边B',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 = [];
|
||||||
|
|
@ -528,10 +529,6 @@ export default {
|
||||||
arr[3] = item.count_working;
|
arr[3] = item.count_working;
|
||||||
that.configDataInm.data.push(arr);
|
that.configDataInm.data.push(arr);
|
||||||
})
|
})
|
||||||
if(res.count>that.configDataInm.data.length){
|
|
||||||
that.page++;
|
|
||||||
that.getMaterials(that.page);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -598,7 +598,8 @@ export default {
|
||||||
//库存统计列表
|
//库存统计列表
|
||||||
getMaterials(page) {
|
getMaterials(page) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'减薄A,减薄B' }).then((res) => {
|
let query = '{ material_name, batch, count, count_working }';
|
||||||
|
that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'减薄A,减薄B',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 = [];
|
||||||
|
|
@ -608,10 +609,6 @@ export default {
|
||||||
arr[3] = item.count_working;
|
arr[3] = item.count_working;
|
||||||
that.configDataInm.data.push(arr);
|
that.configDataInm.data.push(arr);
|
||||||
})
|
})
|
||||||
if(res.count>that.configDataInm.data.length){
|
|
||||||
that.page++;
|
|
||||||
that.getMaterials(that.page);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue