Skip to content

Commit

Permalink
Can generate bulk labels for parts
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaamo committed Dec 25, 2024
1 parent 4a4f5ef commit a563e63
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions front/src/views/parts/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
<PvButton label="Save" class="ml-1" @click="bulkChangeStorageLocation($event)"></PvButton>
</OverlayPanel>

<PvButton label="Generate labels" class="p-button-normal ml-2" @click="showBulkLabelGenerator()" />

<PvButton label="Delete" class="p-button-danger ml-2" @click="deletePartMultiple($event)" />
</template>

Expand Down Expand Up @@ -1072,6 +1074,26 @@ export default {
});
this.loadLazyData();
},
showBulkLabelGenerator() {
this.$dialog.open(LabelGeneratorModal, {
props: {
modal: true,
style: {
width: "70vw",
},
dismissableMask: true,
},
templates: {
header: () => {
return [h("h3", [h("i", { class: "fa fa-qrcode mr-1" }), h("span", "Label Generator")])];
},
},
data: {
items: this.selectedParts,
kind: "part",
},
});
},
},
};
</script>
Expand Down

0 comments on commit a563e63

Please sign in to comment.