|
|
@ -380,6 +380,7 @@ |
|
|
</el-table> |
|
|
</el-table> |
|
|
<div style="margin-top: 10px; display: flex; justify-content: flex-end;"> |
|
|
<div style="margin-top: 10px; display: flex; justify-content: flex-end;"> |
|
|
<el-pagination |
|
|
<el-pagination |
|
|
|
|
|
:key="`tab-${tabIndex}-${inventoryTotal}`" |
|
|
:current-page="inventoryPage" |
|
|
:current-page="inventoryPage" |
|
|
:page-sizes="[10, 20, 50, 100]" |
|
|
:page-sizes="[10, 20, 50, 100]" |
|
|
:page-size="inventoryPageSize" |
|
|
:page-size="inventoryPageSize" |
|
|
@ -744,6 +745,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
changeActiveTab(index) { |
|
|
changeActiveTab(index) { |
|
|
this.tabIndex = index |
|
|
this.tabIndex = index |
|
|
|
|
|
this.inventoryPage = 1 // 重置页码 |
|
|
|
|
|
this.inventoryPageSize = 10 // 重置条数 |
|
|
|
|
|
|
|
|
if (this.tabIndex === 1) { |
|
|
if (this.tabIndex === 1) { |
|
|
this.getStockTakeSuperfluousByTaskId() |
|
|
this.getStockTakeSuperfluousByTaskId() |
|
|
} else { |
|
|
} else { |
|
|
@ -764,6 +768,7 @@ export default { |
|
|
console.log('FetchStockTakeDetailsByTaskId', res) |
|
|
console.log('FetchStockTakeDetailsByTaskId', res) |
|
|
this.inventoryList = res.records |
|
|
this.inventoryList = res.records |
|
|
this.inventoryTotal = res.total |
|
|
this.inventoryTotal = res.total |
|
|
|
|
|
|
|
|
this.inventoryLoading = false |
|
|
this.inventoryLoading = false |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
|