แก้ ui
This commit is contained in:
parent
5c28d14047
commit
66124a819d
9 changed files with 246 additions and 189 deletions
|
|
@ -297,6 +297,7 @@ function confirmCancelInvestigate() {
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hideLoader();
|
hideLoader();
|
||||||
|
success($q, "ยกเลิกยุติเรื่องสำเร็จ");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,7 @@ function onSubmit() {
|
||||||
async () => {
|
async () => {
|
||||||
if (mainStore.rowsAdd) {
|
if (mainStore.rowsAdd) {
|
||||||
formData.persons = await mainStore.rowsAdd;
|
formData.persons = await mainStore.rowsAdd;
|
||||||
}
|
}
|
||||||
await props.onSubmit(formData);
|
await props.onSubmit(formData);
|
||||||
isSave.value = false;
|
isSave.value = false;
|
||||||
},
|
},
|
||||||
|
|
@ -624,6 +624,7 @@ onMounted(() => {
|
||||||
ref="dateReceivedRef"
|
ref="dateReceivedRef"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
|
:input-style="isReadonly ? { color: 'teal' }:{color:'black'}"
|
||||||
:readonly="isReadonly"
|
:readonly="isReadonly"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
class="full-width datepicker"
|
class="full-width datepicker"
|
||||||
|
|
@ -700,6 +701,7 @@ onMounted(() => {
|
||||||
for="inputDateconsideration"
|
for="inputDateconsideration"
|
||||||
ref="dateConsiderationRef"
|
ref="dateConsiderationRef"
|
||||||
outlined
|
outlined
|
||||||
|
:input-style="isReadonly ? { color: 'teal' }:{color:'black'}"
|
||||||
dense
|
dense
|
||||||
class="full-width datepicker"
|
class="full-width datepicker"
|
||||||
:model-value="
|
:model-value="
|
||||||
|
|
@ -708,11 +710,10 @@ onMounted(() => {
|
||||||
: null
|
: null
|
||||||
"
|
"
|
||||||
:readonly="isReadonly"
|
:readonly="isReadonly"
|
||||||
label="วันที่กำหนดวันพิจารณา"
|
label="วันที่กำหนดพิจารณา"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:rules="[
|
:rules="[
|
||||||
(val) =>
|
(val) => !!val || `${'กรุณาเลือกวันที่กำหนดพิจารณา'}`,
|
||||||
!!val || `${'กรุณาเลือกวันที่กำหนดวันพิจารณา'}`,
|
|
||||||
]"
|
]"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
>
|
>
|
||||||
|
|
@ -773,6 +774,7 @@ onMounted(() => {
|
||||||
for="inputDatewarn"
|
for="inputDatewarn"
|
||||||
ref="dateNotificationRef"
|
ref="dateNotificationRef"
|
||||||
outlined
|
outlined
|
||||||
|
:input-style="isReadonly ? { color: 'teal' }:{color:'black'}"
|
||||||
dense
|
dense
|
||||||
:readonly="isReadonly"
|
:readonly="isReadonly"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
|
@ -997,4 +999,4 @@ onMounted(() => {
|
||||||
min-height: 25px;
|
min-height: 25px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@/modules/11_discipline/store/store
|
@/modules/11_discipline/store/store
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
import { onMounted, reactive, ref, watch } from "vue";
|
import { onMounted, reactive, ref, watch } from "vue";
|
||||||
import FormComplaints from "@/modules/11_discipline/components/1_Complaint/Form.vue"; //เรื่องร้องเรียน
|
import FormComplaints from "@/modules/11_discipline/components/1_Complaint/Form.vue"; //เรื่องร้องเรียน
|
||||||
import FormInvestigatefacts from "@/modules/11_discipline/components/2_InvestigateFacts/Form.vue"; //สืบสวนข้อเท็จจริง
|
import FormInvestigatefacts from "@/modules/11_discipline/components/2_InvestigateFacts/Form.vue"; //สืบสวนข้อเท็จจริง
|
||||||
import { useRoute } from "vue-router";
|
import { useRouter, useRoute } from "vue-router";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useInvestigateFactStore } from "@/modules/11_discipline/store/InvestigateFactStore";
|
import { useInvestigateFactStore } from "@/modules/11_discipline/store/InvestigateFactStore";
|
||||||
import { useDisciplineMainStore } from "@/modules/11_discipline/store/main";
|
import { useDisciplineMainStore } from "@/modules/11_discipline/store/main";
|
||||||
|
|
@ -25,6 +25,7 @@ const mixin = useCounterMixin();
|
||||||
const store = useInvestigateFactStore();
|
const store = useInvestigateFactStore();
|
||||||
const { dialogConfirm, showLoader, success, hideLoader, messageError } = mixin;
|
const { dialogConfirm, showLoader, success, hideLoader, messageError } = mixin;
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
const router = useRouter();
|
||||||
const id = ref<string>(route.params.id as string);
|
const id = ref<string>(route.params.id as string);
|
||||||
|
|
||||||
/** ข้อมูล v-model ของฟอร์มสืบสวน */
|
/** ข้อมูล v-model ของฟอร์มสืบสวน */
|
||||||
|
|
@ -138,9 +139,11 @@ function getData() {
|
||||||
.get(config.API.investigateById(id.value))
|
.get(config.API.investigateById(id.value))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const dataList = res.data.result;
|
const dataList = res.data.result;
|
||||||
|
console.log(dataList)
|
||||||
data.id = dataList.id;
|
data.id = dataList.id;
|
||||||
data.idComplaint = dataList.idComplaint;
|
data.idComplaint = dataList.idComplaint;
|
||||||
data.respondentType = dataList.respondentType;
|
data.respondentType = dataList.respondentType;
|
||||||
|
data.organizationId = dataList.organizationId;
|
||||||
data.persons = dataList.persons;
|
data.persons = dataList.persons;
|
||||||
data.investigationDetail = dataList.investigationDetail;
|
data.investigationDetail = dataList.investigationDetail;
|
||||||
data.investigationDetailOther = dataList.investigationDetailOther;
|
data.investigationDetailOther = dataList.investigationDetailOther;
|
||||||
|
|
@ -157,6 +160,7 @@ function getData() {
|
||||||
data.investigationStatusResult = dataList.investigationStatusResult;
|
data.investigationStatusResult = dataList.investigationStatusResult;
|
||||||
data.investigationExtendStatus = dataList.investigationExtendStatus;
|
data.investigationExtendStatus = dataList.investigationExtendStatus;
|
||||||
data.investigationDaysExtend = dataList.investigationDaysExtend;
|
data.investigationDaysExtend = dataList.investigationDaysExtend;
|
||||||
|
console.log(dataList)
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
@ -193,13 +197,33 @@ async function onSubmit(data: any) {
|
||||||
const modalPopup = ref<boolean>(false);
|
const modalPopup = ref<boolean>(false);
|
||||||
/** ยืนยัน ส่งไปสอบสวน */
|
/** ยืนยัน ส่งไปสอบสวน */
|
||||||
function sentInvestigate() {
|
function sentInvestigate() {
|
||||||
modalPopup.value = true;
|
if (mainStore.rowsAdd.length > 0) {
|
||||||
// dialogConfirm(
|
modalPopup.value = true;
|
||||||
// $q,
|
} else {
|
||||||
// () => confirmSentInvestigate(),
|
dialogConfirm(
|
||||||
// "ยืนยันส่งไปสอบสวน",
|
$q,
|
||||||
// "ต้องการยืนยันส่งไปสอบสวนใช่หรือไม่?"
|
() => sentConfirmNoPerson(),
|
||||||
// );
|
"ยืนยันส่งไปสอบสวน",
|
||||||
|
"ต้องการยืนยันส่งไปสอบสวนใช่หรือไม่?"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function sentConfirmNoPerson() {
|
||||||
|
showLoader();
|
||||||
|
http
|
||||||
|
.put(config.API.investigateApprove(id.value), {
|
||||||
|
persons: [],
|
||||||
|
})
|
||||||
|
.then((res) => {})
|
||||||
|
.catch((e) => {
|
||||||
|
messageError($q, e);
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
hideLoader();
|
||||||
|
getData();
|
||||||
|
router.push(`/discipline/investigatefacts`)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function closePopup() {
|
function closePopup() {
|
||||||
|
|
@ -237,12 +261,13 @@ function confirmEndInvestigate() {
|
||||||
http
|
http
|
||||||
.get(config.API.investigateReject(id.value))
|
.get(config.API.investigateReject(id.value))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(async () => {
|
.finally(async () => {
|
||||||
|
success($q, "ยุติเรื่องสำเร็จ");
|
||||||
await getData();
|
await getData();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -260,6 +285,7 @@ function confirmCancelInvestigate() {
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hideLoader();
|
hideLoader();
|
||||||
|
success($q, "ยกเลิกยุติเรื่องสำเร็จ");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -219,6 +219,7 @@ watch(props.data, async () => {
|
||||||
isUpdate.value = true;
|
isUpdate.value = true;
|
||||||
formData.id = props.data.id;
|
formData.id = props.data.id;
|
||||||
formData.complaint = props.data.complaint;
|
formData.complaint = props.data.complaint;
|
||||||
|
formData.organizationId = props.data.organizationId;
|
||||||
formData.respondentType = props.data.respondentType;
|
formData.respondentType = props.data.respondentType;
|
||||||
formData.complaintdetail = props.data.complaintdetail;
|
formData.complaintdetail = props.data.complaintdetail;
|
||||||
formData.investigationDescription = props.data.investigationDescription;
|
formData.investigationDescription = props.data.investigationDescription;
|
||||||
|
|
@ -764,6 +765,7 @@ onMounted(async () => {
|
||||||
for="#date"
|
for="#date"
|
||||||
class="full-width cursor-pointer"
|
class="full-width cursor-pointer"
|
||||||
ref="dateRef"
|
ref="dateRef"
|
||||||
|
:input-style="isReadonly ? { color: 'teal' }:{color:'black'}"
|
||||||
:readonly="isReadonly"
|
:readonly="isReadonly"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
|
|
@ -850,6 +852,7 @@ onMounted(async () => {
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<q-input
|
<q-input
|
||||||
for="#dateEnd"
|
for="#dateEnd"
|
||||||
|
:input-style="isReadonly ? { color: 'teal' }:{color:'black'}"
|
||||||
ref="dateEndRef"
|
ref="dateEndRef"
|
||||||
class="full-width cursor-pointer"
|
class="full-width cursor-pointer"
|
||||||
:readonly="isReadonly"
|
:readonly="isReadonly"
|
||||||
|
|
|
||||||
|
|
@ -197,6 +197,7 @@ function confirmSentIssueGate() {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
router.push(`/discipline/disciplinary`)
|
||||||
fetchDetailDisciplinary();
|
fetchDetailDisciplinary();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -232,6 +233,7 @@ function confirmEndInvestigate() {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
success($q, "ยุติเรื่องสำเร็จ");
|
||||||
fetchDetailDisciplinary();
|
fetchDetailDisciplinary();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -247,6 +249,7 @@ function confirmCancelInvestigate() {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
success($q, "ยกเลิกยุติเรื่องสำเร็จ");
|
||||||
fetchDetailDisciplinary();
|
fetchDetailDisciplinary();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -316,6 +319,7 @@ function emitPerson(data: PersonsArray[]) {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
success($q, "ส่งไปพักราชการสำเร็จ");
|
||||||
hideLoader();
|
hideLoader();
|
||||||
fetchDetailDisciplinary();
|
fetchDetailDisciplinary();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -457,68 +457,69 @@ onMounted(async () => {
|
||||||
<q-card bordered>
|
<q-card bordered>
|
||||||
<div class="col-12 row q-pa-md">
|
<div class="col-12 row q-pa-md">
|
||||||
<div class="col-12 row q-col-gutter-md">
|
<div class="col-12 row q-col-gutter-md">
|
||||||
<div class="col-xs-12 col-sm-3">
|
<div class="row col-12 q-col-gutter-x-md">
|
||||||
<q-select
|
<div class="col-xs-12 col-sm-3">
|
||||||
:readonly="isReadonly"
|
<q-select
|
||||||
for="SelectrespondentType"
|
:readonly="isReadonly"
|
||||||
v-model="formData.respondentType"
|
for="SelectrespondentType"
|
||||||
ref="respondentTypeRef"
|
v-model="formData.respondentType"
|
||||||
dense
|
ref="respondentTypeRef"
|
||||||
outlined
|
dense
|
||||||
label="ผู้ถูกร้องเรียน"
|
outlined
|
||||||
option-value="id"
|
label="ผู้ถูกร้องเรียน"
|
||||||
option-label="name"
|
option-value="id"
|
||||||
emit-value
|
option-label="name"
|
||||||
use-input
|
emit-value
|
||||||
map-options
|
use-input
|
||||||
hide-bottom-space
|
map-options
|
||||||
:options="complainstStore.complainantoptions"
|
hide-bottom-space
|
||||||
:rules="[(val) => !!val || `${'กรุณาเลือกผู้ร้องเรียน'}`]"
|
:options="complainstStore.complainantoptions"
|
||||||
lazy-rules
|
:rules="[(val) => !!val || `${'กรุณาเลือกผู้ร้องเรียน'}`]"
|
||||||
@update:model-value="
|
lazy-rules
|
||||||
selectComplainant(formData.respondentType);
|
@update:model-value="
|
||||||
changeFormData();
|
selectComplainant(formData.respondentType);
|
||||||
"
|
changeFormData();
|
||||||
@filter="(inputValue: any,
|
"
|
||||||
|
@filter="(inputValue: any,
|
||||||
doneFn: Function) => filterSelector(inputValue, doneFn, 'filterrespondentType'
|
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"
|
||||||
>
|
>
|
||||||
<template v-slot:no-option>
|
<q-select
|
||||||
<q-item>
|
:readonly="isReadonly"
|
||||||
<q-item-section class="text-grey">
|
for="inputOffice"
|
||||||
ไม่มีข้อมูล
|
name="organizationId"
|
||||||
</q-item-section>
|
ref="organizationIdRef"
|
||||||
</q-item>
|
dense
|
||||||
</template>
|
hide-bottom-space
|
||||||
</q-select>
|
outlined
|
||||||
</div>
|
option-label="name"
|
||||||
<div
|
option-value="id"
|
||||||
class="col-xs-12 col-sm-3"
|
emit-value
|
||||||
v-if="formData.respondentType === 'ORGANIZATION'"
|
map-options
|
||||||
id="organizationId"
|
v-model="formData.organizationId"
|
||||||
>
|
:options="organizationOption"
|
||||||
<q-select
|
label="เลือกสำนักงาน"
|
||||||
:readonly="isReadonly"
|
:rules="[(val) => !!val || `${'กรุณาเลือกสำนักงาน'}`]"
|
||||||
for="inputOffice"
|
lazy-rules
|
||||||
name="organizationId"
|
@update:model-value="changeFormData()"
|
||||||
ref="organizationIdRef"
|
/>
|
||||||
dense
|
</div>
|
||||||
hide-bottom-space
|
<div class="col-xs-12 col-sm-3" id="consideredAgency">
|
||||||
outlined
|
<!-- <q-select
|
||||||
option-label="name"
|
|
||||||
option-value="id"
|
|
||||||
emit-value
|
|
||||||
map-options
|
|
||||||
v-model="formData.organizationId"
|
|
||||||
:options="organizationOption"
|
|
||||||
label="เลือกสำนักงาน"
|
|
||||||
:rules="[(val) => !!val || `${'กรุณาเลือกสำนักงาน'}`]"
|
|
||||||
lazy-rules
|
|
||||||
@update:model-value="changeFormData()"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-12 col-sm-3" id="consideredAgency">
|
|
||||||
<!-- <q-select
|
|
||||||
ref="consideredAgencyRef"
|
ref="consideredAgencyRef"
|
||||||
for="selectAgency"
|
for="selectAgency"
|
||||||
dense
|
dense
|
||||||
|
|
@ -546,12 +547,9 @@ onMounted(async () => {
|
||||||
</q-item>
|
</q-item>
|
||||||
</template>
|
</template>
|
||||||
</q-select> -->
|
</q-select> -->
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
|
||||||
v-if="formData.respondentType !== 'ORGANIZATION'"
|
|
||||||
class="col-6"
|
|
||||||
></div>
|
|
||||||
<div
|
<div
|
||||||
class="row col-12"
|
class="row col-12"
|
||||||
v-if="formData.respondentType === 'PERSON'"
|
v-if="formData.respondentType === 'PERSON'"
|
||||||
|
|
@ -665,106 +663,114 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
<datepicker
|
|
||||||
:readonly="isReadonly"
|
|
||||||
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"
|
|
||||||
@update:model-value="changeFormData()"
|
|
||||||
>
|
|
||||||
<template #year="{ year }">
|
|
||||||
{{ year + 543 }}
|
|
||||||
</template>
|
|
||||||
<template #year-overlay-value="{ value }">
|
|
||||||
{{ parseInt(value + 543) }}
|
|
||||||
</template>
|
|
||||||
<template #trigger>
|
|
||||||
<q-input
|
|
||||||
:readonly="isReadonly"
|
|
||||||
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
|
|
||||||
:readonly="isReadonly"
|
|
||||||
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"
|
|
||||||
@update:model-value="changeFormData()"
|
|
||||||
>
|
|
||||||
<template #year="{ year }">
|
|
||||||
{{ year + 543 }}
|
|
||||||
</template>
|
|
||||||
<template #year-overlay-value="{ value }">
|
|
||||||
{{ parseInt(value + 543) }}
|
|
||||||
</template>
|
|
||||||
<template #trigger>
|
|
||||||
<q-input
|
|
||||||
:readonly="isReadonly"
|
|
||||||
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>
|
|
||||||
|
|
||||||
|
<div class="row col-12 q-col-gutter-x-md">
|
||||||
|
<datepicker
|
||||||
|
:readonly="isReadonly"
|
||||||
|
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"
|
||||||
|
@update:model-value="changeFormData()"
|
||||||
|
>
|
||||||
|
<template #year="{ year }">
|
||||||
|
{{ year + 543 }}
|
||||||
|
</template>
|
||||||
|
<template #year-overlay-value="{ value }">
|
||||||
|
{{ parseInt(value + 543) }}
|
||||||
|
</template>
|
||||||
|
<template #trigger>
|
||||||
|
<q-input
|
||||||
|
:readonly="isReadonly"
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
:input-style="
|
||||||
|
isReadonly ? { color: 'teal' } : { color: 'black' }
|
||||||
|
"
|
||||||
|
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
|
||||||
|
:readonly="isReadonly"
|
||||||
|
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"
|
||||||
|
@update:model-value="changeFormData()"
|
||||||
|
>
|
||||||
|
<template #year="{ year }">
|
||||||
|
{{ year + 543 }}
|
||||||
|
</template>
|
||||||
|
<template #year-overlay-value="{ value }">
|
||||||
|
{{ parseInt(value + 543) }}
|
||||||
|
</template>
|
||||||
|
<template #trigger>
|
||||||
|
<q-input
|
||||||
|
:readonly="isReadonly"
|
||||||
|
ref="disciplinaryDateAllegationRef"
|
||||||
|
outlined
|
||||||
|
:input-style="
|
||||||
|
isReadonly ? { color: 'teal' } : { color: 'black' }
|
||||||
|
"
|
||||||
|
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>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row col-12">
|
<div class="row col-12">
|
||||||
<q-card
|
<q-card
|
||||||
|
|
@ -822,6 +828,11 @@ onMounted(async () => {
|
||||||
ref="dateRef"
|
ref="dateRef"
|
||||||
:readonly="isReadonly"
|
:readonly="isReadonly"
|
||||||
outlined
|
outlined
|
||||||
|
:input-style="
|
||||||
|
isReadonly
|
||||||
|
? { color: 'teal' }
|
||||||
|
: { color: 'black' }
|
||||||
|
"
|
||||||
dense
|
dense
|
||||||
lazy-rules
|
lazy-rules
|
||||||
borderless
|
borderless
|
||||||
|
|
@ -911,6 +922,11 @@ onMounted(async () => {
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
lazy-rules
|
lazy-rules
|
||||||
|
:input-style="
|
||||||
|
isReadonly
|
||||||
|
? { color: 'teal' }
|
||||||
|
: { color: 'black' }
|
||||||
|
"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
borderless
|
borderless
|
||||||
:model-value="
|
:model-value="
|
||||||
|
|
@ -942,7 +958,6 @@ onMounted(async () => {
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<datepicker
|
<datepicker
|
||||||
:readonly="isReadonly"
|
:readonly="isReadonly"
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
|
|
@ -968,8 +983,11 @@ onMounted(async () => {
|
||||||
ref="disciplinaryDateEvidentRef"
|
ref="disciplinaryDateEvidentRef"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
class="full-width datepicker"
|
class="full-width"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
:input-style="
|
||||||
|
isReadonly ? { color: 'teal' } : { color: 'black' }
|
||||||
|
"
|
||||||
:model-value="
|
:model-value="
|
||||||
formData.disciplinaryDateEvident != null
|
formData.disciplinaryDateEvident != null
|
||||||
? date2Thai(formData.disciplinaryDateEvident)
|
? date2Thai(formData.disciplinaryDateEvident)
|
||||||
|
|
@ -986,7 +1004,7 @@ onMounted(async () => {
|
||||||
<q-icon
|
<q-icon
|
||||||
name="event"
|
name="event"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
style="color: var(--q-primary)"
|
color="primary"
|
||||||
>
|
>
|
||||||
</q-icon>
|
</q-icon>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -997,7 +1015,7 @@ onMounted(async () => {
|
||||||
<datepicker
|
<datepicker
|
||||||
:readonly="isReadonly"
|
:readonly="isReadonly"
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
for="#dateEvident"
|
for="#dateResult"
|
||||||
v-model="formData.disciplinaryDateResult"
|
v-model="formData.disciplinaryDateResult"
|
||||||
:locale="'th'"
|
:locale="'th'"
|
||||||
autoApply
|
autoApply
|
||||||
|
|
@ -1013,13 +1031,17 @@ onMounted(async () => {
|
||||||
<template #year-overlay-value="{ value }">
|
<template #year-overlay-value="{ value }">
|
||||||
{{ parseInt(value + 543) }}
|
{{ parseInt(value + 543) }}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<q-input
|
<q-input
|
||||||
:readonly="isReadonly"
|
:readonly="isReadonly"
|
||||||
ref="disciplinaryDateResultRef"
|
ref="disciplinaryDateResultRef"
|
||||||
outlined
|
outlined
|
||||||
|
:input-style="
|
||||||
|
isReadonly ? { color: 'teal' } : { color: 'black' }
|
||||||
|
"
|
||||||
dense
|
dense
|
||||||
class="full-width datepicker"
|
class="full-width"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:model-value="
|
:model-value="
|
||||||
formData.disciplinaryDateResult != null
|
formData.disciplinaryDateResult != null
|
||||||
|
|
@ -1037,14 +1059,13 @@ onMounted(async () => {
|
||||||
<q-icon
|
<q-icon
|
||||||
name="event"
|
name="event"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
style="color: var(--q-primary)"
|
color="primary"
|
||||||
>
|
>
|
||||||
</q-icon>
|
</q-icon>
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
</template>
|
</template>
|
||||||
</datepicker>
|
</datepicker>
|
||||||
|
|
||||||
<div class="row col-12">
|
<div class="row col-12">
|
||||||
<q-card
|
<q-card
|
||||||
bordered
|
bordered
|
||||||
|
|
@ -1461,4 +1482,4 @@ onMounted(async () => {
|
||||||
@update:pagination="updatePaging"
|
@update:pagination="updatePaging"
|
||||||
@returnDirector="returnDirector"
|
@returnDirector="returnDirector"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -67,8 +67,8 @@ function onclickSend() {
|
||||||
emit("returnPerson", selected.value);
|
emit("returnPerson", selected.value);
|
||||||
props.close?.();
|
props.close?.();
|
||||||
},
|
},
|
||||||
`ยืนยันการส่ง${props.title}`,
|
`ยืนยันการ${props.title}`,
|
||||||
`ต้องการยืนยันการส่ง${props.title}หรือไม่`
|
`ต้องการยืนยันการ${props.title}หรือไม่`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@ export const useInvestigateDisStore = defineStore(
|
||||||
{
|
{
|
||||||
name: "title",
|
name: "title",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "เรื่อง",
|
label: "เรื่องร้องเรียน",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "title",
|
field: "title",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
@ -160,7 +160,7 @@ export const useInvestigateDisStore = defineStore(
|
||||||
{
|
{
|
||||||
name: "respondentType",
|
name: "respondentType",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ผู้ถูกสืบสวน",
|
label: "ผู้ถูกสอบสวน",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "respondentType",
|
field: "respondentType",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ export const useInvestigateFactStore = defineStore(
|
||||||
{
|
{
|
||||||
name: "respondentType",
|
name: "respondentType",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ผู้ถูกสอบสวน",
|
label: "ผู้ถูกสืบสวน",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "respondentType",
|
field: "respondentType",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue