diff --git a/frontend/components.d.ts b/frontend/components.d.ts index b60c757..0077cc8 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -37,6 +37,7 @@ declare module '@vue/runtime-core' { KontaktForm: typeof import('./src/components/zaehlung/form/KontaktForm.vue')['default'] LageplanForm: typeof import('./src/components/messstelle/LageplanForm.vue')['default'] LhmTextField: typeof import('./src/components/common/LhmTextField.vue')['default'] + MessfaehigkeitForm: typeof import('./src/components/messstelle/MessfaehigkeitForm.vue')['default'] MessquerschnittForm: typeof import('./src/components/messstelle/MessquerschnittForm.vue')['default'] MessstelleForm: typeof import('./src/components/messstelle/MessstelleForm.vue')['default'] MessstelleInfo: typeof import('./src/components/messstelle/MessstelleInfo.vue')['default'] @@ -94,6 +95,7 @@ declare module '@vue/runtime-core' { VProgressLinear: typeof import('vuetify/lib')['VProgressLinear'] VRow: typeof import('vuetify/lib')['VRow'] VSheet: typeof import('vuetify/lib')['VSheet'] + VSimpleTable: typeof import('vuetify/lib')['VSimpleTable'] VSnackbar: typeof import('vuetify/lib')['VSnackbar'] VSpacer: typeof import('vuetify/lib')['VSpacer'] VSpeedDial: typeof import('vuetify/lib')['VSpeedDial'] diff --git a/frontend/src/components/messstelle/MessfaehigkeitForm.vue b/frontend/src/components/messstelle/MessfaehigkeitForm.vue new file mode 100644 index 0000000..77659df --- /dev/null +++ b/frontend/src/components/messstelle/MessfaehigkeitForm.vue @@ -0,0 +1,77 @@ + + + diff --git a/frontend/src/components/messstelle/UpdateMessstelleForm.vue b/frontend/src/components/messstelle/UpdateMessstelleForm.vue index 67bda12..dcdfe6f 100644 --- a/frontend/src/components/messstelle/UpdateMessstelleForm.vue +++ b/frontend/src/components/messstelle/UpdateMessstelleForm.vue @@ -21,6 +21,10 @@ Messquerschnitt mdi-routes + + Messfähigkeit + mdi-car-multiple + Standort mdi-map-marker-outline @@ -74,6 +78,12 @@ :disabled="isMessstelleReadonly" /> + + + = ref(0); const validMst: Ref = ref(false); diff --git a/frontend/src/domain/dto/messstelle/MessfaehigkeitDTO.ts b/frontend/src/domain/dto/messstelle/MessfaehigkeitDTO.ts new file mode 100644 index 0000000..52abc48 --- /dev/null +++ b/frontend/src/domain/dto/messstelle/MessfaehigkeitDTO.ts @@ -0,0 +1,7 @@ +export default interface MessfaehigkeitDTO { + gueltigAb: string; + gueltigBis: string; + intervall: string; + fahrzeugklassen: string; + standort: string; +} diff --git a/frontend/src/domain/dto/messstelle/MessstelleEditDTO.ts b/frontend/src/domain/dto/messstelle/MessstelleEditDTO.ts index 7058109..1d6533f 100644 --- a/frontend/src/domain/dto/messstelle/MessstelleEditDTO.ts +++ b/frontend/src/domain/dto/messstelle/MessstelleEditDTO.ts @@ -1,6 +1,7 @@ import BaseEntity from "@/domain/BaseEntity"; import MessquerschnittEditDTO from "@/domain/dto/messstelle/MessquerschnittEditDTO"; import { MessstelleStatus } from "@/domain/enums/MessstelleStatus"; +import MessfaehigkeitDTO from "@/domain/dto/messstelle/MessfaehigkeitDTO"; export default interface MessstelleEditDTO extends BaseEntity { mstId: string; @@ -25,4 +26,5 @@ export default interface MessstelleEditDTO extends BaseEntity { sichtbarDatenportal: boolean; messquerschnitte: Array; + messfaehigkeiten: Array; } diff --git a/frontend/src/util/DateUtils.ts b/frontend/src/util/DateUtils.ts index 1a88b54..0265888 100644 --- a/frontend/src/util/DateUtils.ts +++ b/frontend/src/util/DateUtils.ts @@ -13,8 +13,16 @@ export function useDateUtils() { }); } + function isDateAfter( + dateToCheck: string, + dateAfter: Date | string + ): boolean { + return new Date(dateToCheck).valueOf() > new Date(dateAfter).valueOf(); + } + return { sortDatesDescAsStrings, formatDate, + isDateAfter, }; }