From 7d04c4b80fbd0e25e4133353a213bc6087fcda26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=93=E8=B1=86=E8=B1=86?= <3346088772@qq.comcd> Date: Mon, 22 Jan 2024 15:22:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E5=94=AE=E5=87=BA=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/stockSelect/single.vue | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/components/stockSelect/single.vue b/src/components/stockSelect/single.vue index 0a77ed6..65a9650 100644 --- a/src/components/stockSelect/single.vue +++ b/src/components/stockSelect/single.vue @@ -161,7 +161,7 @@ export default { return { showFlag:false, // 遮罩层 - loading: true, + loading: false, // 选中数组 selectedId: null, selectedRow: null, @@ -244,16 +244,19 @@ export default { getList() { this.loading = true; listWmstock(this.queryParams).then(response => { - if(response.rows){ - if(this.warehouseCode.indexOf('VIR') == -1){ - //如果不是查询线边库的物资,则在查询结果中过滤掉线边库的数据 - this.wmstockList = response.rows.filter((el) =>{ - return el.warehouseCode.indexOf('VIR') == -1; - }); - } + // if(response.rows){ + // 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; + // } + this.wmstockList = response.rows this.total = response.total; this.loading = false; - } }); }, /** 查询分类下拉树结构 */