1390 lines
No EOL
56 KiB
Vue
1390 lines
No EOL
56 KiB
Vue
<script setup lang="ts">
|
|
import { ref, onMounted, reactive, watch } from "vue";
|
|
import http from "@/plugins/http";
|
|
import config from "@/app.config";
|
|
import { useQuasar } from "quasar";
|
|
import { useRoute, useRouter } from "vue-router";
|
|
|
|
/**import type*/
|
|
import type { QTableProps } from "quasar";
|
|
import type {
|
|
FormData,
|
|
DisciplinaryRef,
|
|
Persons,
|
|
Director,
|
|
} from "@/modules/11_discipline/interface/request/disciplinary";
|
|
import type {
|
|
DataOption,
|
|
FileLists,
|
|
responseType,
|
|
directorType,
|
|
} from "@/modules/11_discipline/interface/index/Main";
|
|
import type { DataOptionRes } from "@/modules/11_discipline/interface/response/Main";
|
|
|
|
/** import components*/
|
|
import DialogAddPersonal from "@/components/Dialogs/AddPersonal.vue";
|
|
import DialogDirector from "@/modules/11_discipline/components/DialogDirector.vue";
|
|
import Table from "@/modules/11_discipline/components/DirectorTable.vue";
|
|
import UploadFile from "@/modules/11_discipline/components/UploadFile.vue";
|
|
|
|
/** import store*/
|
|
import { useCounterMixin } from "@/stores/mixin";
|
|
import { useComplainstDataStore } from "@/modules/11_discipline/store/ComplaintsStore";
|
|
import { useInvestigateDisStore } from "@/modules/11_discipline/store/InvestigateDisStore";
|
|
import { useDisciplineMainStore } from "@/modules/11_discipline/store/main";
|
|
|
|
const complainstStore = useComplainstDataStore();
|
|
const investigateDis = useInvestigateDisStore();
|
|
const mainStore = useDisciplineMainStore();
|
|
const { filterSelector } = complainstStore; // function จาก store complainstStore
|
|
const mixin = useCounterMixin();
|
|
const { date2Thai, showLoader, hideLoader, dialogConfirm, messageError } =
|
|
mixin;
|
|
|
|
const route = useRoute();
|
|
const router = useRouter();
|
|
const $q = useQuasar();
|
|
|
|
const id = ref<string>(route.params.id as string);
|
|
const isUpdate = ref<boolean>(false);
|
|
const type = ref<string>("");
|
|
const modal = ref<boolean>(false);
|
|
const rows = ref<Director[]>([]);
|
|
const modalPerson = ref<boolean>(false);
|
|
/** search data table*/
|
|
const filter = ref<string>("");
|
|
|
|
const isSave = ref<boolean>(false); // มีการแก้ไขรอบันทึก
|
|
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
|
|
|
function toggleModal() {
|
|
modalPerson.value = !modalPerson.value;
|
|
}
|
|
|
|
/** formData*/
|
|
const formData = reactive<FormData>({
|
|
respondentType: "",
|
|
organizationId: "",
|
|
consideredAgency: "",
|
|
disciplinaryDateAllegation: null, //*วันที่รับทราบข้อกล่าวหา
|
|
disciplinaryDateEvident: null, //*วันที่สรุปพยานหลักฐาน
|
|
disciplinaryCaseFault: "", // กรณีความผิด
|
|
disciplinaryInvestigateAt: "", // สอบสวนที่
|
|
disciplinaryFaultLevel: "", // ระดับโทษความผิด
|
|
disciplinaryRefLaw: "", // อ้างอิงมาตราตามกฎหมาย
|
|
disciplinarySummaryEvidence: "", // สรุปพยานหลักฐานสนับสนุนข้อกล่าวหา
|
|
disciplinaryRecordAccuser: "", // บันทึกถ้อยคำของผู้กล่าวหา
|
|
disciplinaryWitnesses: "", // พยานและบันทึกถ้อยคำพยาน
|
|
result: "", // ผลการสอบสวน
|
|
directors: [],
|
|
persons: [],
|
|
extendStatus: false,
|
|
disciplinaryDateStart: null, // วันที่เริ่มการสอบสวน
|
|
disciplinaryDateEnd: null, // วันที่สิ้นสุดการสอบสวน
|
|
daysExtend: 0,
|
|
disciplinaryDateInvestigation: null, // วันที่มีคำสั่งให้สอบสวน
|
|
disciplinaryDateResult: null, //วันที่รายงานผลการสอบสวน
|
|
disciplinaryStatusResult: "",
|
|
disciplinaryCauseText: "",
|
|
disciplinaryResult: "",
|
|
});
|
|
const disciplineDisciplinary_DocRelevants = ref<FileLists[]>([]); // ยังไม่มีรอ api
|
|
const disciplineDisciplinary_DocSummaryEvidences = ref<FileLists[]>([]);
|
|
const disciplineDisciplinary_DocRecordAccusers = ref<FileLists[]>([]);
|
|
const disciplineDisciplinary_DocWitnessess = ref<FileLists[]>([]);
|
|
const disciplineDisciplinary_DocOthers = ref<FileLists[]>([]);
|
|
|
|
/** ตัวแปร ref สำหรับแสดง validate */
|
|
const respondentTypeRef = ref<Object | null>(null);
|
|
const organizationIdRef = ref<Object | null>(null);
|
|
const consideredAgencyRef = ref<Object | null>(null);
|
|
const disciplinaryDateAllegationRef = ref<Object | null>(null);
|
|
const disciplinaryDateEvidentRef = ref<Object | null>(null);
|
|
const disciplinaryCaseFaultRef = ref<Object | null>(null);
|
|
const disciplinaryInvestigateAtRef = ref<Object | null>(null);
|
|
const disciplinaryFaultLevelRef = ref<Object | null>(null);
|
|
const disciplinaryRefLawRef = ref<Object | null>(null);
|
|
const disciplinarySummaryEvidenceRef = ref<Object | null>(null);
|
|
const disciplinaryRecordAccuserRef = ref<Object | null>(null);
|
|
const disciplinaryWitnessesRef = ref<Object | null>(null);
|
|
const resultRef = ref<Object | null>(null);
|
|
const dateRef = ref<Object | null>(null);
|
|
const dateEndRef = ref<Object | null>(null);
|
|
const daysExtendRef = ref<Object | null>(null);
|
|
const disciplinaryDateResultRef = ref<Object | null>(null);
|
|
const disciplinaryStatusResultRef = ref<Object | null>(null);
|
|
const disciplinaryCauseTextRef = ref<Object | null>(null);
|
|
const disciplinaryResultRef = ref<Object | null>(null);
|
|
|
|
/** maping ref เข้าตัวแปรเพื่อเตรียมตรวจสอบ */
|
|
const objectdisciplinary: DisciplinaryRef = {
|
|
respondentType: respondentTypeRef,
|
|
organizationId: organizationIdRef,
|
|
consideredAgency: consideredAgencyRef,
|
|
// disciplinaryDateAllegation: disciplinaryDateAllegationRef,
|
|
// disciplinaryDateEvident: disciplinaryDateEvidentRef,
|
|
// disciplinaryCaseFault: disciplinaryCaseFaultRef,
|
|
// disciplinaryInvestigateAt: disciplinaryInvestigateAtRef,
|
|
disciplinaryFaultLevel: disciplinaryFaultLevelRef,
|
|
// disciplinaryRefLaw: disciplinaryRefLawRef,
|
|
// disciplinarySummaryEvidence: disciplinarySummaryEvidenceRef,
|
|
// disciplinaryRecordAccuser: disciplinaryRecordAccuserRef,
|
|
// disciplinaryWitnesses: disciplinaryWitnessesRef,
|
|
// result: resultRef,
|
|
date: dateRef,
|
|
dateEnd: dateEndRef,
|
|
daysExtend: daysExtendRef,
|
|
disciplinaryDateResult: disciplinaryDateResultRef,
|
|
disciplinaryStatusResult: disciplinaryStatusResultRef,
|
|
disciplinaryResult: disciplinaryResultRef,
|
|
};
|
|
|
|
const initialPagination = ref<any>({
|
|
rowsPerPage: 0,
|
|
});
|
|
|
|
/** รับ props มาจากหน้าหลัก */
|
|
const props = defineProps({
|
|
data: {
|
|
type: Object,
|
|
default: null,
|
|
},
|
|
onSubmit: {
|
|
type: Function,
|
|
default: () => "",
|
|
},
|
|
fetchData: {
|
|
type: Function,
|
|
default: () => "",
|
|
},
|
|
});
|
|
const emit = defineEmits(["submit:disciplinary"]);
|
|
|
|
/** เปิด dialog */
|
|
function popup() {
|
|
modal.value = true;
|
|
filterKeyword2.value = "";
|
|
}
|
|
|
|
/** ฟังชั่นปิด dialog */
|
|
function clickClose() {
|
|
modal.value = false;
|
|
}
|
|
|
|
/** ฟังชั่นตรวจสอบความถูกต้องก่อน บันทึก */
|
|
function validateForm() {
|
|
const hasError = [];
|
|
for (const key in objectdisciplinary) {
|
|
if (Object.prototype.hasOwnProperty.call(objectdisciplinary, key)) {
|
|
const property = objectdisciplinary[key];
|
|
if (property.value && typeof property.value.validate === "function") {
|
|
const isValid = property.value.validate();
|
|
hasError.push(isValid);
|
|
}
|
|
}
|
|
}
|
|
if (hasError.every((result) => result === true)) {
|
|
onSubmit();
|
|
isSave.value = false;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* ฟังชั้นคำนวณเวลาวันที่สิ้นสุดจาก วันที่สิ้นสุดการสอบสวน
|
|
* @param val จำนวนวันที่ต้องการขยาย
|
|
*/
|
|
function calEndDate(val: string) {
|
|
const date = new Date(props.data.investigationDateEnd);
|
|
const dateNew = new Date();
|
|
formData.disciplinaryDateEnd = new Date(
|
|
dateNew.setDate(date.getDate() + Number(val))
|
|
);
|
|
}
|
|
|
|
/**
|
|
* ฟังก์ชั่นสำหรับบันทึกข้อมูล ระบบจะแสดง dialog ให้ยืนยันการบันทึก
|
|
* หากยืนยันจะส่งข้อมูลไปบันทึกที่ api
|
|
* หากยกเลิกจะกลับไปหน้าฟอร์ม
|
|
*/
|
|
function onSubmit() {
|
|
dialogConfirm(
|
|
$q,
|
|
async () => {
|
|
emit("submit:disciplinary", formData);
|
|
},
|
|
"ยืนยันการบันทึกข้อมูล",
|
|
"ต้องการยืนยันการบันทึกข้อมูลนี้หรือไม่ ?"
|
|
);
|
|
}
|
|
|
|
/** ฟังชั่นลบข้อมูลกรรมการ */
|
|
async function deleteDirector(id: string) {
|
|
changeFormData();
|
|
const dataRow = rows.value;
|
|
const updatedRows = dataRow.filter((item: any) => item.id !== id);
|
|
rows.value = updatedRows;
|
|
|
|
const dataList = updatedRows.map((item: any) => item.id);
|
|
formData.directors = dataList;
|
|
}
|
|
|
|
/** เรียกข้อมูลรายละเอียด*/
|
|
async function fetchDatadetail() {
|
|
if (props.data) {
|
|
isReadonly.value = props.data.status != "NEW" ?? true;
|
|
isSave.value = false;
|
|
|
|
formData.respondentType = props.data.respondentType;
|
|
formData.organizationId = props.data.organizationId;
|
|
formData.consideredAgency = props.data.consideredAgency;
|
|
formData.disciplinaryDateAllegation = props.data.disciplinaryDateAllegation;
|
|
formData.disciplinaryDateEvident = props.data.disciplinaryDateEvident;
|
|
formData.disciplinaryCaseFault = props.data.disciplinaryCaseFault;
|
|
formData.disciplinaryInvestigateAt = props.data.disciplinaryInvestigateAt;
|
|
formData.disciplinaryFaultLevel = props.data.disciplinaryFaultLevel;
|
|
formData.disciplinaryRefLaw = props.data.disciplinaryRefLaw;
|
|
formData.disciplinarySummaryEvidence =
|
|
props.data.disciplinarySummaryEvidence;
|
|
formData.disciplinaryRecordAccuser = props.data.disciplinaryRecordAccuser;
|
|
formData.disciplinaryWitnesses = props.data.disciplinaryWitnesses;
|
|
formData.result = props.data.result;
|
|
formData.persons = props.data.persons ?? [];
|
|
formData.disciplinaryDateStart = props.data.disciplinaryDateStart ?? null;
|
|
formData.disciplinaryDateEnd = props.data.disciplinaryDateEnd ?? null;
|
|
formData.daysExtend = props.data.daysExtend ?? 0;
|
|
formData.disciplinaryDateInvestigation =
|
|
props.data.disciplinaryDateInvestigation ?? null;
|
|
formData.disciplinaryDateResult = props.data.disciplinaryDateResult ?? null;
|
|
disciplineDisciplinary_DocSummaryEvidences.value =
|
|
props.data.disciplineDisciplinary_DocSummaryEvidences;
|
|
disciplineDisciplinary_DocRecordAccusers.value =
|
|
props.data.disciplineDisciplinary_DocRecordAccusers;
|
|
disciplineDisciplinary_DocWitnessess.value =
|
|
props.data.disciplineDisciplinary_DocWitnessess;
|
|
disciplineDisciplinary_DocOthers.value =
|
|
props.data.disciplineDisciplinary_DocOthers;
|
|
|
|
disciplineDisciplinary_DocRelevants.value =
|
|
props.data.disciplineDisciplinary_DocRelevants;
|
|
|
|
investigateDis.rowSent = formData.persons;
|
|
|
|
formData.disciplinaryStatusResult = props.data.disciplinaryStatusResult;
|
|
formData.disciplinaryCauseText = props.data.disciplinaryCauseText;
|
|
formData.disciplinaryResult = props.data.disciplinaryResult;
|
|
|
|
/** MAP รายชื่อกรรมการ หน้าหลัก */
|
|
const dataMap = props.data.director.map((item: any) => ({
|
|
id: item.directorId,
|
|
name: `${item.prefix}${item.firstName} ${item.lastName}`,
|
|
prefix: item.prefix,
|
|
firstName: item.firstName,
|
|
lastName: item.lastName,
|
|
position: item.position,
|
|
email: item.email,
|
|
phone: item.phone,
|
|
}));
|
|
|
|
rows.value = dataMap;
|
|
const dataList = dataMap.map((item: any) => item.id);
|
|
formData.directors = dataList;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* function add ผู้ถูกร้องเรียนใน table
|
|
* @param data รายชื่อ ผู้ถูกร้องเรียน
|
|
*/
|
|
async function addPerson(data: Persons[]) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
const newPerson: Persons[] = Array.from(data).map((e) => ({
|
|
personId: e.personId, //id อ้างอิง profile
|
|
idcard: e.idcard, //รหัสบัตรประชาชน
|
|
prefix: e.prefix, //คำนำหน้า
|
|
firstName: e.firstName, //ชื่อ
|
|
lastName: e.lastName, //นามสกุล
|
|
posNo: e.posNo, //เลขที่ตำแหน่ง
|
|
position: e.position, //ตำแหน่ง
|
|
positionLevel: e.positionLevel, //ระดับ
|
|
salary: e.salary, //เงินเดือน
|
|
organization: e.organization, //สังกัด
|
|
name: `${e.prefix}${e.firstName} ${e.lastName}`,
|
|
}));
|
|
const mergedArray = [...formData.persons, ...newPerson];
|
|
formData.persons = mergedArray;
|
|
investigateDis.rowSent = formData.persons;
|
|
toggleModal();
|
|
}
|
|
|
|
/** function รับข้อมูลรายชื่อผู้ถูกร้องเรียน*/
|
|
function handleSave(returnData: any) {
|
|
addPerson(returnData);
|
|
}
|
|
|
|
/**
|
|
* เช็คข้อมูลจาก props
|
|
* เมื่อมีข้อมูล
|
|
* เก็บข้อมูลลง formData
|
|
*/
|
|
watch(
|
|
() => props.data,
|
|
async () => {
|
|
await fetchDatadetail();
|
|
}
|
|
);
|
|
|
|
const organizationOption = ref<DataOption[]>([]);
|
|
/** function เรียกรายชื่อหน่วยงาน*/
|
|
async function fetchOrganization() {
|
|
await http
|
|
.get(config.API.typeOc())
|
|
.then((res) => {
|
|
const data = res.data.result;
|
|
organizationOption.value = data.map((e: DataOptionRes) => ({
|
|
id: e.organizationId,
|
|
name: e.organizationName,
|
|
}));
|
|
})
|
|
.catch((err) => {
|
|
messageError($q, err);
|
|
});
|
|
}
|
|
|
|
/** query string*/
|
|
const page = ref<number>(1);
|
|
const rowsPerPage = ref<number>(10);
|
|
const maxPage = ref<number>(1);
|
|
const filterKeyword2 = ref<string>("");
|
|
const listDirector = ref<any>([]);
|
|
/** function เรียกรายชื่อกรรมการ*/
|
|
async function fetchDListDirector() {
|
|
showLoader();
|
|
await http
|
|
.get(
|
|
config.API.directorList(
|
|
page.value,
|
|
rowsPerPage.value,
|
|
filterKeyword2.value
|
|
)
|
|
)
|
|
.then((res) => {
|
|
maxPage.value = Math.ceil(res.data.result.total / rowsPerPage.value);
|
|
const data = res.data.result.data;
|
|
let datalistDirector: responseType[] = data.map((e: directorType) => ({
|
|
id: e.id,
|
|
directorId: e.directorId,
|
|
name: `${e.prefix}${e.firstName} ${e.lastName}`,
|
|
prefix: e.prefix,
|
|
firstName: e.firstName,
|
|
lastName: e.lastName,
|
|
position: e.position,
|
|
email: e.email,
|
|
phone: e.phone,
|
|
total: e.total,
|
|
duty: e.duty,
|
|
}));
|
|
|
|
/** หารานชื่อกรรมการที่ไม่ซ้ำ*/
|
|
listDirector.value = datalistDirector.filter(
|
|
(i) => !rows.value.some((e) => e.directorId === i.id)
|
|
);
|
|
})
|
|
.catch((err) => {
|
|
messageError($q, err);
|
|
})
|
|
.finally(() => {
|
|
hideLoader();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* function อัดเดท Paging กรรมการ
|
|
* @param rpp ต่อหน้า
|
|
* @param p หน้า
|
|
*/
|
|
async function updatePaging(rpp: number, p: number) {
|
|
page.value = p;
|
|
rowsPerPage.value = rpp;
|
|
}
|
|
|
|
/**
|
|
* function return รายชื่อกรรมการที่เลือก
|
|
* @param data รายชื่อกรรมการที่เลือก
|
|
*/
|
|
async function returnDirector(data: any) {
|
|
const dataList = data.map((item: any) => item.id);
|
|
formData.directors = dataList;
|
|
rows.value = data;
|
|
clickClose();
|
|
}
|
|
|
|
async function selectComplainant(val: string) {
|
|
formData.organizationId = "";
|
|
formData.consideredAgency = "";
|
|
// if (val === "0") {
|
|
// await fetchListname(); // ถ้าเลือกบุกคลจะเรียก function fetchListname เรียกรายชื่อจากทะเบียน
|
|
// } else if (val === "1") {
|
|
// await fetchOffice(); // ถ้าเลือกหน่วยงานจะเรียก function fetchOffice เรียกโครงสร้างสำนักงาน
|
|
// }
|
|
}
|
|
|
|
/** ฟังก์ชั่นเช็คการแก้ไขฟอร์มแล้วไม่ได้กดบันทึก */
|
|
function changeFormData() {
|
|
isSave.value = true;
|
|
}
|
|
|
|
/** Hook */
|
|
onMounted(async () => {
|
|
await fetchOrganization();
|
|
});
|
|
</script>
|
|
<template>
|
|
<div class="row col-12 bg-white">
|
|
<div class="col-sm-12 col-md-9">
|
|
<form @submit.prevent="validateForm">
|
|
<div class="col-12">
|
|
<q-card bordered>
|
|
<div class="col-12 row q-pa-md">
|
|
<div class="col-12 row q-col-gutter-md">
|
|
<div class="col-xs-12 col-sm-3">
|
|
<q-select
|
|
for="SelectrespondentType"
|
|
v-model="formData.respondentType"
|
|
ref="respondentTypeRef"
|
|
dense
|
|
outlined
|
|
label="ผู้ถูกร้องเรียน"
|
|
option-value="id"
|
|
option-label="name"
|
|
emit-value
|
|
use-input
|
|
map-options
|
|
hide-bottom-space
|
|
:options="complainstStore.complainantoptions"
|
|
:rules="[(val) => !!val || `${'กรุณาเลือกผู้ร้องเรียน'}`]"
|
|
lazy-rules
|
|
@update:model-value="
|
|
selectComplainant(formData.respondentType)
|
|
"
|
|
@filter="(inputValue: any,
|
|
doneFn: Function) => filterSelector(inputValue, doneFn, 'filterrespondentType'
|
|
)"
|
|
>
|
|
<template v-slot:no-option>
|
|
<q-item>
|
|
<q-item-section class="text-grey">
|
|
ไม่มีข้อมูล
|
|
</q-item-section>
|
|
</q-item>
|
|
</template>
|
|
</q-select>
|
|
</div>
|
|
<div
|
|
class="col-xs-12 col-sm-3"
|
|
v-if="formData.respondentType === 'ORGANIZATION'"
|
|
id="organizationId"
|
|
>
|
|
<q-select
|
|
for="inputOffice"
|
|
name="organizationId"
|
|
ref="organizationIdRef"
|
|
dense
|
|
hide-bottom-space
|
|
outlined
|
|
option-label="name"
|
|
option-value="id"
|
|
emit-value
|
|
map-options
|
|
v-model="formData.organizationId"
|
|
:options="organizationOption"
|
|
label="เลือกสำนักงาน"
|
|
:rules="[(val) => !!val || `${'กรุณาเลือกสำนักงาน'}`]"
|
|
lazy-rules
|
|
/>
|
|
</div>
|
|
<div class="col-xs-12 col-sm-3" id="consideredAgency">
|
|
<!-- <q-select
|
|
ref="consideredAgencyRef"
|
|
for="selectAgency"
|
|
dense
|
|
outlined
|
|
v-model="formData.consideredAgency"
|
|
:options="organizationOption"
|
|
label="หน่วยงานที่พิจารณา"
|
|
option-value="id"
|
|
option-label="name"
|
|
hide-bottom-space
|
|
emit-value
|
|
map-options
|
|
:rules="[(val) => !!val || `${'กรุณาเลือกหน่วยงาน'}`]"
|
|
lazy-rules
|
|
use-input
|
|
@filter="(inputValue: any,
|
|
doneFn: Function) => filterSelector(inputValue, doneFn, 'filterconsideredAgencytoptions'
|
|
)"
|
|
>
|
|
<template v-slot:no-option>
|
|
<q-item>
|
|
<q-item-section class="text-grey">
|
|
ไม่มีข้อมูล
|
|
</q-item-section>
|
|
</q-item>
|
|
</template>
|
|
</q-select> -->
|
|
</div>
|
|
|
|
<div
|
|
v-if="formData.respondentType !== 'ORGANIZATION'"
|
|
class="col-6"
|
|
></div>
|
|
<div
|
|
class="row col-12"
|
|
v-if="formData.respondentType === 'PERSON'"
|
|
>
|
|
<q-card
|
|
bordered
|
|
class="row col-12"
|
|
style="border: 1px solid #d6dee1"
|
|
>
|
|
<div
|
|
class="col-xs-12 col-sm-12 text-weight-medium bg-grey-1 q-py-xs q-px-md"
|
|
>
|
|
ผู้ถูกร้องเรียน
|
|
<q-btn
|
|
size="12px"
|
|
flat
|
|
round
|
|
dense
|
|
color="add"
|
|
class="q-ml-sm"
|
|
icon="mdi-plus"
|
|
@click="toggleModal"
|
|
>
|
|
<q-tooltip>เพิ่มผู้ถูกร้องเรียน</q-tooltip>
|
|
</q-btn>
|
|
</div>
|
|
<div class="col-12"><q-separator /></div>
|
|
<div class="col-xs-12 q-pa-sm">
|
|
<d-table
|
|
ref="table"
|
|
:columns="mainStore.columnsRespondent"
|
|
:rows="formData.persons"
|
|
row-key="personId"
|
|
flat
|
|
bordered
|
|
:paging="true"
|
|
dense
|
|
class="custom-header-table"
|
|
>
|
|
<template v-slot:header="props">
|
|
<q-tr :props="props">
|
|
<q-th
|
|
v-for="col in props.cols"
|
|
:key="col.name"
|
|
:props="props"
|
|
style="color: #000000; font-weight: 500"
|
|
>
|
|
<span class="text-weight-medium">{{
|
|
col.label
|
|
}}</span>
|
|
</q-th>
|
|
</q-tr>
|
|
</template>
|
|
<template v-slot:body="props">
|
|
<q-tr :props="props" class="cursor-pointer">
|
|
<q-td
|
|
v-for="col in props.cols"
|
|
:key="col.name"
|
|
:props="props"
|
|
>
|
|
<div v-if="col.name == 'no'">
|
|
{{ props.rowIndex + 1 }}
|
|
</div>
|
|
<div v-else-if="col.name == 'info'">
|
|
<q-btn
|
|
size="14px"
|
|
flat
|
|
round
|
|
dense
|
|
color="info"
|
|
icon="info"
|
|
@click="
|
|
router.push(
|
|
`/registry/${props.row.personId}`
|
|
)
|
|
"
|
|
><q-tooltip
|
|
>ดูข้อมูลในทะเบียนประวัติ</q-tooltip
|
|
></q-btn
|
|
>
|
|
</div>
|
|
<div
|
|
v-else-if="col.name === 'organization'"
|
|
class="table_ellipsis"
|
|
>
|
|
{{ props.row.organization }}
|
|
</div>
|
|
<div v-else>
|
|
{{ col.value }}
|
|
</div>
|
|
</q-td>
|
|
</q-tr>
|
|
</template>
|
|
</d-table>
|
|
</div>
|
|
</q-card>
|
|
</div>
|
|
|
|
<div class="row col-12">
|
|
<q-card
|
|
bordered
|
|
class="col-12"
|
|
style="border: 1px solid #d6dee1"
|
|
>
|
|
<div
|
|
class="col-xs-12 col-sm-12 text-weight-medium bg-grey-1 q-py-sm q-px-md"
|
|
>
|
|
วันที่สอบสวน
|
|
|
|
<q-checkbox
|
|
v-if="
|
|
formData.disciplinaryDateStart != null &&
|
|
formData.disciplinaryDateEnd != null &&
|
|
((isReadonly && formData.extendStatus) || !isReadonly)
|
|
"
|
|
for="#extendStatus"
|
|
size="md"
|
|
v-model="formData.extendStatus"
|
|
label="ขยายเวลา"
|
|
color="primary"
|
|
dense
|
|
class="text-weight-medium q-ml-sm"
|
|
keep-color
|
|
/>
|
|
</div>
|
|
<div class="col-12"><q-separator /></div>
|
|
<div class="q-pa-sm">
|
|
<div class="q-col-gutter-sm row">
|
|
<div class="col-3" v-if="!formData.extendStatus">
|
|
<datepicker
|
|
menu-class-name="modalfix"
|
|
:readonly="isUpdate"
|
|
v-model="formData.disciplinaryDateStart"
|
|
:locale="'th'"
|
|
autoApply
|
|
:enableTimePicker="false"
|
|
week-start="0"
|
|
>
|
|
<template #year="{ year }">{{
|
|
year + 543
|
|
}}</template>
|
|
<template #year-overlay-value="{ value }">{{
|
|
parseInt(value + 543)
|
|
}}</template>
|
|
<template #trigger>
|
|
<q-input
|
|
for="#date"
|
|
class="full-width cursor-pointer"
|
|
ref="dateRef"
|
|
:readonly="isUpdate"
|
|
outlined
|
|
dense
|
|
lazy-rules
|
|
borderless
|
|
hide-bottom-space
|
|
:model-value="
|
|
formData.disciplinaryDateStart
|
|
? date2Thai(formData.disciplinaryDateStart)
|
|
: null
|
|
"
|
|
:rules="[
|
|
(val) =>
|
|
!!val ||
|
|
`${'กรุณาเลือกวันที่เริ่มการสอบสวน'}`,
|
|
]"
|
|
:label="`${'วันที่เริ่มการสอบสวน'}`"
|
|
>
|
|
<template v-slot:prepend>
|
|
<q-icon
|
|
name="event"
|
|
class="cursor-pointer"
|
|
color="primary"
|
|
>
|
|
</q-icon>
|
|
</template>
|
|
</q-input>
|
|
</template>
|
|
</datepicker>
|
|
</div>
|
|
|
|
<div class="col-3" v-if="formData.extendStatus">
|
|
<q-selectinvestigateDis
|
|
for="#daysExtend"
|
|
outlined
|
|
dense
|
|
lazy-rules
|
|
ref="daysExtendRef"
|
|
v-model="formData.daysExtend"
|
|
:options="investigateDis.daysExtendOps"
|
|
label="จำนวนวันที่ต้องการขยาย"
|
|
emit-value
|
|
hide-bottom-space
|
|
map-options
|
|
:rules="[
|
|
(val: any) =>
|
|
formData.extendStatus
|
|
? !!val || 'กรุณาเลือกจำนวนวันที่ต้องการขยาย'
|
|
: true,
|
|
]"
|
|
option-label="name"
|
|
option-value="id"
|
|
use-input
|
|
@update:model-value="calEndDate"
|
|
><template v-slot:no-option>
|
|
<q-item>
|
|
<q-item-section class="text-grey">
|
|
ไม่มีข้อมูล
|
|
</q-item-section>
|
|
</q-item>
|
|
</template>
|
|
</q-selectinvestigateDis>
|
|
</div>
|
|
|
|
<div class="col-3">
|
|
<datepicker
|
|
menu-class-name="modalfix"
|
|
v-model="formData.disciplinaryDateEnd"
|
|
:readonly="isUpdate"
|
|
:locale="'th'"
|
|
autoApply
|
|
:enableTimePicker="false"
|
|
week-start="0"
|
|
>
|
|
<template #year="{ year }">{{
|
|
year + 543
|
|
}}</template>
|
|
<template #year-overlay-value="{ value }">{{
|
|
parseInt(value + 543)
|
|
}}</template>
|
|
<template #trigger>
|
|
<q-input
|
|
for="#dateEnd"
|
|
ref="dateEndRef"
|
|
class="full-width cursor-pointer"
|
|
:readonly="isUpdate"
|
|
outlined
|
|
dense
|
|
lazy-rules
|
|
hide-bottom-space
|
|
borderless
|
|
:model-value="
|
|
formData.disciplinaryDateEnd
|
|
? date2Thai(formData.disciplinaryDateEnd)
|
|
: null
|
|
"
|
|
:rules="[
|
|
(val) =>
|
|
!!val ||
|
|
`${'กรุณาเลือกวันที่สิ้นสุดการสอบสวน'}`,
|
|
]"
|
|
:label="`${'วันที่สิ้นสุดการสอบสวน'}`"
|
|
>
|
|
<template v-slot:prepend>
|
|
<q-icon
|
|
name="event"
|
|
class="cursor-pointer"
|
|
color="primary"
|
|
>
|
|
</q-icon>
|
|
</template>
|
|
</q-input>
|
|
</template>
|
|
</datepicker>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</q-card>
|
|
</div>
|
|
|
|
<datepicker
|
|
menu-class-name="modalfix"
|
|
for="#dateAllegation"
|
|
v-model="formData.disciplinaryDateAllegation"
|
|
class="col-xs-12 col-sm-3"
|
|
:locale="'th'"
|
|
autoApply
|
|
borderless
|
|
:enableTimePicker="false"
|
|
week-start="0"
|
|
>
|
|
<template #year="{ year }">
|
|
{{ year + 543 }}
|
|
</template>
|
|
<template #year-overlay-value="{ value }">
|
|
{{ parseInt(value + 543) }}
|
|
</template>
|
|
<template #trigger>
|
|
<q-input
|
|
ref="disciplinaryDateAllegationRef"
|
|
outlined
|
|
dense
|
|
class="col-xs-12 col-sm-4"
|
|
hide-bottom-space
|
|
:model-value="
|
|
formData.disciplinaryDateAllegation != null
|
|
? date2Thai(formData.disciplinaryDateAllegation)
|
|
: null
|
|
"
|
|
:label="`${'วันที่รับทราบข้อกล่าวหา'}`"
|
|
:rules="[
|
|
(val) =>
|
|
!!val || `${'กรุณาเลือกวันที่รับทราบข้อกล่าวหา'}`,
|
|
]"
|
|
lazy-rules
|
|
>
|
|
<template v-slot:prepend>
|
|
<q-icon
|
|
name="event"
|
|
class="cursor-pointer"
|
|
style="color: var(--q-primary)"
|
|
>
|
|
</q-icon>
|
|
</template>
|
|
</q-input>
|
|
</template>
|
|
</datepicker>
|
|
|
|
<datepicker
|
|
menu-class-name="modalfix"
|
|
for="#dateAllegation"
|
|
v-model="formData.disciplinaryDateInvestigation"
|
|
class="col-xs-12 col-sm-3"
|
|
:locale="'th'"
|
|
autoApply
|
|
borderless
|
|
:enableTimePicker="false"
|
|
week-start="0"
|
|
>
|
|
<template #year="{ year }">
|
|
{{ year + 543 }}
|
|
</template>
|
|
<template #year-overlay-value="{ value }">
|
|
{{ parseInt(value + 543) }}
|
|
</template>
|
|
<template #trigger>
|
|
<q-input
|
|
outlined
|
|
dense
|
|
class="col-xs-12 col-sm-4"
|
|
hide-bottom-space
|
|
:model-value="
|
|
formData.disciplinaryDateInvestigation != null
|
|
? date2Thai(formData.disciplinaryDateInvestigation)
|
|
: null
|
|
"
|
|
:label="`${'วันที่มีคำสั่งให้สอบสวน'}`"
|
|
:rules="[
|
|
(val) =>
|
|
!!val || `${'กรุณาเลือกวันที่มีคำสั่งให้สอบสวน'}`,
|
|
]"
|
|
lazy-rules
|
|
>
|
|
<template v-slot:prepend>
|
|
<q-icon
|
|
name="event"
|
|
class="cursor-pointer"
|
|
style="color: var(--q-primary)"
|
|
>
|
|
</q-icon>
|
|
</template>
|
|
</q-input>
|
|
</template>
|
|
</datepicker>
|
|
|
|
<datepicker
|
|
menu-class-name="modalfix"
|
|
for="#dateEvident"
|
|
v-model="formData.disciplinaryDateEvident"
|
|
:locale="'th'"
|
|
autoApply
|
|
class="col-xs-12 col-sm-3"
|
|
borderless
|
|
:enableTimePicker="false"
|
|
week-start="0"
|
|
>
|
|
<template #year="{ year }">
|
|
{{ year + 543 }}
|
|
</template>
|
|
<template #year-overlay-value="{ value }">
|
|
{{ parseInt(value + 543) }}
|
|
</template>
|
|
<template #trigger>
|
|
<q-input
|
|
ref="disciplinaryDateEvidentRef"
|
|
outlined
|
|
dense
|
|
class="full-width datepicker"
|
|
hide-bottom-space
|
|
:model-value="
|
|
formData.disciplinaryDateEvident != null
|
|
? date2Thai(formData.disciplinaryDateEvident)
|
|
: null
|
|
"
|
|
:label="`${'วันที่สรุปพยานหลักฐาน'}`"
|
|
:rules="[
|
|
(val) =>
|
|
!!val || `${'กรุณาเลือกวันที่สรุปพยานหลักฐาน'}`,
|
|
]"
|
|
lazy-rules
|
|
>
|
|
<template v-slot:prepend>
|
|
<q-icon
|
|
name="event"
|
|
class="cursor-pointer"
|
|
style="color: var(--q-primary)"
|
|
>
|
|
</q-icon>
|
|
</template>
|
|
</q-input>
|
|
</template>
|
|
</datepicker>
|
|
|
|
<datepicker
|
|
menu-class-name="modalfix"
|
|
for="#dateEvident"
|
|
v-model="formData.disciplinaryDateResult"
|
|
:locale="'th'"
|
|
autoApply
|
|
class="col-xs-12 col-sm-3"
|
|
borderless
|
|
:enableTimePicker="false"
|
|
week-start="0"
|
|
>
|
|
<template #year="{ year }">
|
|
{{ year + 543 }}
|
|
</template>
|
|
<template #year-overlay-value="{ value }">
|
|
{{ parseInt(value + 543) }}
|
|
</template>
|
|
<template #trigger>
|
|
<q-input
|
|
ref="disciplinaryDateResultRef"
|
|
outlined
|
|
dense
|
|
class="full-width datepicker"
|
|
hide-bottom-space
|
|
:model-value="
|
|
formData.disciplinaryDateResult != null
|
|
? date2Thai(formData.disciplinaryDateResult)
|
|
: null
|
|
"
|
|
:label="`${'วันที่รายงานผลการสอบสวน'}`"
|
|
:rules="[
|
|
(val) =>
|
|
!!val || `${'กรุณาเลือกวันที่รายงานผลการสอบสวน'}`,
|
|
]"
|
|
lazy-rules
|
|
>
|
|
<template v-slot:prepend>
|
|
<q-icon
|
|
name="event"
|
|
class="cursor-pointer"
|
|
style="color: var(--q-primary)"
|
|
>
|
|
</q-icon>
|
|
</template>
|
|
</q-input>
|
|
</template>
|
|
</datepicker>
|
|
|
|
<div class="row col-12">
|
|
<q-card
|
|
bordered
|
|
class="row col-12"
|
|
style="border: 1px solid #d6dee1"
|
|
>
|
|
<div
|
|
class="col-xs-12 col-sm-12 text-weight-medium bg-grey-1 q-py-xs q-px-md"
|
|
>
|
|
รายชื่อกรรมการเพื่อพิจารณาความผิดทางวินัย
|
|
<q-btn
|
|
size="12px"
|
|
flat
|
|
round
|
|
dense
|
|
color="add"
|
|
class="q-ml-sm"
|
|
@click="popup()"
|
|
icon="mdi-plus"
|
|
>
|
|
<q-tooltip>เพิ่มกรรมการ</q-tooltip>
|
|
</q-btn>
|
|
</div>
|
|
<div class="col-12"><q-separator /></div>
|
|
<div class="col-xs-12 q-pa-sm row">
|
|
<Table
|
|
class="col-12"
|
|
style="max-height: 80vh"
|
|
:rows="rows"
|
|
:columns="investigateDis.columnsDirector"
|
|
:filter="filter"
|
|
:visible-columns="investigateDis.visibleColumnsDirector"
|
|
v-model:inputfilter="filter"
|
|
v-model:inputvisible="
|
|
investigateDis.visibleColumnsDirector
|
|
"
|
|
:pagination="initialPagination"
|
|
:nornmalData="true"
|
|
:paging="true"
|
|
:titleText="''"
|
|
>
|
|
<template #columns="props">
|
|
<q-tr :props="props" class="cursor-pointer">
|
|
<q-td
|
|
v-for="col in props.cols"
|
|
:key="col.name"
|
|
:props="props"
|
|
>
|
|
<div
|
|
v-if="col.name == 'no'"
|
|
class="table_ellipsis2"
|
|
>
|
|
{{ props.rowIndex + 1 }}
|
|
</div>
|
|
<div v-else class="table_ellipsis2">
|
|
{{ col.value }}
|
|
</div>
|
|
</q-td>
|
|
<q-td>
|
|
<q-btn
|
|
dense
|
|
size="12px"
|
|
flat
|
|
round
|
|
color="red"
|
|
@click="deleteDirector(props.row.id)"
|
|
icon="mdi-delete-outline"
|
|
>
|
|
<q-tooltip>ลบข้อมูล</q-tooltip>
|
|
</q-btn>
|
|
</q-td>
|
|
</q-tr>
|
|
</template>
|
|
</Table>
|
|
</div>
|
|
</q-card>
|
|
</div>
|
|
<q-input
|
|
class="col-xs-12 col-sm-3"
|
|
dense
|
|
outlined
|
|
ref="disciplinaryCaseFaultRef"
|
|
v-model="formData.disciplinaryCaseFault"
|
|
for="#casefault"
|
|
label="กรณีมีความผิด"
|
|
hide-bottom-space
|
|
:rules="[(val) => !!val || `${'กรุณากรอกกรณีมีความผิด'}`]"
|
|
lazy-rules
|
|
/>
|
|
|
|
<q-input
|
|
class="col-xs-12 col-sm-3"
|
|
dense
|
|
hide-bottom-space
|
|
outlined
|
|
for="#whereInvestigate"
|
|
ref="disciplinaryInvestigateAtRef"
|
|
v-model="formData.disciplinaryInvestigateAt"
|
|
label="สอบสวนที่"
|
|
:rules="[(val) => !!val || `${'กรุณากรอกสอบสวนที่'}`]"
|
|
lazy-rules
|
|
/>
|
|
|
|
<q-select
|
|
dense
|
|
class="col-xs-12 col-sm-3"
|
|
outlined
|
|
for="#faultLevel"
|
|
ref="disciplinaryFaultLevelRef"
|
|
v-model="formData.disciplinaryFaultLevel"
|
|
option-label="name"
|
|
option-value="id"
|
|
emit-value
|
|
map-options
|
|
hide-bottom-space
|
|
:options="investigateDis.optionsfaultLevel"
|
|
label="ระดับโทษความผิด"
|
|
:rules="[(val) => !!val || `${'กรุณาเลือกระดับโทษความผิด'}`]"
|
|
lazy-rules
|
|
group-label="group"
|
|
group-values="options"
|
|
>
|
|
</q-select>
|
|
|
|
<q-input
|
|
class="col-xs-12 col-sm-3"
|
|
dense
|
|
for="#refLaw"
|
|
hide-bottom-space
|
|
outlined
|
|
ref="disciplinaryRefLawRef"
|
|
v-model="formData.disciplinaryRefLaw"
|
|
label="อ้างอิงมาตราตามกฎหมาย"
|
|
:rules="[
|
|
(val) => !!val || `${'กรุณากรอกอ้างอิงมาตราตามกฎหมาย'}`,
|
|
]"
|
|
lazy-rules
|
|
/>
|
|
|
|
<q-input
|
|
class="col-xs-12 col-sm-6"
|
|
dense
|
|
outlined
|
|
for="#evidence"
|
|
ref="disciplinarySummaryEvidenceRef"
|
|
hide-bottom-space
|
|
v-model="formData.disciplinarySummaryEvidence"
|
|
label="สรุปพยานหลักฐานสนับสนุนข้อกล่าวหา"
|
|
type="textarea"
|
|
:rules="[(val:string) => !!val || `${'กรุณากรอกสรุปพยานหลักฐานสนับสนุนข้อกล่าวหา'}`]"
|
|
lazy-rules
|
|
/>
|
|
|
|
<q-input
|
|
class="col-xs-12 col-sm-6"
|
|
dense
|
|
outlined
|
|
ref="disciplinaryRecordAccuserRef"
|
|
for="#recordAccuser"
|
|
v-model="formData.disciplinaryRecordAccuser"
|
|
label="บันทึกถ้อยคำของผู้กล่าวหา"
|
|
hide-bottom-space
|
|
type="textarea"
|
|
:rules="[(val:string) => !!val || `${'กรุณากรอกบันทึกถ้อยคำของผู้กล่าวหา'}`]"
|
|
lazy-rules
|
|
/>
|
|
|
|
<q-input
|
|
class="col-xs-12 col-sm-6"
|
|
dense
|
|
outlined
|
|
for="#witnesses"
|
|
ref="disciplinaryWitnessesRef"
|
|
v-model="formData.disciplinaryWitnesses"
|
|
label="พยานและบันทึกถ้อยคำพยาน"
|
|
hide-bottom-space
|
|
type="textarea"
|
|
:rules="[(val:string) => !!val || `${'กรุณากรอกพยานและบันทึกถ้อยคำพยาน'}`]"
|
|
lazy-rules
|
|
/>
|
|
|
|
<q-input
|
|
class="col-xs-12 col-sm-6"
|
|
dense
|
|
outlined
|
|
for="#InvestResults"
|
|
ref="resultRef"
|
|
v-model="formData.result"
|
|
label="ผลการสอบสวน"
|
|
hide-bottom-space
|
|
type="textarea"
|
|
:rules="[(val:string) => !!val || `${'กรุณากรอกผลการสอบสวน'}`]"
|
|
lazy-rules
|
|
/>
|
|
|
|
<div class="row col-12">
|
|
<q-card
|
|
bordered
|
|
class="row col-12"
|
|
style="border: 1px solid #d6dee1"
|
|
>
|
|
<div
|
|
class="col-xs-12 col-sm-12 text-weight-medium bg-grey-1 q-py-xs q-px-md"
|
|
>
|
|
ผลการพิจารณาความผิดทางวินัย
|
|
</div>
|
|
|
|
<div class="col-12"><q-separator /></div>
|
|
|
|
<div class="col-xs-12 q-pa-sm row">
|
|
<div class="row col-12 q-col-gutter-md">
|
|
<div class="col-3">
|
|
<q-select
|
|
for="#fault"
|
|
outlined
|
|
dense
|
|
:readonly="isUpdate"
|
|
lazy-rules
|
|
ref="disciplinaryStatusResultRef"
|
|
v-model="formData.disciplinaryStatusResult"
|
|
:rules="[
|
|
(val) => !!val || `${'กรุณาเลือกผลการสอบสวน'}`,
|
|
]"
|
|
:options="mainStore.statusResultOptions"
|
|
label="ผลการสอบสวน"
|
|
emit-value
|
|
map-options
|
|
option-label="name"
|
|
option-value="id"
|
|
use-input
|
|
@filter="(inputValue: any,
|
|
doneFn: Function) => investigateDis.filterFnOptionsType(inputValue, doneFn, 'offenseDetailsOps'
|
|
)"
|
|
><template v-slot:no-option>
|
|
<q-item>
|
|
<q-item-section class="text-grey">
|
|
ไม่มีข้อมูล
|
|
</q-item-section>
|
|
</q-item>
|
|
</template>
|
|
</q-select>
|
|
</div>
|
|
|
|
<div
|
|
v-if="
|
|
formData.disciplinaryStatusResult == 'HAVE_CAUSE'
|
|
"
|
|
class="col-3"
|
|
>
|
|
<q-select
|
|
for="#fault"
|
|
outlined
|
|
dense
|
|
ref="disciplinaryCauseTextRef"
|
|
v-model="formData.disciplinaryCauseText"
|
|
:rules="[
|
|
(val) =>
|
|
!!val || `${'กรุณาเลือกร้ายแรง/ไม่ร้ายแรง'}`,
|
|
]"
|
|
:options="investigateDis.causeTextOptions"
|
|
label="ร้ายแรง/ไม่ร้ายแรง"
|
|
emit-value
|
|
map-options
|
|
option-label="name"
|
|
option-value="id"
|
|
use-input
|
|
><template v-slot:no-option>
|
|
<q-item>
|
|
<q-item-section class="text-grey">
|
|
ไม่มีข้อมูล
|
|
</q-item-section>
|
|
</q-item>
|
|
</template>
|
|
</q-select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row col-12">
|
|
<q-input
|
|
class="full-width cursor-pointer"
|
|
outlined
|
|
ref="disciplinaryResultRef"
|
|
dense
|
|
lazy-rules
|
|
borderless
|
|
v-model="formData.disciplinaryResult"
|
|
:rules="[(val) => !!val || `${'กรุณากรอกเหตุผล'}`]"
|
|
hide-bottom-space
|
|
:label="`${'เหตุผล'}`"
|
|
type="textarea"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</q-card>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<q-separator />
|
|
<div class="row col-12 q-pa-sm">
|
|
<q-space />
|
|
<q-btn
|
|
for="ButtonOnSubmit"
|
|
id="formSubmit"
|
|
color="secondary"
|
|
label="บันทึก"
|
|
type="submit"
|
|
><q-tooltip>บับทึกข้อมูล</q-tooltip></q-btn
|
|
>
|
|
</div>
|
|
</q-card>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<!-- อัพโหลดไฟล์ -->
|
|
<div class="col-sm-12 col-md-3">
|
|
<!-- ยังไม่มี api -->
|
|
<UploadFile
|
|
title="อัปโหลดไฟล์เอกสารที่เกี่ยวข้องกับการสอบสวน"
|
|
label="เลือกไฟล์"
|
|
:files="disciplineDisciplinary_DocRelevants"
|
|
:id="id"
|
|
type="relevant"
|
|
:fetchData="props.fetchData"
|
|
/>
|
|
|
|
<UploadFile
|
|
title="อัปโหลดหลักฐานสนับสนุนข้อกล่าวหา"
|
|
label="เลือกไฟล์"
|
|
:files="disciplineDisciplinary_DocSummaryEvidences"
|
|
:id="id"
|
|
type="summaryEvidence"
|
|
:fetchData="props.fetchData"
|
|
/>
|
|
<UploadFile
|
|
title="อัปโหลดบันทึกถ้อยคำของผู้กล่าวหา"
|
|
label="เลือกไฟล์"
|
|
:files="disciplineDisciplinary_DocRecordAccusers"
|
|
:id="id"
|
|
type="recordAccuser"
|
|
:fetchData="props.fetchData"
|
|
/>
|
|
<UploadFile
|
|
title="อัปโหลดพยานและการบันทึกถ้อยคำ"
|
|
label="เลือกไฟล์"
|
|
:files="disciplineDisciplinary_DocWitnessess"
|
|
:id="id"
|
|
type="witnesses"
|
|
:fetchData="props.fetchData"
|
|
/>
|
|
<UploadFile
|
|
title="อัปโหลดไฟล์เอกสารหลักฐานอื่น ๆ"
|
|
label="เลือกไฟล์"
|
|
:files="disciplineDisciplinary_DocOthers"
|
|
:id="id"
|
|
type="other"
|
|
:fetchData="props.fetchData"
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Popup ผู้ถูกร้องเรียน -->
|
|
<DialogAddPersonal
|
|
title="ผู้ถูกร้องเรียน"
|
|
:checkId="formData.persons"
|
|
:modal="modalPerson"
|
|
btn-title="เพิ่มรายชื่อผู้ถูกสอบสวน"
|
|
:close="toggleModal"
|
|
:save="addPerson"
|
|
@returnData="handleSave"
|
|
/>
|
|
|
|
<DialogDirector
|
|
v-model:Modal="modal"
|
|
:clickClose="clickClose"
|
|
:rows2="listDirector"
|
|
v-model:filterKeyword2="filterKeyword2"
|
|
v-model:type="type"
|
|
:get-list="fetchDListDirector"
|
|
:rowsPerPage="rowsPerPage"
|
|
:page="page"
|
|
:maxPage="maxPage"
|
|
:selected-row="rows"
|
|
@update:pagination="updatePaging"
|
|
@returnDirector="returnDirector"
|
|
/>
|
|
<!-- :fecthlistappointment="fecthlistappointment" -->
|
|
</template>
|
|
@/modules/11_discipline/store/store |