- แก้ error type ของพวกทะเบียนประวัติ

- ปรับ code ส่วนของทะเบียนประวัติลูกจ้าง
This commit is contained in:
Warunee Tamkoo 2023-09-20 00:44:21 +07:00
parent b3abe902fa
commit eea8ce1b6d
41 changed files with 8235 additions and 9890 deletions

View file

@ -81,3 +81,29 @@ export const useProfileDataStore = defineStore("profile", () => {
changeRetireText,
};
});
export const useRegistryEmployeeDataStore = defineStore("registryEmployeeDataStore", () => {
const statusText = (val: string) => {
switch (val) {
case "WAITTING":
return "รอดำเนินการ";
case "PENDING":
return "เลือกตำแหน่งแล้ว";
case "APPROVE":
return "อนุมัติ";
case "REJECT":
return "ไม่อนุมัติ";
case "REPORT":
return "ส่งรายชื่อไปออกคำสั่ง";
case "DONE":
return "ออกคำสั่งเสร็จแล้ว";
default:
return "-";
}
};
return {
statusText,
};
});