refactor(worklist): formatDate colunm checkInTime checkOutTime

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-04-24 15:59:07 +07:00
parent bf5979aa2d
commit 8a1fb4f9ed
3 changed files with 20 additions and 2 deletions

View file

@ -267,7 +267,9 @@ watch(
<div class="q-pa-md q-gutter-md">
<div class="row">
<div class="col text-grey-8">เวลาเขางาน</div>
<div class="col">{{ formData.checkInTime }}</div>
<div class="col">
{{ `${formData.checkInDate} ${formData.checkInTime} น.` }}
</div>
</div>
<div class="row">
<div class="col text-grey-8">สถานททำงาน</div>
@ -337,7 +339,11 @@ watch(
<div class="q-pa-md q-gutter-md">
<div class="row">
<div class="col text-grey-8">เวลาออกงาน</div>
<div class="col">{{ formData.checkOutTime }}</div>
<div class="col">
{{
`${formData.checkOutDate} ${formData.checkOutTime} น.`
}}
</div>
</div>
<div class="row">
<div class="col text-grey-8">สถานททำงาน</div>

View file

@ -74,6 +74,9 @@ const columns = ref<QTableProps["columns"]>([
field: "checkInTime",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return `${row.checkInDate} ${val} น.`;
},
},
{
name: "checkInLocation",
@ -101,6 +104,9 @@ const columns = ref<QTableProps["columns"]>([
field: "checkOutTime",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return `${row.checkOutDate} ${val} น.`;
},
},
{
name: "checkOutLocation",

View file

@ -70,6 +70,9 @@ const columns = ref<QTableProps["columns"]>([
field: "checkInTime",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return `${row.checkInDate} ${val} น.`;
},
},
{
name: "checkInLocation",
@ -88,6 +91,9 @@ const columns = ref<QTableProps["columns"]>([
field: "checkOutTime",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return `${row.checkOutDate} ${val} น.`;
},
},
{
name: "checkOutLocation",