- แก้ error type ของพวกทะเบียนประวัติ
- ปรับ code ส่วนของทะเบียนประวัติลูกจ้าง
This commit is contained in:
parent
b3abe902fa
commit
eea8ce1b6d
41 changed files with 8235 additions and 9890 deletions
|
|
@ -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,
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue