Tidying and PDF Viewer Location
This commit is contained in:
@@ -1150,9 +1150,9 @@ const getDocumentData = async () => {
|
||||
label: "Ansprechpartner",
|
||||
content: contactPerson.full_name,
|
||||
},
|
||||
...contactPerson.fixedTel || contactPerson.mobileTel ? [{
|
||||
...itemInfo.value.contactTel || contactPerson.fixed_tel || contactPerson.mobile_tel ? [{
|
||||
label: "Telefon",
|
||||
content: contactPerson.fixedTel || contactPerson.mobileTel,
|
||||
content: itemInfo.value.contactTel || contactPerson.fixed_tel || contactPerson.mobile_tel,
|
||||
}] : [],
|
||||
...contactPerson.email ? [{
|
||||
label: "E-Mail",
|
||||
@@ -1225,7 +1225,7 @@ const generateDocument = async () => {
|
||||
showDocument.value = false
|
||||
const path = letterheads.value.find(i => i.id === itemInfo.value.letterhead).path
|
||||
|
||||
uri.value = await useFunctions().useCreatePDF(await getDocumentData(), path)
|
||||
uri.value = await useFunctions().useCreatePDF(await getDocumentData(), path, "createdDocument")
|
||||
/*uri.value = await useNuxtApp().$api("/api/functions/createinvoicepdf",{
|
||||
method: "POST",
|
||||
body: {
|
||||
@@ -3108,24 +3108,11 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
||||
</UFormGroup>
|
||||
</div>
|
||||
<div v-else-if="item.label === 'Vorschau'">
|
||||
|
||||
<!-- <UButton
|
||||
@click="generateDocument"
|
||||
>
|
||||
Show
|
||||
</UButton>-->
|
||||
<PDFViewer
|
||||
v-if="showDocument"
|
||||
:uri="uri"
|
||||
location="edit_create_document"
|
||||
/>
|
||||
|
||||
<!-- <object
|
||||
:data="uri"
|
||||
v-if="showDocument"
|
||||
type="application/pdf"
|
||||
class="w-full previewDocumentMobile"
|
||||
/>-->
|
||||
|
||||
</div>
|
||||
</template>
|
||||
</UTabs>
|
||||
|
||||
Reference in New Issue
Block a user