Some Changes

This commit is contained in:
2024-07-09 21:35:19 +02:00
parent 101b8d3361
commit eb4b8a8d9b
13 changed files with 436 additions and 170 deletions

View File

@@ -56,6 +56,18 @@ const cancelEditorCreate = () => {
}
}
const printLabel = async (content) => {
let label = await useSupabaseSelectSingle("labels",1,"*")
console.log(label)
let zpl = label.zpl.replace("{{barcodeContent}}",content)
await useZebraPstPrnt(zpl)
}
setupPage()
</script>
@@ -129,6 +141,8 @@ setupPage()
class="my-2"
/>
<UButton @click="printLabel(itemInfo.ean)">Print Label</UButton>
<span v-if="itemInfo.manufacturer">Hersteller: {{itemInfo.manufacturer}}<br></span>
<span v-if="itemInfo.manufacturerNumber">Herstellernummer: {{itemInfo.manufacturerNumber}}<br></span>
<span v-if="itemInfo.description">Beschreibung: {{itemInfo.description}}<br></span>