Page past the 100-row cap in pickers and batch label sheets
This commit is contained in:
@@ -78,8 +78,9 @@ function labelText(item) {
|
||||
|
||||
onMounted(async () => {
|
||||
try {
|
||||
const response = await printedpartsApi.list({ perpage: 500 })
|
||||
items.value = response.data.data || []
|
||||
// listAll: perpage is clamped to 100, and a label sheet must cover every
|
||||
// item, not the first page of them.
|
||||
items.value = await printedpartsApi.listAll()
|
||||
// ?item=<id> preselects one part (the Detail-page print button)
|
||||
const preselect = new URLSearchParams(window.location.search).get('item')
|
||||
if (preselect) {
|
||||
|
||||
Reference in New Issue
Block a user