This commit is contained in:
2024-07-30 12:01:07 +02:00
parent c776100ed0
commit baa06b60fb
6 changed files with 282 additions and 13 deletions

View File

@@ -44,7 +44,6 @@ const setupPage = async () => {
itemInfo.value = await useSupabaseSelectSingle("products",route.params.id,"*")
}
if(mode.value === "edit") itemInfo.value = itemInfo.value
}
@@ -59,11 +58,10 @@ const cancelEditorCreate = () => {
const printLabel = async (content) => {
let label = await useSupabaseSelectSingle("labels",1,"*")
console.log(label)
let zpl = label.zpl.replace("{{barcodeContent}}",content)
const label = await useSupabaseSelectSingle("printLabels",1,'*')
await useZebraPstPrnt(zpl)
usePrintLabel('0dbe30f3-3008-4cde-8a7c-e785b1c22bfc','ZD411',useGenerateZPL(label.handlebarsZPL,{barcode:itemInfo.value.articleNumber }))
}
@@ -142,6 +140,7 @@ setupPage()
/>
<UButton @click="printLabel(itemInfo.ean)">Print Label</UButton>
{{itemInfo}}
<span v-if="itemInfo.manufacturer">Hersteller: {{itemInfo.manufacturer}}<br></span>
<span v-if="itemInfo.manufacturerNumber">Herstellernummer: {{itemInfo.manufacturerNumber}}<br></span>