Merge branch 'develop'
This commit is contained in:
commit
eb035082f1
8 changed files with 24 additions and 19 deletions
|
|
@ -31,22 +31,19 @@ const idInboxActive = ref<string>(); // Id ข้อความที่เล
|
||||||
const filteredItems = computed(() => {
|
const filteredItems = computed(() => {
|
||||||
const isOfficer = dataStore.officerType === "OFFICER";
|
const isOfficer = dataStore.officerType === "OFFICER";
|
||||||
const conditions: Record<string, boolean> = {
|
const conditions: Record<string, boolean> = {
|
||||||
"ทดลองปฏิบัติหน้าที่ราชการ": dataStore.isProbation,
|
ทดลองปฏิบัติหน้าที่ราชการ: dataStore.isProbation,
|
||||||
"ประเมินบุคคล": isOfficer,
|
ประเมินบุคคล: isOfficer,
|
||||||
"ผลงาน": isOfficer,
|
ผลงาน: isOfficer,
|
||||||
"ขอโอน": isOfficer,
|
ขอโอน: isOfficer,
|
||||||
"ผู้ขอรับการประเมิน (KPI)": isOfficer,
|
"ผู้ขอรับการประเมิน (KPI)": isOfficer,
|
||||||
"ผู้ประเมิน (KPI)": isOfficer,
|
"ผู้ประเมิน (KPI)": isOfficer,
|
||||||
"ทุนการศึกษา/ฝึกอบรม": isOfficer,
|
"ทุนการศึกษา/ฝึกอบรม": isOfficer,
|
||||||
"การพัฒนารายบุคคล": isOfficer,
|
การพัฒนารายบุคคล: isOfficer,
|
||||||
};
|
};
|
||||||
|
|
||||||
return items.value.filter(
|
return items.value.filter((item) => conditions[item.title] ?? true);
|
||||||
(item) => conditions[item.title] ?? true
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const items = ref<MenuMainList[]>([
|
const items = ref<MenuMainList[]>([
|
||||||
{
|
{
|
||||||
icon: "mdi-account-group-outline",
|
icon: "mdi-account-group-outline",
|
||||||
|
|
@ -98,7 +95,7 @@ const items = ref<MenuMainList[]>([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: "mdi-scale-balance",
|
icon: "mdi-scale-balance",
|
||||||
title: "อุทธรณ์ร้องทุกข์",
|
title: "อุทธรณ์/ร้องทุกข์",
|
||||||
sub: "ทำเรื่องขออุทธรณ์ หรือร้องทุกข์",
|
sub: "ทำเรื่องขออุทธรณ์ หรือร้องทุกข์",
|
||||||
color: "green-3",
|
color: "green-3",
|
||||||
path: "/appeal-complain",
|
path: "/appeal-complain",
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,10 @@ export const useTransferDataStore = defineStore("transfer", () => {
|
||||||
return "ไม่อนุมัติ";
|
return "ไม่อนุมัติ";
|
||||||
case "REPORT":
|
case "REPORT":
|
||||||
return "ส่งรายชื่อไปออกคำสั่ง";
|
return "ส่งรายชื่อไปออกคำสั่ง";
|
||||||
|
case "WAITING":
|
||||||
|
return "รอออกคำสั่ง";
|
||||||
case "DONE":
|
case "DONE":
|
||||||
return "ออกคำสั่งเสร็จแล้ว";
|
return "ออกคำสั่งเสร็จแล้ว";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "-";
|
return "-";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ export const useRestDataStore = defineStore("Rest", () => {
|
||||||
return "ไม่อนุมัติ";
|
return "ไม่อนุมัติ";
|
||||||
case "REPORT":
|
case "REPORT":
|
||||||
return "ส่งรายชื่อไปออกคำสั่ง";
|
return "ส่งรายชื่อไปออกคำสั่ง";
|
||||||
|
case "WAITING":
|
||||||
|
return "รอออกคำสั่ง";
|
||||||
case "DONE":
|
case "DONE":
|
||||||
return "ออกคำสั่งเสร็จแล้ว";
|
return "ออกคำสั่งเสร็จแล้ว";
|
||||||
case "DONECANCEL":
|
case "DONECANCEL":
|
||||||
|
|
|
||||||
|
|
@ -269,7 +269,7 @@ async function fetchDataDetail(id: string) {
|
||||||
formData.dear = data.dear ?? "-";
|
formData.dear = data.dear ?? "-";
|
||||||
checkLeaveType(
|
checkLeaveType(
|
||||||
formData.leaveTypeId,
|
formData.leaveTypeId,
|
||||||
data.hajjDayStatus,
|
formData.ordainDayLocationName,
|
||||||
formData.studyDayTrainingSubject
|
formData.studyDayTrainingSubject
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
|
@ -289,7 +289,7 @@ async function fetchDataDetail(id: string) {
|
||||||
*/
|
*/
|
||||||
function checkLeaveType(
|
function checkLeaveType(
|
||||||
leaveTypeId: string,
|
leaveTypeId: string,
|
||||||
hajjDayStatus: boolean,
|
ordainDayLocationName: string,
|
||||||
studyDayTrainingSubject: string
|
studyDayTrainingSubject: string
|
||||||
) {
|
) {
|
||||||
if (props.leaveType) {
|
if (props.leaveType) {
|
||||||
|
|
@ -301,9 +301,9 @@ function checkLeaveType(
|
||||||
checkForm.value = "FormChildbirth";
|
checkForm.value = "FormChildbirth";
|
||||||
} else if (type === "LV-005") {
|
} else if (type === "LV-005") {
|
||||||
checkForm.value = "FormHoliday";
|
checkForm.value = "FormHoliday";
|
||||||
} else if (type === "LV-006" && hajjDayStatus === true) {
|
} else if (type === "LV-006" && ordainDayLocationName === "") {
|
||||||
checkForm.value = "FormHajj";
|
checkForm.value = "FormHajj";
|
||||||
} else if (type === "LV-006" && hajjDayStatus === false) {
|
} else if (type === "LV-006") {
|
||||||
checkForm.value = "FormUpasom";
|
checkForm.value = "FormUpasom";
|
||||||
} else if (type === "LV-007") {
|
} else if (type === "LV-007") {
|
||||||
checkForm.value = "FormCheckSelect";
|
checkForm.value = "FormCheckSelect";
|
||||||
|
|
|
||||||
|
|
@ -154,9 +154,11 @@ function convert(val: any) {
|
||||||
);
|
);
|
||||||
const type = filtertype?.code;
|
const type = filtertype?.code;
|
||||||
if (type == "LV-006" && val.hajjDayStatus == false) {
|
if (type == "LV-006" && val.hajjDayStatus == false) {
|
||||||
return "ลาอุปสมบท";
|
return "ลาอุปสมบทหรือการลาประกอบพิธีฮัจญ์ฯ";
|
||||||
|
// return "ลาอุปสมบท"; รอ API
|
||||||
} else if (type == "LV-006" && val.hajjDayStatus == true) {
|
} else if (type == "LV-006" && val.hajjDayStatus == true) {
|
||||||
return "ลาประกอบพิธีฮัจญ์";
|
return "ลาอุปสมบทหรือการลาประกอบพิธีฮัจญ์ฯ";
|
||||||
|
// return "ลาประกอบพิธีฮัจญ์"; รอ API
|
||||||
} else {
|
} else {
|
||||||
return val.leaveTypeName;
|
return val.leaveTypeName;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -338,7 +338,8 @@ function getCommander() {
|
||||||
formCommand.commanderAbovePosition = data.commanderAbovePosition;
|
formCommand.commanderAbovePosition = data.commanderAbovePosition;
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
console.log(e);
|
||||||
|
// messageError($q, e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/** callback function */
|
/** callback function */
|
||||||
|
|
|
||||||
|
|
@ -252,7 +252,7 @@ onMounted(async () => {
|
||||||
class="q-mr-sm"
|
class="q-mr-sm"
|
||||||
@click="clickBack"
|
@click="clickBack"
|
||||||
/>
|
/>
|
||||||
อุทธรณ์ร้องทุกข์
|
อุทธรณ์/ร้องทุกข์
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<q-card bordered class="q-pa-md">
|
<q-card bordered class="q-pa-md">
|
||||||
|
|
|
||||||
|
|
@ -188,6 +188,8 @@ function statusText(val: string) {
|
||||||
return "ไม่อนุมัติ";
|
return "ไม่อนุมัติ";
|
||||||
case "REPORT":
|
case "REPORT":
|
||||||
return "ส่งรายชื่อไปออกคำสั่ง";
|
return "ส่งรายชื่อไปออกคำสั่ง";
|
||||||
|
case "WAITING":
|
||||||
|
return "รอออกคำสั่ง";
|
||||||
case "DONE":
|
case "DONE":
|
||||||
return "ออกคำสั่งเสร็จแล้ว";
|
return "ออกคำสั่งเสร็จแล้ว";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue