库存物资赋码生成

This commit is contained in:
yinjinlu-pc\尹金路
2023-09-06 16:37:01 +08:00
parent 0de37e701d
commit dd0c463b29
2 changed files with 39 additions and 4 deletions

View File

@@ -245,10 +245,13 @@ export default {
this.loading = true;
listWmstock(this.queryParams).then(response => {
if(response.rows){
if(this.warehouseCode.indexOf('VIR') == -1){
debugger;
if(this.warehouseCode != null && this.warehouseCode != undefined && this.warehouseCode.indexOf('VIR') >0 ){
this.wmstockList = response.rows;
}else {
//如果不是查询线边库的物资,则在查询结果中过滤掉线边库的数据
this.wmstockList = response.rows.filter((el) =>{
return el.warehouseCode.indexOf('VIR') == -1;
return el.warehouseCode.indexOf('VIR') == -1;
});
}
this.total = response.total;