hrms-mgt/src/modules/07_insignia/storeReclaim.ts

22 lines
835 B
TypeScript
Raw Normal View History

2025-04-30 17:34:20 +07:00
import { defineStore } from "pinia";
import { ref } from "vue";
import type { OptionData } from "@/modules/07_insignia/interface/index/Main";
import type { DataRound } from "@/modules/07_insignia/interface/response/Reclaim";
2025-04-30 17:34:20 +07:00
export const useInsigniaReclaimStore = defineStore("insigniaReclaim", () => {
const roundData = ref<DataRound[]>([{ name: "ทั้งหมด", id: "all", year: 0 }]);
const insigniaTypeData = ref<OptionData[]>([{ name: "ทั้งหมด", id: "all" }]);
const employeeClassData = ref<OptionData[]>([
2025-04-30 17:34:20 +07:00
{ name: "ทั้งหมด", id: "all" },
{ name: "ข้าราชการ กทม.สามัญ", id: "officer" },
2025-05-30 13:00:53 +07:00
{ name: "ลูกจ้างประจำ", id: "employee" },
2025-04-30 17:34:20 +07:00
]);
return {
roundData,
insigniaTypeData,
employeeClassData,
};
});