|
@@ -203,7 +203,7 @@
|
|
|
confirmPositon() {},
|
|
|
init() {
|
|
|
console.log(this.userInfo)
|
|
|
- this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouseViewinfo', {
|
|
|
+ this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouseSelf', {
|
|
|
compId: '',
|
|
|
}).then(res => {
|
|
|
if (res.data.data) {
|
|
@@ -219,23 +219,7 @@
|
|
|
})
|
|
|
},
|
|
|
makeBinNumber(){debugger
|
|
|
- let _data = this.warehouseList
|
|
|
- let _arr = []
|
|
|
- for(let i = 0;i<_data.length;i++){
|
|
|
- //判断当前对象是否在数组中
|
|
|
- let result = _arr.some(item=>{
|
|
|
- if(item.warehouseId==_data[i].warehouseId){
|
|
|
- _arr.cwList.push(_data[i].binNumber)
|
|
|
- return true
|
|
|
- }
|
|
|
- })
|
|
|
- console.log(result)
|
|
|
- if(!result){
|
|
|
- _arr.push(_data[i])
|
|
|
- _arr.cwList = [_data[i].binNumber]
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
console.log(_arr)
|
|
|
|
|
|
},
|