bom原料只查询原材料

jg-waiwang-pro
XI_TENG\xixi_ 5 months ago
parent 4fcf1cd4da
commit ada91588af

@ -818,9 +818,9 @@ public class ProductWarehouseServiceImpl extends ServiceImpl<ProductWarehouseMap
idList.add(String.valueOf(productWarehousePagination.getInventoryType())); idList.add(String.valueOf(productWarehousePagination.getInventoryType()));
} }
} }
productWarehouseQueryWrapper.lambda().and(t->{ productWarehouseQueryWrapper.and(t->{
idList.forEach(tt->{ idList.forEach(tt->{
t.like(ProductWarehouseEntity::getInventoryType, tt).or(); t.like("a.inventory_type", tt).or();
}); });
}); });

@ -98,7 +98,7 @@ export default {
if (excludeIdList && excludeIdList instanceof Array) { if (excludeIdList && excludeIdList instanceof Array) {
this.excludeIdList = excludeIdList; this.excludeIdList = excludeIdList;
} }
if (val && typeof(val) == 'string') { if (val && typeof (val) == 'string') {
this.val = val; this.val = val;
} }
let query = { let query = {
@ -107,6 +107,7 @@ export default {
excludeIdList: this.excludeIdList, excludeIdList: this.excludeIdList,
dataType: 0, dataType: 0,
id: this.val, id: this.val,
inventoryType: 3,
} }
/* GoodsList(query).then(res => { /* GoodsList(query).then(res => {
this.list = res.data.list this.list = res.data.list

@ -87,7 +87,7 @@ export default {
if (excludeIdList && excludeIdList instanceof Array) { if (excludeIdList && excludeIdList instanceof Array) {
this.excludeIdList = excludeIdList; this.excludeIdList = excludeIdList;
} }
if (val && typeof(val) == 'string') { if (val && typeof (val) == 'string') {
this.val = val; this.val = val;
} }
let query = { let query = {

Loading…
Cancel
Save