|
|
@ -2018,6 +2018,11 @@ export default { |
|
|
|
inventoryList.records.forEach(item => { |
|
|
|
inventoryList.records.forEach(item => { |
|
|
|
item.reservationNum = '0'; |
|
|
|
item.reservationNum = '0'; |
|
|
|
item.applyNum = item.quantityStock - item.quantityOccupied; |
|
|
|
item.applyNum = item.quantityStock - item.quantityOccupied; |
|
|
|
|
|
|
|
if (item.unpack){ |
|
|
|
|
|
|
|
item.unpack = '是' |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
item.unpack = '否' |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.page.total = inventoryList.total; |
|
|
|
this.page.total = inventoryList.total; |
|
|
|
console.log('res :>> ', res); |
|
|
|
console.log('res :>> ', res); |
|
|
@ -2325,6 +2330,11 @@ export default { |
|
|
|
const inventoryList = res.data.data; |
|
|
|
const inventoryList = res.data.data; |
|
|
|
inventoryList.records.forEach(item => { |
|
|
|
inventoryList.records.forEach(item => { |
|
|
|
item.reservationNum = '0'; |
|
|
|
item.reservationNum = '0'; |
|
|
|
|
|
|
|
if (item.unpack){ |
|
|
|
|
|
|
|
item.unpack = '是' |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
item.unpack = '否' |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.page.total = inventoryList.total; |
|
|
|
this.page.total = inventoryList.total; |
|
|
|
this.inventoryInfo = inventoryList.records; |
|
|
|
this.inventoryInfo = inventoryList.records; |
|
|
|