diff --git a/src/interface/response/checkin.ts b/src/interface/response/checkin.ts index edfebdb..dba226c 100644 --- a/src/interface/response/checkin.ts +++ b/src/interface/response/checkin.ts @@ -4,4 +4,13 @@ interface FormRef { [key: string]: any } -export type { FormRef } +interface FormData { + checkInId: string + checkInDate: string | null + checkInTime: string + checkOutTime: string + checkInStatus: string + checkOutStatus: string + checkInLocation: string +} +export type { FormRef, FormData } diff --git a/src/stores/chekin.ts b/src/stores/chekin.ts index 4ca6aef..49a51fb 100644 --- a/src/stores/chekin.ts +++ b/src/stores/chekin.ts @@ -12,7 +12,7 @@ const { date2Thai } = mixin export const useChekIn = defineStore('checkin', () => { const rows = ref() - async function fetchHistoryList(data: any) { + async function fetchHistoryList(data: FormData) { // console.log(data) rows.value = [] const datalist = await data.map((e: any) => ({