2025-07-17 14:46:20 +07:00
|
|
|
<script setup lang="ts">
|
2025-10-09 10:08:46 +07:00
|
|
|
import { ref, watchEffect } from "vue";
|
2025-07-17 14:46:20 +07:00
|
|
|
import { useRoute } from "vue-router";
|
|
|
|
|
|
|
|
|
|
import { useCounterMixin } from "@/stores/mixin";
|
|
|
|
|
import { useComplainstDataStore } from "@/modules/11_discipline/store/ComplaintsStore";
|
|
|
|
|
import { useDisciplineMainStore } from "@/modules/11_discipline/store/Main";
|
|
|
|
|
import { useInvestigateFactStore } from "@/modules/11_discipline/store/InvestigateFactStore";
|
|
|
|
|
import { useInvestigateDisStore } from "@/modules/11_discipline/store/InvestigateDisStore";
|
|
|
|
|
|
|
|
|
|
import DialogHeader from "@/components/DialogHeader.vue";
|
|
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
const mixin = useCounterMixin();
|
2025-10-09 10:08:46 +07:00
|
|
|
const { dateThaiRange } = mixin;
|
2025-07-17 14:46:20 +07:00
|
|
|
const store = useDisciplineMainStore();
|
|
|
|
|
const complainstStore = useComplainstDataStore();
|
|
|
|
|
const investigateStore = useInvestigateFactStore();
|
|
|
|
|
const InvestigateDisStore = useInvestigateDisStore();
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
getData: Function,
|
|
|
|
|
});
|
|
|
|
|
const modal = ref<boolean>(false);
|
|
|
|
|
|
|
|
|
|
/** เปิด popup ค้นหาขั้นสูง */
|
|
|
|
|
function onSearch() {
|
|
|
|
|
modal.value = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** ปิด popup ค้นหาขั้นสูง */
|
|
|
|
|
function onClose() {
|
|
|
|
|
modal.value = false;
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-18 10:04:14 +07:00
|
|
|
function fnSearch() {
|
2025-10-09 10:08:46 +07:00
|
|
|
props.getData?.();
|
2025-07-18 10:04:14 +07:00
|
|
|
onClose();
|
2025-07-17 14:46:20 +07:00
|
|
|
}
|
|
|
|
|
|
2025-07-18 10:04:14 +07:00
|
|
|
function resetForms() {
|
|
|
|
|
store.formComplaint.dateReceived = null;
|
|
|
|
|
store.formComplaint.respondentType = "";
|
|
|
|
|
store.formComplaint.offenseDetails = "";
|
|
|
|
|
store.formComplaint.levelConsideration = "";
|
|
|
|
|
store.formComplaint.dateConsideration = null;
|
2025-07-17 14:46:20 +07:00
|
|
|
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateFacts.respondentType = "";
|
|
|
|
|
store.formInvestigateFacts.offenseDetails = "";
|
|
|
|
|
store.formInvestigateFacts.investigationDetail = "";
|
|
|
|
|
store.formInvestigateFacts.investigationDate = null;
|
|
|
|
|
store.formInvestigateFacts.dateReceived = null;
|
|
|
|
|
store.formInvestigateFacts.investigationStatusResult = "";
|
2025-07-17 14:46:20 +07:00
|
|
|
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateDisciplinary.respondentType = "";
|
|
|
|
|
store.formInvestigateDisciplinary.offenseDetails = "";
|
|
|
|
|
store.formInvestigateDisciplinary.disciplinaryFaultLevel = "";
|
|
|
|
|
store.formInvestigateDisciplinary.disciplinaryCaseFault = "";
|
|
|
|
|
store.formInvestigateDisciplinary.disciplinaryDate = null;
|
|
|
|
|
store.formInvestigateDisciplinary.dateReceived = null;
|
2025-07-17 14:46:20 +07:00
|
|
|
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formResult.respondentType = "";
|
|
|
|
|
store.formResult.offenseDetails = "";
|
|
|
|
|
store.formResult.disciplinaryFaultLevel = "";
|
|
|
|
|
store.formResult.disciplinaryCaseFault = "";
|
|
|
|
|
store.formResult.disciplinaryDate = null;
|
|
|
|
|
store.formResult.resultDisciplineType = "";
|
|
|
|
|
store.formResult.resultTitleType = "";
|
|
|
|
|
store.formResult.resultOc = "";
|
|
|
|
|
store.formResult.resultYear = null;
|
2025-07-17 14:46:20 +07:00
|
|
|
}
|
2025-07-18 10:04:14 +07:00
|
|
|
|
|
|
|
|
watchEffect(() => {
|
|
|
|
|
resetForms();
|
|
|
|
|
});
|
2025-07-17 14:46:20 +07:00
|
|
|
</script>
|
|
|
|
|
<template>
|
2025-10-08 16:59:13 +07:00
|
|
|
<q-btn
|
|
|
|
|
size="12px"
|
|
|
|
|
flat
|
|
|
|
|
round
|
|
|
|
|
color="blue"
|
|
|
|
|
icon="mdi-filter-variant"
|
|
|
|
|
@click="onSearch"
|
|
|
|
|
>
|
|
|
|
|
<q-tooltip>ค้นหาขั้นสูง</q-tooltip>
|
|
|
|
|
</q-btn>
|
|
|
|
|
|
2025-07-17 14:46:20 +07:00
|
|
|
<q-dialog v-model="modal" persistent>
|
|
|
|
|
<q-card class="col-12" style="width: 400px">
|
|
|
|
|
<q-form greedy @submit.prevent @validation-success="fnSearch">
|
|
|
|
|
<DialogHeader :tittle="'ค้นหาขั้นสูง'" :close="onClose" />
|
|
|
|
|
<q-separator />
|
|
|
|
|
<q-card-section>
|
|
|
|
|
<div
|
|
|
|
|
v-if="route.name == 'disciplineComplaints'"
|
|
|
|
|
class="row q-col-gutter-sm"
|
|
|
|
|
>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<datepicker
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formComplaint.dateReceived"
|
2025-07-17 14:46:20 +07:00
|
|
|
:locale="'th'"
|
|
|
|
|
autoApply
|
|
|
|
|
borderless
|
|
|
|
|
range
|
|
|
|
|
:enableTimePicker="false"
|
|
|
|
|
week-start="0"
|
|
|
|
|
class=""
|
|
|
|
|
menu-class-name="modalfix"
|
|
|
|
|
>
|
|
|
|
|
<template #year="{ year }">
|
|
|
|
|
{{ year + 543 }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #year-overlay-value="{ value }">
|
|
|
|
|
{{ parseInt(value + 543) }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<q-input
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
class="full-width datepicker"
|
|
|
|
|
:model-value="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formComplaint.dateReceived != null
|
|
|
|
|
? dateThaiRange(store.formComplaint.dateReceived)
|
2025-07-17 14:46:20 +07:00
|
|
|
: null
|
|
|
|
|
"
|
|
|
|
|
:label="`${'วันที่รับเรื่องเริ่มต้น-สิ้นสุด'}`"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="event"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
style="color: var(--q-primary)"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:append>
|
|
|
|
|
<q-icon
|
2025-07-18 10:04:14 +07:00
|
|
|
v-if="store.formComplaint.dateReceived !== null"
|
2025-07-17 14:46:20 +07:00
|
|
|
name="clear"
|
|
|
|
|
class="cursor-pointer"
|
2025-07-18 10:04:14 +07:00
|
|
|
@click.prevent.stop="
|
|
|
|
|
store.formComplaint.dateReceived = null
|
|
|
|
|
"
|
2025-07-17 14:46:20 +07:00
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</template>
|
|
|
|
|
</datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formComplaint.respondentType"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="store.complainantoptionsMain"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ผู้ถูกร้องเรียน"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formComplaint.offenseDetails"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="store.offenseDetailstOptions"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ลักษณะความผิด"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formComplaint.levelConsideration"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="complainstStore.levelConsiderationtOptions"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ระดับการพิจารณา"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<datepicker
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formComplaint.dateConsideration"
|
2025-07-17 14:46:20 +07:00
|
|
|
:locale="'th'"
|
|
|
|
|
autoApply
|
|
|
|
|
borderless
|
|
|
|
|
range
|
|
|
|
|
:enableTimePicker="false"
|
|
|
|
|
week-start="0"
|
|
|
|
|
menu-class-name="modalfix"
|
|
|
|
|
>
|
|
|
|
|
<template #year="{ year }">
|
|
|
|
|
{{ year + 543 }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #year-overlay-value="{ value }">
|
|
|
|
|
{{ parseInt(value + 543) }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<q-input
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
class="full-width datepicker"
|
|
|
|
|
:model-value="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formComplaint.dateConsideration != null
|
|
|
|
|
? dateThaiRange(store.formComplaint.dateConsideration)
|
2025-07-17 14:46:20 +07:00
|
|
|
: null
|
|
|
|
|
"
|
|
|
|
|
:label="`${'วันที่เริ่มต้น-สิ้นสุดการพิจารณา'}`"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="event"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
style="color: var(--q-primary)"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:append>
|
|
|
|
|
<q-icon
|
2025-07-18 10:04:14 +07:00
|
|
|
v-if="store.formComplaint.dateConsideration !== null"
|
2025-07-17 14:46:20 +07:00
|
|
|
name="clear"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
@click.prevent.stop="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formComplaint.dateConsideration = null
|
2025-07-17 14:46:20 +07:00
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</template>
|
|
|
|
|
</datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
v-if="route.name == 'disciplineInvestigatefacts'"
|
|
|
|
|
class="row q-col-gutter-sm"
|
|
|
|
|
>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formInvestigateFacts.respondentType"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="store.complainantoptionsMain"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ผู้ถูกสืบสวน"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formInvestigateFacts.offenseDetails"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="store.offenseDetailstOptions"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ลักษณะความผิด"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formInvestigateFacts.investigationDetail"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="investigateStore.investigationDetailOp"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ลักษณะการสืบสวน"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<datepicker
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formInvestigateFacts.investigationDate"
|
2025-07-17 14:46:20 +07:00
|
|
|
:locale="'th'"
|
|
|
|
|
autoApply
|
|
|
|
|
borderless
|
|
|
|
|
range
|
|
|
|
|
:enableTimePicker="false"
|
|
|
|
|
week-start="0"
|
|
|
|
|
menu-class-name="modalfix"
|
|
|
|
|
>
|
|
|
|
|
<template #year="{ year }">
|
|
|
|
|
{{ year + 543 }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #year-overlay-value="{ value }">
|
|
|
|
|
{{ parseInt(value + 543) }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<q-input
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
class="full-width datepicker"
|
|
|
|
|
:model-value="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateFacts.investigationDate != null
|
|
|
|
|
? dateThaiRange(
|
|
|
|
|
store.formInvestigateFacts.investigationDate
|
|
|
|
|
)
|
2025-07-17 14:46:20 +07:00
|
|
|
: null
|
|
|
|
|
"
|
|
|
|
|
:label="`${'วันที่สืบสวนเริ่มต้น-สิ้นสุด'}`"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="event"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
style="color: var(--q-primary)"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:append>
|
|
|
|
|
<q-icon
|
2025-07-18 10:04:14 +07:00
|
|
|
v-if="
|
|
|
|
|
store.formInvestigateFacts.investigationDate !== null
|
|
|
|
|
"
|
2025-07-17 14:46:20 +07:00
|
|
|
name="clear"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
@click.prevent.stop="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateFacts.investigationDate = null
|
2025-07-17 14:46:20 +07:00
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</template>
|
|
|
|
|
</datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<datepicker
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formInvestigateFacts.dateReceived"
|
2025-07-17 14:46:20 +07:00
|
|
|
:locale="'th'"
|
|
|
|
|
autoApply
|
|
|
|
|
borderless
|
|
|
|
|
range
|
|
|
|
|
:enableTimePicker="false"
|
|
|
|
|
week-start="0"
|
|
|
|
|
menu-class-name="modalfix"
|
|
|
|
|
>
|
|
|
|
|
<template #year="{ year }">
|
|
|
|
|
{{ year + 543 }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #year-overlay-value="{ value }">
|
|
|
|
|
{{ parseInt(value + 543) }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<q-input
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
class="full-width datepicker"
|
|
|
|
|
:model-value="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateFacts.dateReceived != null
|
|
|
|
|
? dateThaiRange(store.formInvestigateFacts.dateReceived)
|
2025-07-17 14:46:20 +07:00
|
|
|
: null
|
|
|
|
|
"
|
|
|
|
|
:label="`${'วันที่รับเรื่องเริ่มต้น-สิ้นสุด'}`"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="event"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
style="color: var(--q-primary)"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:append>
|
|
|
|
|
<q-icon
|
2025-07-18 10:04:14 +07:00
|
|
|
v-if="store.formInvestigateFacts.dateReceived !== null"
|
2025-07-17 14:46:20 +07:00
|
|
|
name="clear"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
@click.prevent.stop="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateFacts.dateReceived = null
|
2025-07-17 14:46:20 +07:00
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</template>
|
|
|
|
|
</datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formInvestigateFacts.investigationStatusResult"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="store.statusResultOptions"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
2025-07-17 15:41:59 +07:00
|
|
|
label="ผลการสืบสวน"
|
2025-07-17 14:46:20 +07:00
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
v-if="route.name == 'disciplineDisciplinary'"
|
|
|
|
|
class="row q-col-gutter-sm"
|
|
|
|
|
>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formInvestigateDisciplinary.respondentType"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="store.complainantoptionsMain"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ผู้ถูกสอบสวน"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formInvestigateDisciplinary.offenseDetails"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="store.offenseDetailstOptions"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ลักษณะความผิด"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="
|
|
|
|
|
store.formInvestigateDisciplinary.disciplinaryFaultLevel
|
|
|
|
|
"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="InvestigateDisStore.optionsfaultLevel"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ระดับโทษความผิด"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-input
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="
|
|
|
|
|
store.formInvestigateDisciplinary.disciplinaryCaseFault
|
|
|
|
|
"
|
2025-07-17 14:46:20 +07:00
|
|
|
dense
|
|
|
|
|
outlined
|
|
|
|
|
label="กรณีความผิด"
|
|
|
|
|
></q-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<datepicker
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formInvestigateDisciplinary.disciplinaryDate"
|
2025-07-17 14:46:20 +07:00
|
|
|
:locale="'th'"
|
|
|
|
|
autoApply
|
|
|
|
|
borderless
|
|
|
|
|
range
|
|
|
|
|
:enableTimePicker="false"
|
|
|
|
|
week-start="0"
|
|
|
|
|
menu-class-name="modalfix"
|
|
|
|
|
>
|
|
|
|
|
<template #year="{ year }">
|
|
|
|
|
{{ year + 543 }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #year-overlay-value="{ value }">
|
|
|
|
|
{{ parseInt(value + 543) }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<q-input
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
class="full-width datepicker"
|
|
|
|
|
:model-value="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateDisciplinary.disciplinaryDate != null
|
2025-07-17 14:46:20 +07:00
|
|
|
? dateThaiRange(
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateDisciplinary.disciplinaryDate
|
2025-07-17 14:46:20 +07:00
|
|
|
)
|
|
|
|
|
: null
|
|
|
|
|
"
|
|
|
|
|
:label="`${'วันที่สอบสวนเริ่มต้น-สิ้นสุด'}`"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="event"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
style="color: var(--q-primary)"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:append>
|
|
|
|
|
<q-icon
|
|
|
|
|
v-if="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateDisciplinary.disciplinaryDate !==
|
|
|
|
|
null
|
2025-07-17 14:46:20 +07:00
|
|
|
"
|
|
|
|
|
name="clear"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
@click.prevent.stop="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateDisciplinary.disciplinaryDate =
|
|
|
|
|
null
|
2025-07-17 14:46:20 +07:00
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</template>
|
|
|
|
|
</datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<datepicker
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formInvestigateDisciplinary.dateReceived"
|
2025-07-17 14:46:20 +07:00
|
|
|
:locale="'th'"
|
|
|
|
|
autoApply
|
|
|
|
|
borderless
|
|
|
|
|
range
|
|
|
|
|
:enableTimePicker="false"
|
|
|
|
|
week-start="0"
|
|
|
|
|
menu-class-name="modalfix"
|
|
|
|
|
>
|
|
|
|
|
<template #year="{ year }">
|
|
|
|
|
{{ year + 543 }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #year-overlay-value="{ value }">
|
|
|
|
|
{{ parseInt(value + 543) }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<q-input
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
class="full-width datepicker"
|
|
|
|
|
:model-value="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateDisciplinary.dateReceived != null
|
2025-07-17 14:46:20 +07:00
|
|
|
? dateThaiRange(
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateDisciplinary.dateReceived
|
2025-07-17 14:46:20 +07:00
|
|
|
)
|
|
|
|
|
: null
|
|
|
|
|
"
|
|
|
|
|
:label="`${'วันที่รับเรื่องเริ่มต้น-สิ้นสุด'}`"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="event"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
style="color: var(--q-primary)"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:append>
|
|
|
|
|
<q-icon
|
2025-07-18 10:04:14 +07:00
|
|
|
v-if="
|
|
|
|
|
store.formInvestigateDisciplinary.dateReceived !==
|
|
|
|
|
null
|
|
|
|
|
"
|
2025-07-17 14:46:20 +07:00
|
|
|
name="clear"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
@click.prevent.stop="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formInvestigateDisciplinary.dateReceived = null
|
2025-07-17 14:46:20 +07:00
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</template>
|
|
|
|
|
</datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
v-if="route.name == 'disciplineResult'"
|
|
|
|
|
class="row q-col-gutter-sm"
|
|
|
|
|
>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formResult.respondentType"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="store.complainantoptionsMain"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ผู้ถูกสอบสวน"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formResult.offenseDetails"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="store.offenseDetailstOptions"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ลักษณะความผิด"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-select
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formResult.disciplinaryFaultLevel"
|
2025-07-17 14:46:20 +07:00
|
|
|
:options="InvestigateDisStore.optionsfaultLevel"
|
|
|
|
|
option-label="name"
|
|
|
|
|
option-value="id"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
map-options
|
|
|
|
|
emit-value
|
|
|
|
|
clearable
|
|
|
|
|
label="ระดับโทษความผิด"
|
|
|
|
|
>
|
|
|
|
|
</q-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-input
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formResult.disciplinaryCaseFault"
|
2025-07-17 14:46:20 +07:00
|
|
|
dense
|
|
|
|
|
outlined
|
|
|
|
|
label="กรณีความผิด"
|
|
|
|
|
></q-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<datepicker
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formResult.disciplinaryDate"
|
2025-07-17 14:46:20 +07:00
|
|
|
:locale="'th'"
|
|
|
|
|
autoApply
|
|
|
|
|
borderless
|
|
|
|
|
range
|
|
|
|
|
:enableTimePicker="false"
|
|
|
|
|
week-start="0"
|
|
|
|
|
menu-class-name="modalfix"
|
|
|
|
|
>
|
|
|
|
|
<template #year="{ year }">
|
|
|
|
|
{{ year + 543 }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #year-overlay-value="{ value }">
|
|
|
|
|
{{ parseInt(value + 543) }}
|
|
|
|
|
</template>
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<q-input
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
class="full-width datepicker"
|
|
|
|
|
:model-value="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formResult.disciplinaryDate != null
|
|
|
|
|
? dateThaiRange(store.formResult.disciplinaryDate)
|
2025-07-17 14:46:20 +07:00
|
|
|
: null
|
|
|
|
|
"
|
|
|
|
|
:label="`${'วันที่สอบสวนเริ่มต้น-สิ้นสุด'}`"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="event"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
style="color: var(--q-primary)"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:append>
|
|
|
|
|
<q-icon
|
2025-07-18 10:04:14 +07:00
|
|
|
v-if="store.formResult.disciplinaryDate !== null"
|
2025-07-17 14:46:20 +07:00
|
|
|
name="clear"
|
|
|
|
|
class="cursor-pointer"
|
2025-07-18 10:04:14 +07:00
|
|
|
@click.prevent.stop="
|
|
|
|
|
store.formResult.disciplinaryDate = null
|
|
|
|
|
"
|
2025-07-17 14:46:20 +07:00
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</template>
|
|
|
|
|
</datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-input
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formResult.resultDisciplineType"
|
2025-07-17 14:46:20 +07:00
|
|
|
dense
|
|
|
|
|
outlined
|
|
|
|
|
label="ประเภทวินัย"
|
|
|
|
|
></q-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-input
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formResult.resultTitleType"
|
2025-07-17 14:46:20 +07:00
|
|
|
dense
|
|
|
|
|
outlined
|
|
|
|
|
label="ประเภทของเรื่อง"
|
|
|
|
|
></q-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<q-input
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formResult.resultOc"
|
2025-07-17 14:46:20 +07:00
|
|
|
dense
|
|
|
|
|
outlined
|
|
|
|
|
label="หน่วยงาน/ส่วนราชการ"
|
|
|
|
|
></q-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<datepicker
|
2025-07-18 10:04:14 +07:00
|
|
|
v-model="store.formResult.resultYear"
|
2025-07-17 14:46:20 +07:00
|
|
|
class="col-2"
|
|
|
|
|
: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="
|
2025-07-18 10:04:14 +07:00
|
|
|
store.formResult.resultYear === null
|
2025-07-17 14:46:20 +07:00
|
|
|
? null
|
2025-07-18 10:04:14 +07:00
|
|
|
: Number(store.formResult.resultYear) + 543
|
2025-07-17 14:46:20 +07:00
|
|
|
"
|
|
|
|
|
:label="`${'ปีงบประมาณ'}`"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="event"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
style="color: var(--q-primary)"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:append>
|
|
|
|
|
<q-icon
|
2025-07-18 10:04:14 +07:00
|
|
|
v-if="store.formResult.resultYear !== null"
|
2025-07-17 14:46:20 +07:00
|
|
|
name="clear"
|
|
|
|
|
class="cursor-pointer"
|
2025-07-18 10:04:14 +07:00
|
|
|
@click.prevent.stop="store.formResult.resultYear = null"
|
2025-07-17 14:46:20 +07:00
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</template>
|
|
|
|
|
</datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</q-card-section>
|
|
|
|
|
<q-separator />
|
|
|
|
|
<q-card-actions align="right">
|
|
|
|
|
<q-btn label="ค้นหา" color="secondary" type="submit"
|
|
|
|
|
><q-tooltip>ค้นหา</q-tooltip></q-btn
|
|
|
|
|
>
|
|
|
|
|
</q-card-actions>
|
|
|
|
|
</q-form>
|
|
|
|
|
</q-card>
|
|
|
|
|
</q-dialog>
|
|
|
|
|
</template>
|