一个过滤的小bug

This commit is contained in:
xiaofajia 2024-11-26 17:16:45 +08:00
parent 5459750832
commit 594ccdba39

View File

@ -504,7 +504,7 @@ export default {
const res = await getMapBySoIdAndQuery(this.soId, this.inItemsQuery)
this.inItems = Object.entries(res.data)
this.inItems = this.inItems.map(([key, value]) => {
return [key, value.filter(item => (!item.inCount && item.inCount !== item.goodsCount))]
return [key, value.filter(item => item.inCount < item.goodsCount)]
})
this.inItems = this.inItems.filter(([key, value]) => value.length > 0)
this.inItems.forEach(([key, value]) => {