แก้ไข ขอโอน
This commit is contained in:
parent
6fbc73300c
commit
1dec63fddd
5 changed files with 447 additions and 117 deletions
|
|
@ -311,3 +311,29 @@ export const useProbationDataStore = defineStore("probationDataStore", () => {
|
|||
setStepOrder,
|
||||
};
|
||||
});
|
||||
|
||||
export const useTransferDataStore = defineStore("transferDataStore", () => {
|
||||
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