Dashboard, Datenblatt usw.

This commit is contained in:
Moritz Utcke
2025-02-19 18:12:48 +11:00
parent 198912c792
commit 69566f1c74
39 changed files with 1479 additions and 420 deletions

View File

@@ -115,6 +115,10 @@
window.location.href = `/kaufabschluss?uid=${ausweis.uid}`;
}
async function anfordern() {
// TODO Angebot anfordern
}
async function bestellen() {
const ausweisart = getAusweisartFromUUID(ausweis.uid) as Enums.Ausweisart;
@@ -174,6 +178,7 @@
2xl:grid-cols-2 2xl:gap-x-8
"
>
{#if !ausweis.geg_anfrage}
<div id="performance-box" class="w-full box relative px-4 order-1 self-stretch grid grid-cols-1">
<PerformanceScore
bind:ausweis
@@ -182,6 +187,7 @@
{ausweisart}
/>
</div>
{/if}
<div
id="progress-box"
@@ -191,7 +197,11 @@
<h2 class="text-primary text-xl">
Verbrauchsausweis Wohnen {PRICES.VerbrauchsausweisWohnen[0]}
</h2>
{#if ausweis.geg_anfrage}
<Progressbar active={1} steps={["Gebäudedaten", "Kundendaten", "Bestätigung"]}/>
{:else}
<Progressbar active={1}/>
{/if}
</div>
</div>
@@ -208,10 +218,10 @@
<Rechnungsadresse bind:user bind:rechnung /></Bereich
>
{#if !ausweis.geg_anfrage}
<Bereich bereich="3" title="Bezahlmethode">
<Bezahlung bind:selectedPaymentType={bezahlmethode} /></Bereich
>
<div class="grid grid-cols-2 gap-x-6 my-6">
<div class="zusaetze bereich-box bg-white">
<h3>Zusatzleistungen:</h3>
@@ -275,6 +285,7 @@
</div>
</div>
</div>
{/if}
<div
class="w-full grid grid-cols-[min-content_1fr_min-content_min-content] grid-rows-[min_content_1fr] gap-x-2 self-start justify-self-end mt-8"
@@ -285,7 +296,11 @@
<button class="button">Speichern</button>
<button class="button cursor-pointer" data-cy="bestellen" on:click={bestellen} >Kostenpflichtig bestellen</button>
{#if ausweis.geg_anfrage}
<button class="button cursor-pointer" data-cy="bestellen" on:click={anfordern} >Angebot anfordern</button>
{:else}
<button class="button cursor-pointer" data-cy="bestellen" on:click={bestellen} >Kostenpflichtig bestellen</button>
{/if}
</div>
</div>
</div>