From 2c295dbd0360ff119b24bc5f3194ad429187281c Mon Sep 17 00:00:00 2001 From: waruneeta Date: Fri, 1 Dec 2023 16:42:51 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20read?= =?UTF-8?q?only=20form=20=E0=B8=AA=E0=B8=B7=E0=B8=9A=E0=B8=AA=E0=B8=A7?= =?UTF-8?q?=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../3_InvestigateDisciplinary/Form.vue | 64 ++++++++++++++----- .../11_discipline/components/UploadFile.vue | 12 ++-- 2 files changed, 55 insertions(+), 21 deletions(-) diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue index 465bb607f..0bdbf2899 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue @@ -193,7 +193,7 @@ function validateForm() { * @param val จำนวนวันที่ต้องการขยาย */ function calEndDate(val: string) { - const date = new Date(props.data.investigationDateEnd); + const date = new Date(props.data.disciplinaryDateEnd); const dateNew = new Date(); formData.disciplinaryDateEnd = new Date( dateNew.setDate(date.getDate() + Number(val)) @@ -459,6 +459,7 @@ onMounted(async () => {
{ id="organizationId" > { > ผู้ถูกร้องเรียน { formData.disciplinaryDateEnd != null && ((isReadonly && formData.extendStatus) || !isReadonly) " + :disable="isReadonly" for="#extendStatus" size="md" v-model="formData.extendStatus" @@ -697,7 +701,7 @@ onMounted(async () => {
{ for="#date" class="full-width cursor-pointer" ref="dateRef" - :readonly="isUpdate" + :readonly="isReadonly" outlined dense lazy-rules @@ -748,7 +752,8 @@ onMounted(async () => {
- { hide-bottom-space map-options :rules="[ - (val: any) => - formData.extendStatus - ? !!val || 'กรุณาเลือกจำนวนวันที่ต้องการขยาย' - : true, - ]" + (val) => + formData.extendStatus + ? !!val || 'กรุณาเลือกจำนวนวันที่ต้องการขยาย' + : true, + ]" option-label="name" option-value="id" use-input @@ -777,14 +782,14 @@ onMounted(async () => { - +
{ for="#dateEnd" ref="dateEndRef" class="full-width cursor-pointer" - :readonly="isUpdate" + :readonly="isReadonly" outlined dense lazy-rules @@ -838,6 +843,7 @@ onMounted(async () => {
{ -@/modules/11_discipline/store/store + \ No newline at end of file diff --git a/src/modules/11_discipline/components/UploadFile.vue b/src/modules/11_discipline/components/UploadFile.vue index a5dfa639b..376893de2 100644 --- a/src/modules/11_discipline/components/UploadFile.vue +++ b/src/modules/11_discipline/components/UploadFile.vue @@ -11,7 +11,7 @@ import { useCounterMixin } from "@/stores/mixin"; const $q = useQuasar(); const mixin = useCounterMixin(); -const { showLoader, hideLoader, success, messageError,dialogRemove } = mixin; +const { showLoader, hideLoader, success, messageError, dialogRemove } = mixin; const fileRef = ref(null); const file = ref(); @@ -47,6 +47,9 @@ const props = defineProps({ type: Function, default: () => "", }, + isReadonly: { + type: Boolean, + }, }); /** @@ -73,8 +76,8 @@ async function uploadFile() { }); } -function popupRemove(id:string){ - dialogRemove($q,()=> removeFile(id)) +function popupRemove(id: string) { + dialogRemove($q, () => removeFile(id)); } async function removeFile(id: string) { @@ -109,7 +112,7 @@ function downloadFile(link: string) { {{ title }}
-
+
Date: Fri, 1 Dec 2023 17:15:33 +0700 Subject: [PATCH 2/2] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20opti?= =?UTF-8?q?on=20=E0=B8=84=E0=B9=89=E0=B8=99=E0=B8=AB=E0=B8=B2=E0=B8=AA?= =?UTF-8?q?=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=A0=E0=B8=B2=E0=B8=9E=20?= =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=8D=E0=B8=8A=E0=B8=B5=E0=B9=81=E0=B8=AA?= =?UTF-8?q?=E0=B8=94=E0=B8=87=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/09_leave/components/3_Report/DetailReport.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/09_leave/components/3_Report/DetailReport.vue b/src/modules/09_leave/components/3_Report/DetailReport.vue index 7762359a6..6a80c059c 100644 --- a/src/modules/09_leave/components/3_Report/DetailReport.vue +++ b/src/modules/09_leave/components/3_Report/DetailReport.vue @@ -45,8 +45,8 @@ function monthYearThai(val: DataDateMonthObject) { } const employeeClassMain = ref([ + { id: "employee", name: "ข้าราชการ" }, { id: "perm", name: "ลูกจ้างประจำ" }, - { id: "temp", name: "ลูกจ้างชั่วคราว" }, ]); const employeeClassOption = ref(employeeClassMain.value);