Some Changes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user