generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
albrecht.schaenzel
committed
Nov 2, 2023
1 parent
37c4b7e
commit 5741769
Showing
6 changed files
with
202 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
190 changes: 190 additions & 0 deletions
190
...ponents/abfragevarianten/GeplanteAnzahlWohneinheitenBaugenehmigungsverfahrenComponent.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
<template> | ||
<field-group-card :card-title="geplanteAnzahlWohneinheitenTitle"> | ||
<v-row justify="center"> | ||
<v-col | ||
cols="12" | ||
md="4" | ||
> | ||
<num-field | ||
id="we_gesamt_field" | ||
ref="weGesamtField" | ||
v-model="abfragevariante.weGesamt" | ||
:disabled="!isEditable" | ||
class="mx-3" | ||
label="Gesamt" | ||
integer | ||
/> | ||
</v-col> | ||
<v-col | ||
cols="12" | ||
md="4" | ||
> | ||
<num-field | ||
id="we_baurechtlich_genehmigt_field" | ||
ref="weBaurechtlichGenehmigtField" | ||
v-model="abfragevariante.weBaurechtlichGenehmigt" | ||
:disabled="!isEditable" | ||
class="mx-3" | ||
label="Baurechtlich genehmigt" | ||
integer | ||
/> | ||
</v-col> | ||
<v-col | ||
cols="12" | ||
md="4" | ||
> | ||
<num-field | ||
id="we_baurechtlich_festgesetzt_field" | ||
ref="weBaurechtlichFestgesetztField" | ||
v-model="abfragevariante.weBaurechtlichFestgesetzt" | ||
:disabled="!isEditable" | ||
class="mx-3" | ||
label="Baurechtlich festgesetzt" | ||
integer | ||
/> | ||
</v-col> | ||
</v-row> | ||
|
||
<v-row justify="center"> | ||
<v-col | ||
cols="12" | ||
md="4" | ||
> | ||
<v-checkbox | ||
id="we_sonderwohnformen_checkbox" | ||
ref="weSonderwohnformenCheckbox" | ||
v-model="abfragevariante.weSonderwohnformen" | ||
:disabled="!isEditable" | ||
class="mx-3" | ||
label="Sonderwohnformen" | ||
color="primary" | ||
/> | ||
</v-col> | ||
<!-- Space für Platzhalter --> | ||
<v-col | ||
cols="12" | ||
md="8" | ||
> | ||
</v-col> | ||
</v-row> | ||
<v-expand-transition> | ||
<div> | ||
<v-row | ||
v-if="abfragevariante.weSonderwohnformen" | ||
justify="center" | ||
> | ||
<v-col | ||
cols="12" | ||
md="2" | ||
/> | ||
<v-col | ||
cols="12" | ||
md="2" | ||
> | ||
<span>davon</span> | ||
</v-col> | ||
<v-col | ||
cols="12" | ||
md="4" | ||
> | ||
<num-field | ||
id="we_studentenwohnungen_field" | ||
ref="weStudentenwohnungenField" | ||
v-model="abfragevariante.weStudentischesWohnen" | ||
:disabled="!isEditable" | ||
class="mx-3" | ||
label="Studentierendenwohnungen" | ||
integer | ||
/> | ||
</v-col> | ||
<v-col | ||
cols="12" | ||
md="4" | ||
> | ||
<num-field | ||
id="we_seniorInnen_wohnungen_field" | ||
ref="weSeniorInnenWohnungenField" | ||
v-model="abfragevariante.weSeniorinnenWohnen" | ||
:disabled="!isEditable" | ||
class="mx-3" | ||
label="Senior*innenwohnungen" | ||
integer | ||
/> | ||
</v-col> | ||
</v-row> | ||
<v-row | ||
v-if="abfragevariante.weSonderwohnformen" | ||
justify="center" | ||
> | ||
<v-col | ||
cols="12" | ||
md="4" | ||
/> | ||
<v-col | ||
cols="12" | ||
md="4" | ||
> | ||
<num-field | ||
id="we_genossenschaftswohnungen_field" | ||
ref="weGenossenschaftswohnungenField" | ||
v-model="abfragevariante.weGenossenschaftlichesWohnen" | ||
:disabled="!isEditable" | ||
class="mx-3" | ||
label="Genossenschaftswohnungen" | ||
integer | ||
/> | ||
</v-col> | ||
<v-col | ||
cols="12" | ||
md="4" | ||
> | ||
<num-field | ||
id="we_nicht_infrastruktur_relevante_wohnungen_field" | ||
ref="weNichtInfrastrukturRelevanteWohnungenField" | ||
v-model="abfragevariante.weWeiteresNichtInfrastrukturrelevantesWohnen" | ||
:disabled="!isEditable" | ||
class="mx-3" | ||
label="Weitere nicht-infrastrukturrelevante Wohnungen" | ||
integer | ||
/> | ||
</v-col> | ||
</v-row> | ||
</div> | ||
</v-expand-transition> | ||
</field-group-card> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Mixins, VModel, Prop, Watch } from "vue-property-decorator"; | ||
import AbfragevarianteBaugenehmigungsverfahrenModel from "@/types/model/abfragevariante/AbfragevarianteBaugenehmigungsverfahrenModel"; | ||
import FieldValidationRulesMixin from "@/mixins/validation/FieldValidationRulesMixin"; | ||
import FieldPrefixesSuffixes from "@/mixins/FieldPrefixesSuffixes"; | ||
import FieldGroupCard from "@/components/common/FieldGroupCard.vue"; | ||
import NumField from "@/components/common/NumField.vue"; | ||
import SaveLeaveMixin from "@/mixins/SaveLeaveMixin"; | ||
@Component({ components: { FieldGroupCard, NumField } }) | ||
export default class GeplanteGeschossflaecheWohnenBaugenehmigungsverfahrenComponent extends Mixins( | ||
FieldPrefixesSuffixes, | ||
FieldValidationRulesMixin, | ||
SaveLeaveMixin, | ||
) { | ||
@VModel({ type: AbfragevarianteBaugenehmigungsverfahrenModel }) | ||
abfragevariante!: AbfragevarianteBaugenehmigungsverfahrenModel; | ||
@Prop({ type: Boolean, default: false }) | ||
private readonly isEditable!: boolean; | ||
private geplanteAnzahlWohneinheitenTitle = "Geplante Anzahl Wohneinheiten"; | ||
@Watch("abfragevariante", { immediate: true, deep: true }) | ||
public clearSonderwohnformData(): void { | ||
if (!this.abfragevariante.weSonderwohnformen) { | ||
this.abfragevariante.weStudentischesWohnen = undefined; | ||
this.abfragevariante.weSeniorinnenWohnen = undefined; | ||
this.abfragevariante.weGenossenschaftlichesWohnen = undefined; | ||
this.abfragevariante.weWeiteresNichtInfrastrukturrelevantesWohnen = undefined; | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters