แก้ไฟล์ split2

This commit is contained in:
Kittapath 2023-06-19 16:00:12 +07:00
parent e1a25d437d
commit a66f6bfe14
4 changed files with 154 additions and 75 deletions

View file

@ -608,6 +608,57 @@ export const useCounterMixin = defineStore("mixin", () => {
}
};
const typeRetire = (val: string) => {
switch (val) {
case "retire":
return "เกษียณอายุราชการ";
case "resign":
return "ลาออก";
case "transfer":
return "ให้โอน";
case "death":
return "ถึงแก่กรรม";
case "layoff":
return "ให้ออก";
case "discharge":
return "ปลดออก";
case "dismiss":
return "ไล่ออก";
case "other":
return "อื่นๆ";
default:
return "-";
}
};
const typeChangeName = (val: string) => {
switch (val) {
case "firstName":
return "เปลี่ยนชื่อ";
case "lastName":
return "เปลี่ยนนามสกุล";
case "all":
return "เปลี่ยนชื่อ-นามสกุล";
default:
return "-";
}
};
const statusLeave = (val: string) => {
switch (val) {
case "waitting":
return "รออนุมัติ";
case "reject":
return "ไม่ผ่านการอนุมัติ";
case "approve":
return "ผ่านการอนุมัติ";
case "cancel":
return "ยกเลิก";
default:
return "-";
}
};
return {
calAge,
date2Thai,
@ -631,5 +682,8 @@ export const useCounterMixin = defineStore("mixin", () => {
messageError,
showLoader,
hideLoader,
typeRetire,
typeChangeName,
statusLeave,
};
});