added categories to assetmanagement

This commit is contained in:
Luca Haid
2026-01-19 06:51:56 +01:00
parent 15afb237e1
commit bd0a332aa1
4 changed files with 91 additions and 4 deletions

View File

@@ -454,6 +454,14 @@ Vue.component('asset-management-modal', {
<tt-input label="Gerätename" v-model="asset.name" sm required/>
<tt-input label="Kennzeichen / Nr." v-model="asset.assetNumber" sm required/>
<tt-input label="Lagerort" v-model="asset.location" sm required/>
<tt-autocomplete
label="Kategorie"
:api-url="categoryAutoCompleteUrl"
v-model="asset.category"
:return-text="true"
placeholder="Kategorie eingeben..."
sm
/>
</div>
</div>
@@ -488,9 +496,11 @@ Vue.component('asset-management-modal', {
`,
data(){
return {
categoryAutoCompleteUrl: window.TT_CONFIG.BASE_PATH + '/AssetManagement/getCategories',
asset: {
name: '',
description: '',
category: '',
assetNumber: '',
location: 'Liftkammer',
serviceDueDate: null,