2023-12-14 10:43:13 +07:00
|
|
|
<script setup lang="ts">
|
2024-01-12 13:38:04 +07:00
|
|
|
import { onMounted, ref, watch, computed } from "vue";
|
2023-12-14 10:43:13 +07:00
|
|
|
import { useQuasar } from "quasar";
|
2024-12-13 15:24:00 +07:00
|
|
|
import { useRouter, useRoute } from "vue-router";
|
2024-08-09 10:57:07 +07:00
|
|
|
import { checkPermission } from "@/utils/permissions";
|
2024-12-13 15:24:00 +07:00
|
|
|
import genReportXLSX from "@/plugins/genreportxlsx";
|
|
|
|
|
|
2023-12-14 10:43:13 +07:00
|
|
|
import http from "@/plugins/http";
|
|
|
|
|
import config from "@/app.config";
|
2025-09-30 15:30:30 +07:00
|
|
|
import { usePagination } from "@/composables/usePagination";
|
2023-12-14 10:43:13 +07:00
|
|
|
|
2024-01-15 10:07:03 +07:00
|
|
|
/** importType*/
|
2024-12-13 15:24:00 +07:00
|
|
|
import type {
|
|
|
|
|
OptionStatus,
|
|
|
|
|
DataOption,
|
|
|
|
|
ResOrg,
|
|
|
|
|
} from "@/modules/12_evaluatePersonal/interface/index/Main";
|
2024-01-12 13:38:04 +07:00
|
|
|
|
2024-01-11 13:26:46 +07:00
|
|
|
/** importStore*/
|
2023-12-14 10:43:13 +07:00
|
|
|
import { useCounterMixin } from "@/stores/mixin";
|
2023-12-15 13:30:39 +07:00
|
|
|
import { useEvalutuonStore } from "@/modules/12_evaluatePersonal/store/Evaluate";
|
2023-12-14 10:43:13 +07:00
|
|
|
|
2024-12-13 15:24:00 +07:00
|
|
|
import DialogHeader from "@/components/DialogHeader.vue";
|
|
|
|
|
|
2024-01-11 13:26:46 +07:00
|
|
|
/** use*/
|
|
|
|
|
const $q = useQuasar();
|
2023-12-14 10:43:13 +07:00
|
|
|
const router = useRouter();
|
2024-12-13 15:24:00 +07:00
|
|
|
const route = useRoute();
|
2023-12-14 10:43:13 +07:00
|
|
|
const mixin = useCounterMixin();
|
2023-12-14 11:31:12 +07:00
|
|
|
const store = useEvalutuonStore();
|
2023-12-14 10:43:13 +07:00
|
|
|
const { showLoader, hideLoader, messageError } = mixin;
|
2025-09-30 15:30:30 +07:00
|
|
|
const { pagination, params, onRequest } = usePagination("", fetchEvaluteList);
|
2023-12-14 10:43:13 +07:00
|
|
|
|
2024-01-15 10:07:03 +07:00
|
|
|
/** request body*/
|
2024-12-13 15:24:00 +07:00
|
|
|
const organization = ref<string>("");
|
|
|
|
|
const organizationOpsMain = ref<DataOption[]>([]);
|
|
|
|
|
const organizationOps = ref<DataOption[]>([]);
|
|
|
|
|
|
|
|
|
|
const year = ref<number>(new Date().getFullYear());
|
|
|
|
|
const modalReport = ref<boolean>(false); //ตัวแปร popup report
|
|
|
|
|
const loadingBtn = ref<boolean>(false); //ตัวแปร popup report
|
2024-09-20 13:13:43 +07:00
|
|
|
const filter = ref<string>(""); //คำค้นหา
|
2025-04-08 18:08:03 +07:00
|
|
|
|
2024-09-20 13:13:43 +07:00
|
|
|
//ค้นหาตามสถานะ
|
|
|
|
|
const selectedStatus = ref<string[]>([
|
|
|
|
|
"CHECK_SPEC",
|
|
|
|
|
"PREPARE_DOC_V1",
|
|
|
|
|
"CHECK_DOC_V1",
|
|
|
|
|
"WAIT_CHECK_DOC_V1",
|
|
|
|
|
"ANNOUNCE_WEB",
|
|
|
|
|
"PREPARE_DOC_V2",
|
|
|
|
|
"WAIT_CHECK_DOC_V2",
|
|
|
|
|
"CHECK_DOC_V2",
|
|
|
|
|
]);
|
|
|
|
|
//ข้อมูลค้นหาตามสถานะ
|
|
|
|
|
const optionsMain = ref<OptionStatus[]>([
|
|
|
|
|
{ val: "CHECK_SPEC", label: "ตรวจสอบคุณสมบัติด้วยตนเอง" },
|
|
|
|
|
{ val: "PREPARE_DOC_V1", label: "จัดเตรียมเอกสารเล่ม 1" },
|
|
|
|
|
{ val: "CHECK_DOC_V1", label: "ตรวจสอบเอกสารเล่ม 1" },
|
|
|
|
|
{ val: "WAIT_CHECK_DOC_V1", label: "รอตรวจสอบคุณสมบัติ" },
|
|
|
|
|
{ val: "ANNOUNCE_WEB", label: "ประกาศบนเว็บไซต์" },
|
|
|
|
|
{ val: "PREPARE_DOC_V2", label: "จัดเตรียมเอกสารเล่ม 2" },
|
|
|
|
|
{ val: "WAIT_CHECK_DOC_V2", label: "ตรวจสอบเอกสารเล่ม 2" },
|
|
|
|
|
{ val: "CHECK_DOC_V2", label: "รอพิจารณาผลการประเมิน" },
|
|
|
|
|
{ val: "DONE", label: "เสร็จสิ้น" },
|
|
|
|
|
]);
|
|
|
|
|
const options = ref<OptionStatus[]>([]); //ตัวเลือกค้นหาตามสถานะ
|
2023-12-27 10:39:58 +07:00
|
|
|
|
2025-09-30 15:30:30 +07:00
|
|
|
/** ชื่อค่าที่ค้นหาสภานะ*/
|
|
|
|
|
const label = computed(() => {
|
|
|
|
|
const filterOption = optionsMain.value.filter((option) =>
|
|
|
|
|
selectedStatus.value.includes(option.val)
|
|
|
|
|
);
|
|
|
|
|
const labelval = filterOption.map((e) => e.label);
|
|
|
|
|
if (labelval.length !== 0) {
|
|
|
|
|
return labelval.length <= 2
|
|
|
|
|
? `${labelval.slice(0, 2).join(", ")}`
|
|
|
|
|
: `${labelval.slice(0, 2).join(", ")}, อื่นๆ (${labelval.length - 2})`;
|
|
|
|
|
} else return "";
|
2023-12-20 12:43:08 +07:00
|
|
|
});
|
|
|
|
|
|
2025-09-30 15:30:30 +07:00
|
|
|
/** function ค้นหาตาม keyword*/
|
2023-12-21 11:58:37 +07:00
|
|
|
function filterFn() {
|
2025-09-30 15:30:30 +07:00
|
|
|
pagination.value.page = 1;
|
2024-01-11 13:26:46 +07:00
|
|
|
fetchEvaluteList();
|
2023-12-21 11:58:37 +07:00
|
|
|
}
|
2024-01-11 13:26:46 +07:00
|
|
|
|
2025-09-30 15:30:30 +07:00
|
|
|
/** function เรียกรายการคำขอประเมิน*/
|
2024-01-11 13:26:46 +07:00
|
|
|
async function fetchEvaluteList() {
|
2024-01-15 10:07:03 +07:00
|
|
|
showLoader();
|
2024-01-12 13:38:04 +07:00
|
|
|
const body = {
|
2025-09-30 15:30:30 +07:00
|
|
|
...params.value,
|
2024-12-02 15:12:53 +07:00
|
|
|
keyword: filter.value.trim(),
|
2024-01-12 13:38:04 +07:00
|
|
|
status: selectedStatus.value,
|
|
|
|
|
};
|
2024-01-11 13:26:46 +07:00
|
|
|
await http
|
2024-08-23 12:30:20 +07:00
|
|
|
.post(config.API.evaluationMain(), body)
|
2023-12-25 18:51:07 +07:00
|
|
|
.then(async (res) => {
|
2025-09-30 15:30:30 +07:00
|
|
|
const result = res.data.result;
|
|
|
|
|
pagination.value.rowsNumber = result.total;
|
|
|
|
|
store.fetchData(result.data);
|
2023-12-20 12:43:08 +07:00
|
|
|
})
|
|
|
|
|
.catch((e) => {
|
2024-01-15 10:07:03 +07:00
|
|
|
messageError($q, e);
|
2023-12-20 12:43:08 +07:00
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
hideLoader();
|
|
|
|
|
});
|
|
|
|
|
}
|
2023-12-14 10:43:13 +07:00
|
|
|
|
2024-01-11 13:26:46 +07:00
|
|
|
/**
|
|
|
|
|
* funcition redirectToDetail
|
|
|
|
|
* @param id รายการคำขอประเมิน
|
2023-12-14 10:43:13 +07:00
|
|
|
*/
|
2025-04-08 18:08:03 +07:00
|
|
|
function Detailpage(id: string, type: string) {
|
|
|
|
|
//เชี่ยวชาญ
|
|
|
|
|
if (type === "EXPERTISE") {
|
|
|
|
|
router.push(`/evaluate/detail-expertise/${id}`);
|
|
|
|
|
} else {
|
|
|
|
|
router.push(`/evaluate/detail/${id}`);
|
|
|
|
|
}
|
2024-01-11 13:26:46 +07:00
|
|
|
}
|
|
|
|
|
|
2024-01-12 13:38:04 +07:00
|
|
|
/**
|
|
|
|
|
* function ต้นหาข้อมูลของ Option
|
|
|
|
|
* @param val ค่าที่ต้องการฟิลเตอร์
|
|
|
|
|
* @param update อัพเดทค่า
|
|
|
|
|
* @param refData ดาต้าที่ต้องการฟิลเตอร์
|
|
|
|
|
*/
|
2024-09-20 13:13:43 +07:00
|
|
|
function filterOption(val: string, update: Function) {
|
2024-01-12 13:38:04 +07:00
|
|
|
update(() => {
|
|
|
|
|
options.value = optionsMain.value.filter(
|
2024-09-20 13:13:43 +07:00
|
|
|
(v: OptionStatus) => v.label.indexOf(val) > -1
|
2024-01-12 13:38:04 +07:00
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-13 15:24:00 +07:00
|
|
|
/** เปิด popup reort */
|
|
|
|
|
function onReport() {
|
|
|
|
|
modalReport.value = true;
|
|
|
|
|
if (organizationOpsMain.value.length == 0) {
|
|
|
|
|
getActiveId();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function closeDialog() {
|
|
|
|
|
modalReport.value = false;
|
|
|
|
|
organization.value = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function getReport() {
|
|
|
|
|
loadingBtn.value = true;
|
|
|
|
|
await http
|
|
|
|
|
.get(
|
|
|
|
|
config.API.evaluationReport +
|
|
|
|
|
`?year=${year.value + 543}&rootId=${organization.value}`
|
|
|
|
|
)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
const data = res.data.result;
|
|
|
|
|
const org = organizationOpsMain.value.find((item: DataOption) => {
|
|
|
|
|
item.id == organization.value;
|
|
|
|
|
});
|
|
|
|
|
genReportXLSX(
|
|
|
|
|
data,
|
|
|
|
|
org
|
|
|
|
|
? `รายงานสรุปจำนวนผลงานการประเมิน_${org.name ? org.name : "ทั้งหมด"}`
|
|
|
|
|
: "รายงานสรุปจำนวนผลงานการประเมิน",
|
|
|
|
|
"pdf"
|
|
|
|
|
);
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
messageError($q, err);
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
loadingBtn.value = false;
|
|
|
|
|
}, 500);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-30 15:30:30 +07:00
|
|
|
/** function fetch ข้อมูลโครงสร้างปัจจุบัน*/
|
2024-12-13 15:24:00 +07:00
|
|
|
async function getActiveId() {
|
|
|
|
|
showLoader();
|
|
|
|
|
await http
|
|
|
|
|
.get(config.API.activeOrganization)
|
|
|
|
|
.then(async (res) => {
|
|
|
|
|
const data = await res.data.result;
|
|
|
|
|
if (data) {
|
|
|
|
|
await http
|
|
|
|
|
.get(
|
|
|
|
|
config.API.orgByIdSystem(data.activeId, route.meta.Key as string)
|
|
|
|
|
)
|
|
|
|
|
.then(async (res) => {
|
|
|
|
|
const data = await res.data.result.map((item: ResOrg) => ({
|
2025-03-17 10:59:06 +07:00
|
|
|
id: item.orgTreeDnaId,
|
2024-12-13 15:24:00 +07:00
|
|
|
name: item.orgName,
|
|
|
|
|
}));
|
|
|
|
|
organizationOpsMain.value = data;
|
|
|
|
|
hideLoader();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((e) => {
|
|
|
|
|
messageError($q, e);
|
|
|
|
|
hideLoader();
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* function ค้นหาคำใน select
|
|
|
|
|
* @param val คำค้นหา
|
|
|
|
|
* @param update function
|
|
|
|
|
* @param type ประเภท select
|
|
|
|
|
*/
|
|
|
|
|
function filterSelector(val: string, update: Function) {
|
|
|
|
|
update(() => {
|
|
|
|
|
organizationOps.value = organizationOpsMain.value.filter(
|
|
|
|
|
(v: DataOption) => v.name.toLowerCase().indexOf(val) > -1
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-11 13:26:46 +07:00
|
|
|
/** HookLifecycle */
|
2023-12-14 19:39:58 +07:00
|
|
|
onMounted(async () => {
|
2024-01-11 13:26:46 +07:00
|
|
|
await fetchEvaluteList(); // เรียกข้อมูลรายการปรัเมิน
|
2023-12-14 19:39:58 +07:00
|
|
|
});
|
2023-12-14 10:43:13 +07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="toptitle text-dark col-12 row items-center">
|
|
|
|
|
รายการคำขอประเมิน
|
|
|
|
|
</div>
|
2024-09-20 13:13:43 +07:00
|
|
|
|
2023-12-14 10:43:13 +07:00
|
|
|
<q-card flat bordered class="col-12 q-mt-sm q-pt-sm q-pa-md">
|
2023-12-21 11:58:37 +07:00
|
|
|
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
2024-01-12 13:38:04 +07:00
|
|
|
<q-select
|
|
|
|
|
dense
|
|
|
|
|
outlined
|
|
|
|
|
multiple
|
|
|
|
|
v-model="selectedStatus"
|
|
|
|
|
emit-value
|
|
|
|
|
map-options
|
|
|
|
|
:options="options"
|
|
|
|
|
option-value="val"
|
|
|
|
|
label="ค้นหาสถานะ"
|
2024-01-12 14:11:11 +07:00
|
|
|
style="width: 35vw"
|
2024-01-12 13:38:04 +07:00
|
|
|
@update:model-value="fetchEvaluteList"
|
|
|
|
|
use-input
|
2024-09-20 13:13:43 +07:00
|
|
|
@filter="(inputValue:string,doneFn:Function) => filterOption(inputValue, doneFn) "
|
2024-01-12 13:38:04 +07:00
|
|
|
>
|
|
|
|
|
<template v-slot:selected>
|
|
|
|
|
<div>
|
|
|
|
|
{{ label }}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:no-option>
|
|
|
|
|
<q-item>
|
|
|
|
|
<q-item-section class="text-grey"> ไม่มีข้อมูล </q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</template>
|
|
|
|
|
</q-select>
|
|
|
|
|
|
2023-12-21 11:58:37 +07:00
|
|
|
<q-space />
|
2024-12-13 15:24:00 +07:00
|
|
|
<div>
|
|
|
|
|
<q-btn flat icon="download" round color="primary" @click="onReport">
|
|
|
|
|
<q-tooltip>รายงานสรุปจำนวนผลงานการประเมิน</q-tooltip>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</div>
|
2023-12-21 11:58:37 +07:00
|
|
|
<q-input
|
|
|
|
|
class="col-xs-12 col-sm-3 col-md-2"
|
|
|
|
|
id="filterTable"
|
|
|
|
|
for="filterTable"
|
|
|
|
|
dense
|
|
|
|
|
outlined
|
|
|
|
|
v-model="filter"
|
|
|
|
|
label="ค้นหา"
|
|
|
|
|
@keydown.enter.prevent="filterFn"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:append>
|
2024-12-03 17:50:00 +07:00
|
|
|
<q-icon name="search" />
|
2023-12-21 11:58:37 +07:00
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
|
|
|
|
|
<q-select
|
|
|
|
|
id="visibleColumns"
|
|
|
|
|
for="visibleColumns"
|
|
|
|
|
v-model="store.visibleColumns"
|
|
|
|
|
multiple
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
options-dense
|
|
|
|
|
:display-value="$q.lang.table.columns"
|
|
|
|
|
emit-value
|
|
|
|
|
map-options
|
|
|
|
|
:options="store.columns"
|
|
|
|
|
option-value="name"
|
2024-11-05 16:33:46 +07:00
|
|
|
style="min-width: 140px"
|
2023-12-21 11:58:37 +07:00
|
|
|
class="col-xs-12 col-sm-3 col-md-2"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2023-12-14 10:43:13 +07:00
|
|
|
<div>
|
2025-09-30 15:30:30 +07:00
|
|
|
<p-table
|
2023-12-20 13:50:54 +07:00
|
|
|
ref="table"
|
2023-12-14 10:43:13 +07:00
|
|
|
:columns="store.columns"
|
2023-12-20 13:50:54 +07:00
|
|
|
:rows="store.rows"
|
2025-09-30 15:30:30 +07:00
|
|
|
row-key="id"
|
2023-12-20 13:50:54 +07:00
|
|
|
flat
|
|
|
|
|
bordered
|
2023-12-27 10:39:58 +07:00
|
|
|
:paging="false"
|
2023-12-20 13:50:54 +07:00
|
|
|
dense
|
|
|
|
|
class="custom-header-table"
|
|
|
|
|
:visible-columns="store.visibleColumns"
|
2024-04-26 13:22:32 +07:00
|
|
|
:rows-per-page-options="[10, 25, 50, 100]"
|
2025-09-30 15:30:30 +07:00
|
|
|
v-model:pagination="pagination"
|
|
|
|
|
@request="onRequest"
|
2023-12-14 10:43:13 +07:00
|
|
|
>
|
2023-12-20 13:50:54 +07:00
|
|
|
<template v-slot:header="props">
|
|
|
|
|
<q-tr :props="props">
|
2024-08-09 10:57:07 +07:00
|
|
|
<q-th auto-width />
|
2023-12-25 18:51:07 +07:00
|
|
|
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
2023-12-20 13:50:54 +07:00
|
|
|
<span class="text-weight-medium">{{ col.label }}</span>
|
|
|
|
|
</q-th>
|
|
|
|
|
</q-tr>
|
|
|
|
|
</template>
|
2025-09-30 15:30:30 +07:00
|
|
|
|
2023-12-20 13:50:54 +07:00
|
|
|
<template v-slot:body="props">
|
2024-08-09 10:57:07 +07:00
|
|
|
<q-tr :props="props">
|
|
|
|
|
<q-td auto-width>
|
|
|
|
|
<q-btn
|
|
|
|
|
v-if="checkPermission($route)?.attrIsGet"
|
|
|
|
|
flat
|
|
|
|
|
dense
|
|
|
|
|
round
|
|
|
|
|
color="info"
|
|
|
|
|
icon="mdi-eye"
|
2025-04-08 18:08:03 +07:00
|
|
|
@click.stop.prevent="Detailpage(props.row.id, props.row.type)"
|
2024-08-09 10:57:07 +07:00
|
|
|
>
|
|
|
|
|
<q-tooltip>รายละเอียด</q-tooltip>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-td>
|
|
|
|
|
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
2023-12-14 10:43:13 +07:00
|
|
|
<div v-if="col.name == 'no'">
|
2025-09-30 15:30:30 +07:00
|
|
|
{{ props.rowIndex + 1 }}
|
2023-12-14 10:43:13 +07:00
|
|
|
</div>
|
2024-01-17 11:19:29 +07:00
|
|
|
|
|
|
|
|
<div v-else-if="col.name === 'agency'">
|
2025-04-28 11:08:19 +07:00
|
|
|
<div class="text-html">
|
|
|
|
|
{{ !props.row.agency ? "-" : props.row.agency }}
|
|
|
|
|
</div>
|
2024-01-17 11:19:29 +07:00
|
|
|
</div>
|
2023-12-14 10:43:13 +07:00
|
|
|
<div v-else>
|
2025-04-28 11:08:19 +07:00
|
|
|
{{ !col.value ? "-" : col.value }}
|
2023-12-14 10:43:13 +07:00
|
|
|
</div>
|
|
|
|
|
</q-td>
|
|
|
|
|
</q-tr>
|
|
|
|
|
</template>
|
2025-09-30 15:30:30 +07:00
|
|
|
</p-table>
|
2023-12-14 10:43:13 +07:00
|
|
|
</div>
|
|
|
|
|
</q-card>
|
2024-12-13 15:24:00 +07:00
|
|
|
|
|
|
|
|
<q-dialog v-model="modalReport" persistent>
|
|
|
|
|
<q-card class="col-12" style="width: 40%">
|
|
|
|
|
<DialogHeader
|
|
|
|
|
tittle="รายงานสรุปจำนวนผลงานการประเมิน
|
|
|
|
|
"
|
|
|
|
|
:close="closeDialog"
|
|
|
|
|
/>
|
|
|
|
|
<q-separator />
|
|
|
|
|
<q-card-section>
|
|
|
|
|
<div class="column q-gutter-y-sm">
|
|
|
|
|
<datepicker
|
|
|
|
|
menu-class-name="modalfix"
|
|
|
|
|
v-model="year"
|
|
|
|
|
:locale="'th'"
|
|
|
|
|
autoApply
|
|
|
|
|
year-picker
|
|
|
|
|
:enableTimePicker="false"
|
|
|
|
|
>
|
|
|
|
|
<template #year="{ year }">{{ year + 543 }}</template>
|
|
|
|
|
<template #year-overlay-value="{ value }">{{
|
|
|
|
|
parseInt(value + 543)
|
|
|
|
|
}}</template>
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<q-input
|
|
|
|
|
dense
|
|
|
|
|
outlined
|
|
|
|
|
:model-value="year === 0 ? 'ทั้งหมด' : Number(year) + 543"
|
|
|
|
|
:label="`${'ปีงบประมาณ'}`"
|
|
|
|
|
bg-color="white"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="event"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
style="color: var(--q-primary)"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</template>
|
|
|
|
|
</datepicker>
|
|
|
|
|
|
|
|
|
|
<q-select
|
|
|
|
|
class="bg-white"
|
|
|
|
|
style="min-width: 100px"
|
|
|
|
|
dense
|
|
|
|
|
hide-selected
|
|
|
|
|
fill-input
|
|
|
|
|
hide-bottom-space
|
|
|
|
|
outlined
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
emit-value
|
|
|
|
|
map-options
|
|
|
|
|
v-model="organization"
|
|
|
|
|
:options="organizationOps"
|
|
|
|
|
label="หน่วยงาน"
|
|
|
|
|
use-input
|
|
|
|
|
@filter="(inputValue: string,
|
|
|
|
|
|
|
|
|
|
doneFn: Function) => filterSelector(inputValue, doneFn )"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:no-option>
|
|
|
|
|
<q-item>
|
|
|
|
|
<q-item-section class="text-grey"> ไม่มีข้อมูล </q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</template></q-select
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</q-card-section>
|
|
|
|
|
<q-separator />
|
|
|
|
|
<q-card-actions align="right" class="q-ma-xs">
|
|
|
|
|
<q-btn
|
|
|
|
|
:loading="loadingBtn"
|
|
|
|
|
:disable="loadingBtn"
|
|
|
|
|
color="primary"
|
|
|
|
|
icon="download"
|
|
|
|
|
label="ดาวน์โหลดรายงาน"
|
|
|
|
|
@click="getReport"
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
>
|
|
|
|
|
<q-tooltip>ดาวน์โหลดรายงาน</q-tooltip>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-card-actions>
|
|
|
|
|
</q-card>
|
|
|
|
|
</q-dialog>
|
2023-12-14 10:43:13 +07:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style></style>
|