2025-04-30 17:34:20 +07:00
|
|
|
import { defineStore } from "pinia";
|
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
2025-05-07 17:18:06 +07:00
|
|
|
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", () => {
|
2025-05-07 17:18:06 +07:00
|
|
|
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" },
|
|
|
|
|
{ name: "ลูกจ้างประจำ", id: "perm" },
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
roundData,
|
|
|
|
|
insigniaTypeData,
|
|
|
|
|
employeeClassData,
|
|
|
|
|
};
|
|
|
|
|
});
|