ปรับหน้าลงเวลาเข้างาน, ออกงาน, ประวัติการลาเวลา
This commit is contained in:
parent
421f4d5805
commit
7f0e41ff31
15 changed files with 696 additions and 191 deletions
29
src/modules/03_retire/store.ts
Normal file
29
src/modules/03_retire/store.ts
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { defineStore } from "pinia";
|
||||
|
||||
export const useRestDataStore = defineStore("Rest", () => {
|
||||
const statusText = (val: string) => {
|
||||
switch (val) {
|
||||
case "WAITTING":
|
||||
return "รอดำเนินการ";
|
||||
case "PENDING":
|
||||
return "เลือกตำแหน่งแล้ว";
|
||||
case "APPROVE":
|
||||
return "อนุมัติ";
|
||||
case "REJECT":
|
||||
return "ไม่อนุมัติ";
|
||||
case "DELETE":
|
||||
return "ยกเลิกการลาออก";
|
||||
case "REPORT":
|
||||
return "ส่งรายชื่อไปออกคำสั่ง";
|
||||
case "DONE":
|
||||
return "ออกคำสั่งเสร็จแล้ว";
|
||||
|
||||
default:
|
||||
return "-";
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
statusText,
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue