fix:光芯车间看板车间库存展示前100条,并传入query

This commit is contained in:
shijing 2025-11-25 13:47:58 +08:00
parent 5f00dc2b0c
commit 4b361a734c
6 changed files with 16 additions and 30 deletions

View File

@ -518,7 +518,8 @@ export default {
//
getMaterials(page) {
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){
res.results.forEach((item) => {
let arr = [];
@ -528,10 +529,10 @@ export default {
arr[3] = item.count_working;
that.configDataInm.data.push(arr);
})
if(res.count>that.configDataInm.data.length){
that.page++;
that.getMaterials(that.page);
}
// if(res.count>that.configDataInm.data.length){
// that.page++;
// that.getMaterials(that.page);
// }
}
})
},

View File

@ -519,7 +519,8 @@ export default {
//
getMaterials(page) {
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){
res.results.forEach((item) => {
let arr = [];
@ -529,10 +530,6 @@ export default {
arr[3] = item.count_working;
that.configDataInm.data.push(arr);
})
if(res.count>that.configDataInm.data.length){
that.page++;
that.getMaterials(that.page);
}
}
})
},

View File

@ -518,7 +518,8 @@ export default {
//
getMaterials(page) {
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){
res.results.forEach((item) => {
let arr = [];
@ -528,10 +529,6 @@ export default {
arr[3] = item.count_working;
that.configDataInm.data.push(arr);
})
if(res.count>that.configDataInm.data.length){
that.page++;
that.getMaterials(that.page);
}
}
})
},

View File

@ -518,7 +518,8 @@ export default {
//
getMaterials(page) {
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){
res.results.forEach((item) => {
let arr = [];
@ -528,10 +529,6 @@ export default {
arr[3] = item.count_working;
that.configDataInm.data.push(arr);
})
if(res.count>that.configDataInm.data.length){
that.page++;
that.getMaterials(that.page);
}
}
})
},

View File

@ -518,7 +518,8 @@ export default {
//
getMaterials(page) {
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){
res.results.forEach((item) => {
let arr = [];
@ -528,10 +529,6 @@ export default {
arr[3] = item.count_working;
that.configDataInm.data.push(arr);
})
if(res.count>that.configDataInm.data.length){
that.page++;
that.getMaterials(that.page);
}
}
})
},

View File

@ -598,7 +598,8 @@ export default {
//
getMaterials(page) {
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){
res.results.forEach((item) => {
let arr = [];
@ -608,10 +609,6 @@ export default {
arr[3] = item.count_working;
that.configDataInm.data.push(arr);
})
if(res.count>that.configDataInm.data.length){
that.page++;
that.getMaterials(that.page);
}
}
})
},