|
@@ -252,11 +252,16 @@ export default {
|
|
|
positionId: item.binNumberId,
|
|
|
warehouseName: item.warehouseName,
|
|
|
binNumber: item.binNumber,
|
|
|
+ capacity: item.capacity,
|
|
|
},
|
|
|
})
|
|
|
},
|
|
|
//入库
|
|
|
warehousing(item) {
|
|
|
+ var free = 0
|
|
|
+ for (var i = 0; i < item.warehouseNumViewList.length; i++) {
|
|
|
+ free += Number(item.warehouseNumViewList[i].storage)
|
|
|
+ }
|
|
|
this.$router.push({
|
|
|
path: 'warehouseManagementPut',
|
|
|
query: {
|
|
@@ -264,6 +269,7 @@ export default {
|
|
|
positionId: item.binNumberId,
|
|
|
warehouseName: item.warehouseName,
|
|
|
binNumber: item.binNumber,
|
|
|
+ capacity:item.capacity - free ,
|
|
|
},
|
|
|
})
|
|
|
},
|
|
@@ -286,16 +292,13 @@ export default {
|
|
|
// this.pos = 0
|
|
|
// } else {
|
|
|
//不是第一项时,就根据标识去存储
|
|
|
- console.log(data[index].warehouseNumViewList.length)
|
|
|
if (data[index].warehouseNumViewList.length > 1) {
|
|
|
// 查找到符合条件的数据时每次要把之前存储的数据+1
|
|
|
this.spanArr[this.pos] = data[index].warehouseNumViewList.length
|
|
|
this.spanArr.push(0)
|
|
|
} else {
|
|
|
// 没有符合的数据时,要记住当前的index
|
|
|
-
|
|
|
this.spanArr.push(1)
|
|
|
-
|
|
|
this.pos = index
|
|
|
}
|
|
|
// }
|
|
@@ -305,12 +308,11 @@ export default {
|
|
|
nocomplete(row) {
|
|
|
this.$router.push({
|
|
|
path: 'warehouseManagementNoComplete',
|
|
|
- query: { baseId: row.warehouseId,
|
|
|
- positionId: row.binNumberId,
|
|
|
- warehouseName: row.warehouseName,
|
|
|
- binNumber : row.binNumber
|
|
|
-
|
|
|
-
|
|
|
+ query: {
|
|
|
+ baseId: row.warehouseId,
|
|
|
+ positionId: row.binNumberId,
|
|
|
+ warehouseName: row.warehouseName,
|
|
|
+ binNumber: row.binNumber,
|
|
|
},
|
|
|
})
|
|
|
},
|
|
@@ -465,7 +467,6 @@ export default {
|
|
|
this.dialogViewSpareMoney = false
|
|
|
},
|
|
|
history(row) {
|
|
|
- console.log(row)
|
|
|
billoperatehis({ id: row.id })
|
|
|
.toPromise()
|
|
|
.then((response) => {
|