เพิ่ม interface ประวัติการลงเวลา

This commit is contained in:
AnandaTon 2023-11-22 13:02:02 +07:00
parent 9ed15251f9
commit 21e1016cae
2 changed files with 11 additions and 2 deletions

View file

@ -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 }

View file

@ -12,7 +12,7 @@ const { date2Thai } = mixin
export const useChekIn = defineStore('checkin', () => {
const rows = ref<any>()
async function fetchHistoryList(data: any) {
async function fetchHistoryList(data: FormData) {
// console.log(data)
rows.value = []
const datalist = await data.map((e: any) => ({