diff --git a/src/components/Checkout.vue b/src/components/Checkout.vue index 60a629b..cad3e53 100644 --- a/src/components/Checkout.vue +++ b/src/components/Checkout.vue @@ -35,6 +35,7 @@ import { defineComponent } from "vue"; import UserList from "./UserList.vue"; import MD5 from "crypto-js/md5"; +import { User } from "../types/mete"; export default defineComponent({ components: { UserList }, @@ -44,7 +45,7 @@ export default defineComponent({ dialogVisible: false, form: { selectedUser: "" }, loading: false, - users: [], + users: [] as User[], search: "", }; }, @@ -66,7 +67,7 @@ export default defineComponent({ } this.loading = false; }, - checkout(userId: string) { + checkout(userId: number) { this.dialogVisible = false; this.$emit("checkout", userId); }, diff --git a/src/components/DeviceEvents.vue b/src/components/DeviceEvents.vue index 1c9c289..2e6f567 100644 --- a/src/components/DeviceEvents.vue +++ b/src/components/DeviceEvents.vue @@ -16,7 +16,7 @@ Abbrechen NFC-Code registrieren @@ -146,7 +146,7 @@ export default defineComponent({ this.$emit("barcode", JSON.parse((event as any).data!)); }); - evtSource.addEventListener("storno", (event: Event) => { + evtSource.addEventListener("storno", (_: Event) => { this.$emit("storno"); }); } @@ -155,7 +155,7 @@ export default defineComponent({ return { dialogVisible: false, selectedUser: "", - unregisteredNfc: null, + unregisteredNfc: null as null | string, }; }, }); diff --git a/src/components/ProductList.vue b/src/components/ProductList.vue index 221d04f..24301f7 100644 --- a/src/components/ProductList.vue +++ b/src/components/ProductList.vue @@ -16,7 +16,7 @@