เครื่องราชคิวรี่สำนัก
This commit is contained in:
parent
9a268f9d7a
commit
1b953851f1
1 changed files with 22 additions and 14 deletions
|
|
@ -32,12 +32,15 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
|
||||
//รางาน
|
||||
const optionReport = ref<OptionReport[]>([
|
||||
{ id: '45', title: "บัญชีรายชื่อข้าราชการผู้ขอพระราชทานเครื่องราชอิสริยาภรณ์" },
|
||||
{ id: '43', title: 'บัญชีระดับผลการประเมินผลการปฏิบัติราชการในรอบ 5 ปี' },
|
||||
{ id: '44', title: 'บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ' }
|
||||
])
|
||||
{
|
||||
id: "45",
|
||||
title: "บัญชีรายชื่อข้าราชการผู้ขอพระราชทานเครื่องราชอิสริยาภรณ์",
|
||||
},
|
||||
{ id: "43", title: "บัญชีระดับผลการประเมินผลการปฏิบัติราชการในรอบ 5 ปี" },
|
||||
{ id: "44", title: "บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ" },
|
||||
]);
|
||||
const mainTab = ref<string | undefined>("pending");
|
||||
const dataInsigniaType = ref<any>([])
|
||||
const dataInsigniaType = ref<any>([]);
|
||||
// เรียกราชชื่อการเสนอขอ
|
||||
const fetchData = async (data: any) => {
|
||||
if (data !== null) {
|
||||
|
|
@ -61,7 +64,12 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
markLeave: e.markLeave,
|
||||
markRate: e.markRate,
|
||||
isApprove: e.isApprove,
|
||||
statusMark: e.markDiscipline === true || e.markLeave === true || e.markRate === true ? true : false
|
||||
statusMark:
|
||||
e.markDiscipline === true ||
|
||||
e.markLeave === true ||
|
||||
e.markRate === true
|
||||
? true
|
||||
: false,
|
||||
}));
|
||||
rows.value = await datalist;
|
||||
listinsignia.value = await datalist;
|
||||
|
|
@ -79,7 +87,8 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
const fetchOption = (op: any) => {
|
||||
if (agency.value !== null) {
|
||||
typeOc.value = agency.value;
|
||||
optionsTypeOc.value = op.filter((e: any) => e.id == agency.value);
|
||||
optionsTypeOc.value = op;
|
||||
// .filter((e: any) => e.id == agency.value);
|
||||
} else {
|
||||
(optionsTypeOc.value = op), (typeOc.value = op[0].id);
|
||||
}
|
||||
|
|
@ -105,8 +114,8 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
};
|
||||
// ค้นหาข้อมมูลราชชื่อ ตาม ประเท๓และสถานภาพ
|
||||
const searchDataTable = async (type: string, employeeClasstype: string) => {
|
||||
typeinsignia.value = type
|
||||
employeeClass.value = employeeClasstype
|
||||
typeinsignia.value = type;
|
||||
employeeClass.value = employeeClasstype;
|
||||
if (type !== "all" && employeeClasstype !== "all") {
|
||||
rows.value = listinsignia.value.filter(
|
||||
(e: any) =>
|
||||
|
|
@ -127,7 +136,7 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
};
|
||||
// ประเภทเครื่องราช
|
||||
function fetchInsigniaType(data: any) {
|
||||
dataInsigniaType.value = data
|
||||
dataInsigniaType.value = data;
|
||||
}
|
||||
|
||||
// ประเภทลูกจ้าง
|
||||
|
|
@ -147,15 +156,14 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
function convertStatus(val: string) {
|
||||
switch (val) {
|
||||
case "WAITTING":
|
||||
return "สร้างรอบ"
|
||||
return "สร้างรอบ";
|
||||
case "PENDING":
|
||||
return "กำลังดำเนินการ"
|
||||
return "กำลังดำเนินการ";
|
||||
case "DONE":
|
||||
return "เสร็จสิ้น"
|
||||
return "เสร็จสิ้น";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
roundId,
|
||||
optionRound,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue