api เครื่องราช ส่วนจัดการ
This commit is contained in:
parent
5a0bf37501
commit
b15dd6205f
6 changed files with 94 additions and 46 deletions
|
|
@ -36,12 +36,7 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
{ id: '43', title: 'บัญชีระดับผลการประเมินผลการปฏิบัติราชการในรอบ 5 ปี' },
|
||||
{ id: '44', title: 'บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ' }
|
||||
])
|
||||
|
||||
|
||||
|
||||
const mainTab = ref<string | undefined>("pending");
|
||||
|
||||
|
||||
// เรียกราชชื่อการเสนอขอ
|
||||
const fetchData = async (data: any) => {
|
||||
if (data !== null) {
|
||||
|
|
@ -60,6 +55,8 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
dateSend: date2Thai(e.requestDate),
|
||||
requestNote: e.requestNote,
|
||||
employeeType: profileType(e.profileType),
|
||||
reason: e.reason
|
||||
|
||||
}));
|
||||
rows.value = await datalist;
|
||||
listinsignia.value = await datalist;
|
||||
|
|
@ -137,6 +134,17 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
return "ลูกจ้างประจำ";
|
||||
}
|
||||
};
|
||||
//แปลงสถานะ
|
||||
function convertStatus(val: string) {
|
||||
switch (val) {
|
||||
case "WAITTING":
|
||||
return "สร้างรอบ"
|
||||
case "PENDING":
|
||||
return "กำลังดำเนินการ"
|
||||
case "DONE":
|
||||
return "เสร็จสิ้น"
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
roundId,
|
||||
|
|
@ -159,5 +167,6 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
roleUser,
|
||||
requestStatus,
|
||||
optionReport,
|
||||
convertStatus
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue