From f8630c938fec62632feeec8ab7121166b1157961 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: Mon, 19 Jun 2023 13:08:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=E6=8E=89=E7=BA=BF=E8=BE=B9?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/stockSelect/single.vue | 10 +++++++--- src/views/mes/wm/issue/index.vue | 6 +++++- src/views/mes/wm/itemrecpt/index.vue | 6 +++++- src/views/mes/wm/itemrecpt/line.vue | 6 +++++- src/views/mes/wm/rtissue/index.vue | 6 +++++- src/views/mes/wm/rtissue/line.vue | 6 +++++- src/views/mes/wm/rtsalse/index.vue | 6 +++++- src/views/mes/wm/rtsalse/line.vue | 6 +++++- 8 files changed, 42 insertions(+), 10 deletions(-) diff --git a/src/components/stockSelect/single.vue b/src/components/stockSelect/single.vue index 94add94..d4f4921 100644 --- a/src/components/stockSelect/single.vue +++ b/src/components/stockSelect/single.vue @@ -244,9 +244,13 @@ export default { getList() { this.loading = true; listWmstock(this.queryParams).then(response => { - this.wmstockList = response.rows; - this.total = response.total; - this.loading = false; + if(response.rows){ + this.wmstockList = response.rows.filter((el) =>{ + return el.warehouseCode.indexOf('VIR') == -1; + }); + this.total = response.total; + this.loading = false; + } }); }, /** 查询分类下拉树结构 */ diff --git a/src/views/mes/wm/issue/index.vue b/src/views/mes/wm/issue/index.vue index c40d96d..d1748fb 100644 --- a/src/views/mes/wm/issue/index.vue +++ b/src/views/mes/wm/issue/index.vue @@ -358,7 +358,11 @@ export default { }, getWarehouseList(){ getTreeList().then( response =>{ - this.warehouseOptions = response.data; + if(response.data){ + this.warehouseOptions = response.data.filter((el) =>{ + return el.warehouseCode.indexOf('VIR') == -1; + });; + } this.warehouseOptions.map(w =>{ w.children.map(l =>{ let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName'); diff --git a/src/views/mes/wm/itemrecpt/index.vue b/src/views/mes/wm/itemrecpt/index.vue index df74039..638d168 100644 --- a/src/views/mes/wm/itemrecpt/index.vue +++ b/src/views/mes/wm/itemrecpt/index.vue @@ -359,7 +359,11 @@ export default { }, getWarehouseList(){ getTreeList().then( response =>{ - this.warehouseOptions = response.data; + if(response.data){ + this.warehouseOptions = response.data.filter((el) =>{ + return el.warehouseCode.indexOf('VIR') == -1; + });; + } this.warehouseOptions.map(w =>{ w.children.map(l =>{ let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName'); diff --git a/src/views/mes/wm/itemrecpt/line.vue b/src/views/mes/wm/itemrecpt/line.vue index 369beb4..e870ad8 100644 --- a/src/views/mes/wm/itemrecpt/line.vue +++ b/src/views/mes/wm/itemrecpt/line.vue @@ -238,7 +238,11 @@ export default { }, getWarehouseList(){ getTreeList().then( response =>{ - this.warehouseOptions = response.data; + if(response.data){ + this.warehouseOptions = response.data.filter((el) =>{ + return el.warehouseCode.indexOf('VIR') == -1; + });; + } this.warehouseOptions.map(w =>{ debugger; w.children.map(l =>{ diff --git a/src/views/mes/wm/rtissue/index.vue b/src/views/mes/wm/rtissue/index.vue index d005315..b790be7 100644 --- a/src/views/mes/wm/rtissue/index.vue +++ b/src/views/mes/wm/rtissue/index.vue @@ -296,7 +296,11 @@ export default { }, getWarehouseList(){ getTreeList().then( response =>{ - this.warehouseOptions = response.data; + if(response.data){ + this.warehouseOptions = response.data.filter((el) =>{ + return el.warehouseCode.indexOf('VIR') == -1; + });; + } this.warehouseOptions.map(w =>{ w.children.map(l =>{ let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName'); diff --git a/src/views/mes/wm/rtissue/line.vue b/src/views/mes/wm/rtissue/line.vue index a867be0..fd995df 100644 --- a/src/views/mes/wm/rtissue/line.vue +++ b/src/views/mes/wm/rtissue/line.vue @@ -232,7 +232,11 @@ export default { }, getWarehouseList(){ getTreeList().then( response =>{ - this.warehouseOptions = response.data; + if(response.data){ + this.warehouseOptions = response.data.filter((el) =>{ + return el.warehouseCode.indexOf('VIR') == -1; + });; + } this.warehouseOptions.map(w =>{ w.children.map(l =>{ let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName'); diff --git a/src/views/mes/wm/rtsalse/index.vue b/src/views/mes/wm/rtsalse/index.vue index 0fb981b..003fa00 100644 --- a/src/views/mes/wm/rtsalse/index.vue +++ b/src/views/mes/wm/rtsalse/index.vue @@ -369,7 +369,11 @@ export default { }, getWarehouseList(){ getTreeList().then( response =>{ - this.warehouseOptions = response.data; + if(response.data){ + this.warehouseOptions = response.data.filter((el) =>{ + return el.warehouseCode.indexOf('VIR') == -1; + });; + } this.warehouseOptions.map(w =>{ w.children.map(l =>{ let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName'); diff --git a/src/views/mes/wm/rtsalse/line.vue b/src/views/mes/wm/rtsalse/line.vue index af90c01..e2b7bdc 100644 --- a/src/views/mes/wm/rtsalse/line.vue +++ b/src/views/mes/wm/rtsalse/line.vue @@ -224,7 +224,11 @@ export default { }, getWarehouseList(){ getTreeList().then( response =>{ - this.warehouseOptions = response.data; + if(response.data){ + this.warehouseOptions = response.data.filter((el) =>{ + return el.warehouseCode.indexOf('VIR') == -1; + });; + } this.warehouseOptions.map(w =>{ w.children.map(l =>{ let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');