ลงเวลาพิเศษแค่ช่วงบ่ายวันที่ไม่แสดง
This commit is contained in:
parent
7b0a618572
commit
a69d986340
5 changed files with 133 additions and 110 deletions
|
|
@ -2,7 +2,7 @@ import { defineStore } from 'pinia'
|
|||
import { ref } from 'vue'
|
||||
import type { FormData, Datalist } from '@/interface/response/checkin'
|
||||
import { useCounterMixin } from '@/stores/mixin'
|
||||
import moment from 'moment'
|
||||
|
||||
const mixin = useCounterMixin()
|
||||
const { date2Thai } = mixin
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ export const useChekIn = defineStore('checkin', () => {
|
|||
const dataList: Datalist[] = await data.map((e: FormData) => ({
|
||||
checkInId: e.checkInId,
|
||||
checkInDate: e.checkInDate ? date2Thai(e.checkInDate) : null,
|
||||
checkInDateTime: e.checkInDate,
|
||||
checkInDateTime: e.checkInDate ? e.checkInDate : e.checkOutDate,
|
||||
checkInTime: e.checkInTime,
|
||||
checkOutTime: e.checkOutTime != '' ? e.checkOutTime : '-',
|
||||
checkInStatus: e.checkInStatus ? convertStatus(e.checkInStatus) : '-',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue