Merge branch 'devCorrected' into 'beta'

Dev corrected

See merge request fedeo/software!27
This commit is contained in:
2025-11-09 17:04:53 +00:00
3 changed files with 44 additions and 26 deletions

View File

@@ -110,12 +110,15 @@ setup()
</template>
</Toolbar>
<EntityTable
:type="type"
:columns="columns"
:rows="props.item[type]"
style
/>
<div class="scroll" style="height: 70vh">
<EntityTable
:type="type"
:columns="columns"
:rows="props.item[type]"
style
/>
</div>
</UCard>
</template>

View File

@@ -147,11 +147,11 @@ const links = computed(() => {
to: "/staff/time",
icon: "i-heroicons-clock"
}] : [],
... has("absencerequests") ? [{
/*... has("absencerequests") ? [{
label: "Abwesenheiten",
to: "/standardEntity/absencerequests",
icon: "i-heroicons-document-text"
}] : [],
}] : [],*/
/*{
label: "Fahrten",
to: "/trackingTrips",

View File

@@ -15,9 +15,14 @@ const reqData = ref({})
const bankaccounts = ref([])
const showReqData = ref(false)
const setupPage = async () => {
if(route.query.ref) {
reqData.value = await useFunctions().useBankingListRequisitions(route.query.ref)
if(reqData.value.accounts.length > 0){
showReqData.value = true
}
}
bankaccounts.value = await useEntities("bankaccounts").select()
@@ -71,6 +76,7 @@ const updateAccount = async (account) => {
toast.add({title: "Es gab einen Fehler bei aktualisieren des Accounts", color:"rose"})
} else {
toast.add({title: "Account erfolgreich aktualisiert"})
reqData.value = null
setupPage()
}
}
@@ -137,25 +143,34 @@ setupPage()
</template>
</UDashboardNavbar>
<div
v-for="account in reqData.accounts"
class="p-2 m-3 flex justify-between"
>
{{account.iban}} - {{account.owner_name}}
<UModal v-model="showReqData">
<UCard>
<template #header>
Verfügbare Bankkonten
</template>
<div
v-for="account in reqData.accounts"
class="p-2 m-3 flex justify-between"
>
{{account.iban}} - {{account.owner_name}}
<UButton
@click="addAccount(account)"
v-if="!bankaccounts.find(i => i.iban === account.iban)"
>
Hinzufügen
</UButton>
<UButton
@click="updateAccount(account)"
v-else
>
Aktualisieren
</UButton>
</div>
</UCard>
</UModal>
<UButton
@click="addAccount(account)"
v-if="!bankaccounts.find(i => i.iban === account.iban)"
>
+ Konto
</UButton>
<UButton
@click="updateAccount(account)"
v-else
>
Aktualisieren
</UButton>
</div>
<!-- <UButton @click="setupPage">Setup</UButton>
<div v-if="route.query.reqId">