เเก้ วินัย
This commit is contained in:
parent
eb08a9f209
commit
c4a3415316
6 changed files with 27 additions and 23 deletions
|
|
@ -624,7 +624,7 @@ onMounted(() => {
|
|||
ref="dateReceivedRef"
|
||||
outlined
|
||||
dense
|
||||
:input-style="isReadonly ? { color: 'teal' }:{color:'black'}"
|
||||
:input-style="isReadonly ? { color: 'black' }:{color:'teal'}"
|
||||
:readonly="isReadonly"
|
||||
hide-bottom-space
|
||||
class="full-width datepicker"
|
||||
|
|
@ -701,7 +701,7 @@ onMounted(() => {
|
|||
for="inputDateconsideration"
|
||||
ref="dateConsiderationRef"
|
||||
outlined
|
||||
:input-style="isReadonly ? { color: 'teal' }:{color:'black'}"
|
||||
:input-style="isReadonly ? { color: 'black' }:{color:'teal'}"
|
||||
dense
|
||||
class="full-width datepicker"
|
||||
:model-value="
|
||||
|
|
@ -774,7 +774,7 @@ onMounted(() => {
|
|||
for="inputDatewarn"
|
||||
ref="dateNotificationRef"
|
||||
outlined
|
||||
:input-style="isReadonly ? { color: 'teal' }:{color:'black'}"
|
||||
:input-style="isReadonly ? { color: 'black' }:{color:'teal'}"
|
||||
dense
|
||||
:readonly="isReadonly"
|
||||
hide-bottom-space
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ function getData() {
|
|||
.get(config.API.investigateById(id.value))
|
||||
.then((res) => {
|
||||
const dataList = res.data.result;
|
||||
console.log(dataList)
|
||||
console.log(dataList);
|
||||
data.id = dataList.id;
|
||||
data.idComplaint = dataList.idComplaint;
|
||||
data.respondentType = dataList.respondentType;
|
||||
|
|
@ -160,7 +160,7 @@ function getData() {
|
|||
data.investigationStatusResult = dataList.investigationStatusResult;
|
||||
data.investigationExtendStatus = dataList.investigationExtendStatus;
|
||||
data.investigationDaysExtend = dataList.investigationDaysExtend;
|
||||
console.log(dataList)
|
||||
console.log(dataList);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -222,7 +222,7 @@ function sentConfirmNoPerson() {
|
|||
.finally(() => {
|
||||
hideLoader();
|
||||
getData();
|
||||
router.push(`/discipline/investigatefacts`)
|
||||
router.push(`/discipline/investigatefacts`);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -261,13 +261,12 @@ function confirmEndInvestigate() {
|
|||
http
|
||||
.get(config.API.investigateReject(id.value))
|
||||
.then((res) => {
|
||||
|
||||
success($q, "ยุติเรื่องสำเร็จ");
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
success($q, "ยุติเรื่องสำเร็จ");
|
||||
await getData();
|
||||
});
|
||||
}
|
||||
|
|
@ -407,4 +406,4 @@ watch(
|
|||
padding: 0;
|
||||
background-color: #f0f3f3;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -765,7 +765,7 @@ onMounted(async () => {
|
|||
for="#date"
|
||||
class="full-width cursor-pointer"
|
||||
ref="dateRef"
|
||||
:input-style="isReadonly ? { color: 'teal' }:{color:'black'}"
|
||||
:input-style="isReadonly ? { color: 'black' }:{color:'teal'}"
|
||||
:readonly="isReadonly"
|
||||
outlined
|
||||
dense
|
||||
|
|
@ -852,7 +852,7 @@ onMounted(async () => {
|
|||
<template #trigger>
|
||||
<q-input
|
||||
for="#dateEnd"
|
||||
:input-style="isReadonly ? { color: 'teal' }:{color:'black'}"
|
||||
:input-style="isReadonly ? { color: 'black' }:{color:'teal'}"
|
||||
ref="dateEndRef"
|
||||
class="full-width cursor-pointer"
|
||||
:readonly="isReadonly"
|
||||
|
|
|
|||
|
|
@ -228,12 +228,14 @@ function confirmEndInvestigate() {
|
|||
showLoader();
|
||||
http
|
||||
.get(config.API.disciplinaryReject(id.value))
|
||||
.then((res) => {})
|
||||
.then((res) => {
|
||||
success($q, "ยุติเรื่องสำเร็จ");
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
success($q, "ยุติเรื่องสำเร็จ");
|
||||
|
||||
fetchDetailDisciplinary();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -690,7 +690,7 @@ onMounted(async () => {
|
|||
outlined
|
||||
dense
|
||||
:input-style="
|
||||
isReadonly ? { color: 'teal' } : { color: 'black' }
|
||||
isReadonly ? { color: 'black' } : { color: 'teal' }
|
||||
"
|
||||
class="col-xs-12 col-sm-4"
|
||||
hide-bottom-space
|
||||
|
|
@ -742,7 +742,7 @@ onMounted(async () => {
|
|||
ref="disciplinaryDateAllegationRef"
|
||||
outlined
|
||||
:input-style="
|
||||
isReadonly ? { color: 'teal' } : { color: 'black' }
|
||||
isReadonly ? { color: 'black' } : { color: 'teal' }
|
||||
"
|
||||
dense
|
||||
class="col-xs-12 col-sm-4"
|
||||
|
|
@ -830,8 +830,8 @@ onMounted(async () => {
|
|||
outlined
|
||||
:input-style="
|
||||
isReadonly
|
||||
? { color: 'teal' }
|
||||
: { color: 'black' }
|
||||
? { color: 'black' }
|
||||
: { color: 'teal' }
|
||||
"
|
||||
dense
|
||||
lazy-rules
|
||||
|
|
@ -924,8 +924,8 @@ onMounted(async () => {
|
|||
lazy-rules
|
||||
:input-style="
|
||||
isReadonly
|
||||
? { color: 'teal' }
|
||||
: { color: 'black' }
|
||||
? { color: 'black' }
|
||||
: { color: 'teal' }
|
||||
"
|
||||
hide-bottom-space
|
||||
borderless
|
||||
|
|
@ -986,7 +986,7 @@ onMounted(async () => {
|
|||
class="full-width"
|
||||
hide-bottom-space
|
||||
:input-style="
|
||||
isReadonly ? { color: 'teal' } : { color: 'black' }
|
||||
isReadonly ? { color: 'black' } : { color: 'teal' }
|
||||
"
|
||||
:model-value="
|
||||
formData.disciplinaryDateEvident != null
|
||||
|
|
@ -1038,7 +1038,7 @@ onMounted(async () => {
|
|||
ref="disciplinaryDateResultRef"
|
||||
outlined
|
||||
:input-style="
|
||||
isReadonly ? { color: 'teal' } : { color: 'black' }
|
||||
isReadonly ? { color: 'black' } : { color: 'teal' }
|
||||
"
|
||||
dense
|
||||
class="full-width"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { useComplainstDataStore } from "@/modules/11_discipline/store/Complaints
|
|||
const mixin = useCounterMixin();
|
||||
const $q = useQuasar();
|
||||
|
||||
const { dialogConfirm } = mixin;
|
||||
const { dialogConfirm,dialogMessageNotify } = mixin;
|
||||
|
||||
const props = defineProps({
|
||||
title: {
|
||||
|
|
@ -60,6 +60,9 @@ const initialPagination = ref<any>({
|
|||
});
|
||||
|
||||
function onclickSend() {
|
||||
if(selected.value.length === 0){
|
||||
dialogMessageNotify($q,'กรุณาเลือกอย่างน้อย 1 บุคคล')
|
||||
}else{
|
||||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
|
|
@ -70,7 +73,7 @@ function onclickSend() {
|
|||
`ยืนยันการ${props.title}`,
|
||||
`ต้องการยืนยันการ${props.title}หรือไม่`
|
||||
);
|
||||
}
|
||||
}}
|
||||
|
||||
function onClickClose() {
|
||||
props.close?.();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue