过滤掉线边库

This commit is contained in:
yinjinlu-pc\尹金路
2023-06-19 13:08:24 +08:00
parent f2655eae1c
commit f8630c938f
8 changed files with 42 additions and 10 deletions

View File

@@ -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');

View File

@@ -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');

View File

@@ -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 =>{

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');