Cahgned Buttons
This commit is contained in:
@@ -68,11 +68,50 @@ const openEmail = () => {
|
|||||||
:to="dataStore.documents.find(i => i.createdDocument === itemInfo.id) ? dataStore.documents.find(i => i.createdDocument === itemInfo.id).url : ''"
|
:to="dataStore.documents.find(i => i.createdDocument === itemInfo.id) ? dataStore.documents.find(i => i.createdDocument === itemInfo.id).url : ''"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>In neuen Tab anzeigen</UButton>-->
|
>In neuen Tab anzeigen</UButton>-->
|
||||||
<UButton
|
<UTooltip
|
||||||
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}`)"
|
text="Übernehmen in Angebot"
|
||||||
>
|
>
|
||||||
Übernehmen
|
<UButton
|
||||||
</UButton>
|
icon="i-heroicons-arrow-right-end-on-rectangle"
|
||||||
|
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}&type=quotes`)"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
Angebot
|
||||||
|
</UButton>
|
||||||
|
</UTooltip>
|
||||||
|
<UTooltip
|
||||||
|
text="Übernehmen in Auftragsbestätigung"
|
||||||
|
>
|
||||||
|
<UButton
|
||||||
|
icon="i-heroicons-arrow-right-end-on-rectangle"
|
||||||
|
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}&type=confirmationOrders`)"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
Auftragsbestätigung
|
||||||
|
</UButton>
|
||||||
|
</UTooltip>
|
||||||
|
<UTooltip
|
||||||
|
text="Übernehmen in Lieferschein"
|
||||||
|
>
|
||||||
|
<UButton
|
||||||
|
icon="i-heroicons-arrow-right-end-on-rectangle"
|
||||||
|
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}&type=deliveryNotes`)"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
Lieferschein
|
||||||
|
</UButton>
|
||||||
|
</UTooltip>
|
||||||
|
<UTooltip
|
||||||
|
text="Übernehmen in Rechnung"
|
||||||
|
>
|
||||||
|
<UButton
|
||||||
|
icon="i-heroicons-arrow-right-end-on-rectangle"
|
||||||
|
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}&type=invoices`)"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
Rechnung
|
||||||
|
</UButton>
|
||||||
|
</UTooltip>
|
||||||
<UButton
|
<UButton
|
||||||
@click="openEmail"
|
@click="openEmail"
|
||||||
icon="i-heroicons-envelope"
|
icon="i-heroicons-envelope"
|
||||||
@@ -83,17 +122,26 @@ const openEmail = () => {
|
|||||||
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}&loadMode=storno`)"
|
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}&loadMode=storno`)"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
color="rose"
|
color="rose"
|
||||||
|
v-if="itemInfo.type === 'invoices' || itemInfo.type === 'advanceInvoices'"
|
||||||
>
|
>
|
||||||
Stornieren
|
Stornieren
|
||||||
</UButton>
|
</UButton>
|
||||||
<UButton
|
<UButton
|
||||||
v-if="itemInfo.project"
|
v-if="itemInfo.project"
|
||||||
@click="router.push(`/standardEntity/projects/show/${itemInfo.project}`)"
|
@click="router.push(`/standardEntity/projects/show/${itemInfo.project}`)"
|
||||||
icon="i-heroicons-arrow-right-end-on-rectangle"
|
icon="i-heroicons-link"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
>
|
>
|
||||||
Projekt
|
Projekt
|
||||||
</UButton>
|
</UButton>
|
||||||
|
<UButton
|
||||||
|
v-if="itemInfo.customer"
|
||||||
|
@click="router.push(`/standardEntity/customers/show/${itemInfo.customer}`)"
|
||||||
|
icon="i-heroicons-link"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
Kunde
|
||||||
|
</UButton>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</UDashboardToolbar>
|
</UDashboardToolbar>
|
||||||
|
|||||||
Reference in New Issue
Block a user