Merge branch 'develop' into dev-tee

This commit is contained in:
setthawutttty 2023-10-12 10:44:03 +07:00
commit 26ff227bdc
11 changed files with 52 additions and 48 deletions

View file

@ -14,10 +14,10 @@
<div class="text-black text-bold q-pl-sm">{{ examNumber }}</div>
</div>
<div class="row">
<div class="">เลขทสอบ :</div>
<div class="">สนามสอบ :</div>
<div class="text-black text-bold q-pl-sm">{{ examSeat }}</div>
</div>
<div class="row">
<!-- <div class="row">
<div class="">นสอบ :</div>
<div class="text-black text-bold q-pl-sm">5 .. 2566</div>
</div>
@ -28,7 +28,7 @@
<div class="row">
<div class="">ดขอสอบ :</div>
<div class="text-black text-bold q-pl-sm">0506-1/2566</div>
</div>
</div> -->
</div>
<q-card-section class="col-3">

View file

@ -81,7 +81,7 @@
attrs.rows.filter((r) => r.status == 'checkRegister').length == 0
"
>
<q-tooltip>ตรวจสอบขอม</q-tooltip>
<q-tooltip>ตรวจสอบขอม/ไดบใบสมครแล</q-tooltip>
</q-btn>
</div>
<div>

View file

@ -76,7 +76,7 @@
checked-icon="task_alt"
unchecked-icon="panorama_fish_eye"
val="1"
label="ผ่านการตรวจสอบคุณสมบัติ"
label="ผ่านการตรวจสอบคุณสมบัติ/กดรับใบสมัคร"
class="col-12"
@update:modelValue="reason = ''"
/>

View file

@ -27,7 +27,7 @@
{{ props.rowIndex + 1 }}
</div>
<div v-else-if="col.name == 'yearly'">
{{ col.value + 543 }}
{{ props.row.round }}/{{ col.value + 543 }}
</div>
<div
v-else-if="
@ -96,7 +96,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "yearly",
align: "left",
label: "ปีงบประมาณ",
label: "รอบ/ปีงบประมาณ",
sortable: true,
field: "yearly",
headerStyle: "font-size: 14px",

View file

@ -228,7 +228,7 @@
checked-icon="task_alt"
unchecked-icon="panorama_fish_eye"
val="1"
label="ผ่านการตรวจสอบคุณสมบัติ"
label="ผ่านการตรวจสอบคุณสมบัติ/กดรับใบสมัคร"
dense
class="col-12"
@update:modelValue="reason = ''"

View file

@ -31,7 +31,7 @@
{{ props.rowIndex + 1 }}
</div>
<div v-else-if="col.name == 'yearly'" class="table_ellipsis2">
{{ col.value + 543 }}
{{ props.row.round }}/{{ col.value + 543 }}
</div>
<div
v-else-if="
@ -147,7 +147,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "yearly",
align: "center",
label: "ปีงบประมาณ",
label: "รอบ/ปีงบประมาณ",
sortable: true,
field: "yearly",
headerStyle: "font-size: 14px",

File diff suppressed because one or more lines are too long

View file

@ -282,7 +282,7 @@ const optionsStatus = ref<any>([
},
{
id: "checkRegister",
name: "ตรวจสอบข้อมูลสมัครสอบ",
name: "รอกดรับใบสมัคร",
},
{
id: "payment",
@ -298,11 +298,11 @@ const optionsStatus = ref<any>([
},
{
id: "checkSeat",
name: "จัดที่นั่งสอบ",
name: "กดรับใบสมัครแล้ว",
},
{
id: "checkPoint",
name: "สรุปคะแนนสอบ",
name: "รอสรุปคะแนนสอบ",
},
{
id: "done",
@ -554,7 +554,7 @@ const fetchDataSummary = async () => {
};
/**
* สรปคะแนนสอบ
* รอสรปคะแนนสอบ
*/
const clickPointRow = async (row: any) => {
candidateId.value = row.id;
@ -574,7 +574,7 @@ const statusCandidate = (status: string) => {
case "register":
return "ยังไม่สมัครสอบ";
case "checkRegister":
return "ตรวจสอบข้อมูลสมัครสอบ";
return "รอกดรับใบสมัคร";
case "payment":
return "รอชำระค่าสมัครสอบ";
case "rejectRegister":
@ -584,9 +584,9 @@ const statusCandidate = (status: string) => {
case "rejectPayment":
return "หลักฐานชำระเงินไม่ถูกต้อง";
case "checkSeat":
return "จัดที่นั่งสอบ";
return "กดรับใบสมัครแล้ว";
case "checkPoint":
return "สรุปคะแนนสอบ";
return "รอสรุปคะแนนสอบ";
case "done":
return "คัดเลือกสำเร็จ";
case "waiver":

View file

@ -77,7 +77,7 @@ const currentAddress = reactive<AddressData>({
});
onMounted(async () => {
// await getNewData();
await getNewData();
emit("update:statusEdit", false);
});
@ -126,13 +126,13 @@ const filterSelector = (val: any, update: Function, refData: string) => {
const refreshData = async () => {
myform.value.reset();
await props.fetch();
// await props.fetch();
await fetchProvince();
// await getNewData();
await getNewData();
};
const getNewData = async () => {
await props.fetch();
// await props.fetch();
await fetchProvince();
};
@ -181,9 +181,9 @@ const editData = async () => {
.finally(async () => {
edit.value = false;
emit("update:statusEdit", false);
// await getNewData();
await props.fetch();
await fetchProvince();
await getNewData();
// await props.fetch();
// await fetchProvince();
});
};

View file

@ -143,19 +143,15 @@ const closeModal = () => {
//
const openModalOrder = () => {
console.log(filters.value);
openModal();
console.log("filters===>",filters.value)
const row = filters.value.filter(
(r: ResponseData) =>
(r.status == "WAITTING" ||
r.status == "PENDING" ||
r.status == "APPROVE") &&
r.createdAt &&
(r.status == "APPROVE") &&
r.organizationPositionOld &&
r.positionTypeOld &&
r.positionLevel &&
r.posNo &&
r.positionLevelOld &&
r.positionNumberOld &&
r.salary !== null &&
r.organization &&
r.date

View file

@ -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,