hrms-mgt/src/modules/04_registryPerson/stores/AbsentLate.ts
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 ecc10e16c9 feat:absentlate
2026-03-24 16:50:26 +07:00

19 lines
639 B
TypeScript

import { ref } from "vue";
import { defineStore } from "pinia";
import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main";
export const useAbsentLateStore = defineStore("absentLate", () => {
const statusOps = ref<DataOption[]>([
{ name: "ขาดราชการ", id: "ABSENT" },
{ name: "มาสาย", id: "LATE" },
]);
const stampTypeOps = ref<DataOption[]>([
{ name: "เต็มวัน", id: "FULL_DAY" },
{ name: "ครึ่งเช้า", id: "MORNING" },
{ name: "ครึ่งบ่าย ", id: "AFTERNOON" },
]);
return { statusOps, stampTypeOps };
});