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