From 1e576d7ffde3fad9d397583ba2d3344c24987310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?yinjinlu-pc=5C=E5=B0=B9=E9=87=91=E8=B7=AF?= <411641505@qq.com> Date: Thu, 17 Aug 2023 00:04:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=E7=BA=BF=E8=BE=B9=E5=BA=93?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/stockSelect/single.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/stockSelect/single.vue b/src/components/stockSelect/single.vue index d4f4921..0a77ed6 100644 --- a/src/components/stockSelect/single.vue +++ b/src/components/stockSelect/single.vue @@ -245,9 +245,12 @@ export default { this.loading = true; listWmstock(this.queryParams).then(response => { if(response.rows){ - this.wmstockList = response.rows.filter((el) =>{ + if(this.warehouseCode.indexOf('VIR') == -1){ + //如果不是查询线边库的物资,则在查询结果中过滤掉线边库的数据 + this.wmstockList = response.rows.filter((el) =>{ return el.warehouseCode.indexOf('VIR') == -1; - }); + }); + } this.total = response.total; this.loading = false; }