mirror of
https://github.com/tmaier/asn-qr-code-label-generator.git
synced 2026-03-15 09:03:49 +00:00
Add button to set next batch start number
This commit is contained in:
parent
d18719cc26
commit
11830f1608
1 changed files with 9 additions and 0 deletions
|
|
@ -178,6 +178,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<button
|
||||||
|
@click.prevent="setNextBatchStartNumber()"
|
||||||
|
class="w-full rounded-lg bg-gray-500 px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-gray-600 focus:outline-none focus:ring-4 focus:ring-blue-300 sm:w-auto"
|
||||||
|
>
|
||||||
|
Next Batch
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
@click.prevent="generateLabels()"
|
@click.prevent="generateLabels()"
|
||||||
class="w-full rounded-lg bg-blue-700 px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-blue-800 focus:outline-none focus:ring-4 focus:ring-blue-300 sm:w-auto"
|
class="w-full rounded-lg bg-blue-700 px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-blue-800 focus:outline-none focus:ring-4 focus:ring-blue-300 sm:w-auto"
|
||||||
|
|
@ -285,6 +291,9 @@
|
||||||
init() {
|
init() {
|
||||||
this.generateLabels();
|
this.generateLabels();
|
||||||
},
|
},
|
||||||
|
setNextBatchStartNumber() {
|
||||||
|
this.startNumber = parseInt(this.startNumber, 10) + 7 * 27;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue