From 21e1016cae60cbc3bdbfc746da0896b680668f0c Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Wed, 22 Nov 2023 13:02:02 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=20=20interface=20=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=87?= =?UTF-8?q?=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interface/response/checkin.ts | 11 ++++++++++- src/stores/chekin.ts | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) 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) => ({