Changes
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -161,7 +161,7 @@ if(dataStore.times.find(time => time.user == user.value.id && !time.end)) {
|
||||
const createTime = async () => {
|
||||
const {data,error} = await supabase
|
||||
.from("times")
|
||||
.insert([itemInfo.value])
|
||||
.insert({...itemInfo.value, tenant: dataStore.currentTenant})
|
||||
.select()
|
||||
|
||||
if(error) {
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
</UButton>
|
||||
</UTooltip>
|
||||
|
||||
<UDropdown :items="items">
|
||||
<!-- <UDropdown :items="items">
|
||||
<UButton icon="i-heroicons-plus" size="md" class="ml-1.5 rounded-full" />
|
||||
</UDropdown>
|
||||
</UDropdown>-->
|
||||
</template>
|
||||
</UDashboardNavbar>
|
||||
|
||||
|
||||
@@ -84,11 +84,17 @@ const onSubmit = async (data) => {
|
||||
|
||||
</div>-->
|
||||
<UCard class="max-w-sm w-full mx-auto mt-5">
|
||||
<img
|
||||
|
||||
<UColorModeImage
|
||||
light="/spaces_hell.svg"
|
||||
dark="/spaces.svg"
|
||||
/>
|
||||
|
||||
<!-- <img
|
||||
:src="!isLight ? '/spaces.svg' : '/spaces_hell.svg'"
|
||||
alt="Logo"
|
||||
class="w-full mx-auto"
|
||||
/>
|
||||
/>-->
|
||||
|
||||
<UAuthForm
|
||||
title="Login"
|
||||
|
||||
@@ -81,23 +81,7 @@ setupPage()
|
||||
<div
|
||||
v-if="item.label === 'Informationen'"
|
||||
>
|
||||
<Toolbar>
|
||||
<UButton
|
||||
v-if="mode === 'show' && currentItem.id"
|
||||
@click="editItem"
|
||||
>
|
||||
Bearbeiten
|
||||
</UButton>
|
||||
</Toolbar><!--
|
||||
<UBadge
|
||||
v-for="tag in currentItem.tags"
|
||||
class="mr-2"
|
||||
>
|
||||
{{tag}}
|
||||
</UBadge>
|
||||
<UDivider
|
||||
class="my-2"
|
||||
/>-->
|
||||
|
||||
<span v-if="currentItem.sellingPrice">Verkaufspreis: {{String(Number(currentItem.sellingPrice).toFixed(2)).replace(".",",")}} €<br></span>
|
||||
|
||||
</div>
|
||||
@@ -143,6 +127,13 @@ setupPage()
|
||||
v-model="itemInfo.name"
|
||||
/>
|
||||
</UFormGroup>
|
||||
<UFormGroup
|
||||
label="Leistungsnummer:"
|
||||
>
|
||||
<UInput
|
||||
v-model="itemInfo.serviceNumber"
|
||||
/>
|
||||
</UFormGroup>
|
||||
<UFormGroup
|
||||
label="Einheit:"
|
||||
>
|
||||
@@ -174,6 +165,7 @@ setupPage()
|
||||
:options="dataStore.serviceCategories"
|
||||
option-attribute="name"
|
||||
value-attribute="id"
|
||||
v-model="itemInfo.serviceCategorie"
|
||||
></USelectMenu>
|
||||
</UFormGroup>
|
||||
|
||||
@@ -190,6 +182,14 @@ setupPage()
|
||||
</template>
|
||||
</UInput>
|
||||
</UFormGroup>
|
||||
<UFormGroup
|
||||
label="Beschreibung:"
|
||||
>
|
||||
<UTextarea
|
||||
v-model="itemInfo.description"
|
||||
:rows="6"
|
||||
/>
|
||||
</UFormGroup>
|
||||
</UForm>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user