fix:光芯库存统计问题修正

This commit is contained in:
shijing 2025-11-04 09:00:44 +08:00
parent d3d35950ee
commit adef92c959
1 changed files with 5 additions and 5 deletions

View File

@ -81,7 +81,7 @@
id="exportDiv11" id="exportDiv11"
stripe stripe
hideDo hideDo
:pageSize="500" hidePagination
:summary-method="getSummaries2" :summary-method="getSummaries2"
show-summary show-summary
> >
@ -241,7 +241,7 @@ export default {
mioTypeEnum, mioTypeEnum,
apiObj: this.$API.mtm.material.list, apiObj: this.$API.mtm.material.list,
materialType: "", materialType: "",
params: { is_hidden: false, type: 10, count__gte: 1 }, params: { is_hidden: false, type: 10, count__gte: 1,page:0 },
query: { query: {
material: "", material: "",
mio_type: mioTypeEnum.values[0].key, mio_type: mioTypeEnum.values[0].key,
@ -370,9 +370,9 @@ export default {
that.params.name = that.material_name; that.params.name = that.material_name;
} }
this.$API.mtm.material.list.req(that.params).then((res) => { this.$API.mtm.material.list.req(that.params).then((res) => {
that.tableData11 = res.results; that.tableData11 = res;
if(res.results.length>0){ if(res.length>0){
res.results.forEach((ite) =>{ res.forEach((ite) =>{
if (nameList.indexOf(ite.name) > -1) {} else { if (nameList.indexOf(ite.name) > -1) {} else {
nameList.push(ite.name); nameList.push(ite.name);
let obj = {}; let obj = {};