From 31883d8794defbf5b57c38eb3dec00a513b838d6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 22 Nov 2023 15:23:21 +0700 Subject: [PATCH 1/9] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20Form?= =?UTF-8?q?=20=E0=B8=AA=E0=B8=AD=E0=B8=9A=E0=B8=AA=E0=B8=A7=E0=B8=99?= =?UTF-8?q?=E0=B8=84=E0=B8=A7=E0=B8=B2=E0=B8=A1=E0=B8=9C=E0=B8=B4=E0=B8=94?= =?UTF-8?q?=E0=B8=97=E0=B8=B2=E0=B8=87=E0=B8=A7=E0=B8=B4=E0=B8=99=E0=B8=B1?= =?UTF-8?q?=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../3_InvestigateDisciplinary/EditPage.vue | 13 +- .../3_InvestigateDisciplinary/Form.vue | 576 ++++++++++++------ 2 files changed, 413 insertions(+), 176 deletions(-) diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/EditPage.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/EditPage.vue index 8c7a82196..9b7dfda15 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/EditPage.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/EditPage.vue @@ -158,7 +158,7 @@ onMounted(async () => { /> - + { - + - + @@ -189,3 +189,10 @@ onMounted(async () => { + + diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue index 07acba2ea..616a15263 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue @@ -88,12 +88,16 @@ const formData = reactive({ recordAccuser: "", witnesses: "", InvestResults: "", - complaintStatus:"", + complaintStatus: "", filesEvidence: null, filesRecordAccuser: null, filesWitnesses: null, filesEtc: null, }); +const filesEvidence = ref([{ name: "ชื่อไฟล" }, { name: "ชื่อไฟล" }]); +const filesRecordAccuser = ref([{ name: "ชื่อไฟล" }, { name: "ชื่อไฟล" }]); +const filesWitnesses = ref([{ name: "ชื่อไฟล" }, { name: "ชื่อไฟล" }]); +const filesEtc = ref([{ name: "ชื่อไฟล" }, { name: "ชื่อไฟล" }]); /** maping ref เข้าตัวแปรเพื่อเตรียมตรวจสอบ */ const objectdisciplinary: disciplinaryRef = { @@ -156,6 +160,7 @@ async function fileUploadDoc(files: any) { files.forEach((file: any) => { fileDocDataUpload.value.push(file); }); + console.log(fileDocDataUpload.value); } /** @@ -230,6 +235,10 @@ watch(props.data, async () => { formData.filesEtc = props.data.filesEtc; }); +function uploadData() { + console.log("อัปโหลไฟล"); +} + /**เมื่อเริ่มโหลดหน้า * ส่งข้อมูลจำลองไปยัง store */ @@ -260,10 +269,10 @@ onMounted(async () => {
- +
-
+ - { - + --> { v-model="dateEvident" :locale="'th'" autoApply - class="col-xs-12 col-sm-4" + class="col-xs-12 col-sm-6" borderless :enableTimePicker="false" week-start="0" @@ -499,7 +508,7 @@ onMounted(async () => {
{ /> { lazy-rules /> - { hide-bottom-space :options="investigateDis.optionsTypefault" label="ลักษณะความผิด" - /> + /> --> { /> { lazy-rules /> - { label="รายละเอียดเรื่องร้องเรียน" type="textarea" :rules="[(val:string) => !!val || `${'กรุณากรอกรายละเอียดเรื่องร้องเรียน'}`]" - /> + /> --> - { label="รายละเอียดสืบสวนข้อเท็จจริง" type="textarea" :rules="[(val:string) => !!val || `${'กรุณากรอกรายละเอียดสืบสวนข้อเท็จจริง'}`]" + /> --> + + -
- -
- หลักฐานสนับสนุนข้อกล่าวหา -
-
-
- - - - - -
-
-
-
- -
- บันทึกถ้อยคำของผู้กล่าวหา -
-
-
- - - - - -
-
-
-
- -
- พยานและการบันทึกถ้อยคำ -
-
-
- - - - - -
-
-
+ + + + { type="textarea" :rules="[(val:string) => !!val || `${'กรุณากรอกผลการสอบสวน'}`]" /> - - - -
@@ -780,6 +672,344 @@ onMounted(async () => { >
+ +
+
+ +
+ อัปโหลดหลักฐานสนับสนุนข้อกล่าวหา +
+
+
+ + + + + อัปโหลดเอกสารหลักฐาน +
+
+ + + {{ + file.name + (index + 1) + }} + +
+
+ + ดาวน์โหลดเอกสารหลักฐาน + +
+
+ ลบเอกสารหลักฐาน +
+
+
+
+
+
+
+
+ +
+ +
+ อัปโหลดบันทึกถ้อยคำของผู้กล่าวหา +
+
+
+ + + + + อัปโหลดเอกสารหลักฐาน +
+
+ + + {{ + file.name + (index + 1) + }} + +
+
+ + ดาวน์โหลดเอกสารหลักฐาน + +
+
+ ลบเอกสารหลักฐาน +
+
+
+
+
+
+
+
+ +
+ +
+ อัปโหลดพยานและการบันทึกถ้อยคำ +
+
+
+ + + + + อัปโหลดเอกสารหลักฐาน +
+
+ + + {{ + file.name + (index + 1) + }} + +
+
+ + ดาวน์โหลดเอกสารหลักฐาน + +
+
+ ลบเอกสารหลักฐาน +
+
+
+
+
+
+
+
+ +
+ +
+ อัปโหลดไฟล์เอกสารหลักฐานอื่น ๆ +
+
+
+ + + + + อัปโหลดเอกสารหลักฐาน +
+
+ + + {{ + file.name + (index + 1) + }} + +
+
+ + ดาวน์โหลดเอกสารหลักฐาน + +
+
+ ลบเอกสารหลักฐาน +
+
+
+
+
+
+
+
+
From 7f3ed1368bde1beef7a6f971cf2b9c272c1ef0dd Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 22 Nov 2023 16:08:53 +0700 Subject: [PATCH 2/9] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20form?= =?UTF-8?q?=20=E0=B8=AA=E0=B8=B7=E0=B8=9A=E0=B8=AA=E0=B8=A7=E0=B8=99?= =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B9=80=E0=B8=97=E0=B9=87=E0=B8=88?= =?UTF-8?q?=E0=B8=88=E0=B8=A3=E0=B8=B4=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/2_InvestigateFacts/Form.vue | 132 +++++++++++++----- 1 file changed, 98 insertions(+), 34 deletions(-) diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue index 378e368c1..441ce2836 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue @@ -1,6 +1,6 @@ From c6707f4b8dba4138055bb0e05aea8a710fcad916 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 22 Nov 2023 16:16:13 +0700 Subject: [PATCH 3/9] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20butt?= =?UTF-8?q?on=20upload=20form?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/2_InvestigateFacts/Form.vue | 17 +++- .../3_InvestigateDisciplinary/Form.vue | 85 +++++++++++-------- 2 files changed, 63 insertions(+), 39 deletions(-) diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue index 441ce2836..777858eb5 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue @@ -586,7 +586,7 @@ watch(props.data, async () => {
- อัปโหลดหลักฐานสนับสนุนข้อกล่าวหา + อัปโหลดไฟล์เอกสารหลักฐาน
@@ -606,9 +606,18 @@ watch(props.data, async () => { - - อัปโหลดเอกสารหลักฐาน +
+ อัปโหลดไฟล์ +
diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue index 616a15263..dcf09d33e 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue @@ -704,15 +704,18 @@ onMounted(async () => { - - อัปโหลดเอกสารหลักฐาน +
+ อัปโหลดไฟล์ +
@@ -788,15 +791,21 @@ onMounted(async () => { - - อัปโหลดเอกสารหลักฐาน + อัปโหลดไฟล์ +
@@ -872,15 +881,18 @@ onMounted(async () => { - - อัปโหลดเอกสารหลักฐาน +
+ อัปโหลดไฟล์ +
@@ -956,15 +968,18 @@ onMounted(async () => { - - อัปโหลดเอกสารหลักฐาน +
+ อัปโหลดไฟล์ +
From c13d22f704530f31b85ee6c5f2e7c6740f4895ea Mon Sep 17 00:00:00 2001 From: waruneeta Date: Wed, 22 Nov 2023 16:16:38 +0700 Subject: [PATCH 4/9] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=97=E0=B8=B3=E0=B8=87=E0=B8=B2?= =?UTF-8?q?=E0=B8=99=20paging=20=E0=B8=82=E0=B8=AD=E0=B8=87=E0=B8=AA?= =?UTF-8?q?=E0=B8=A3=E0=B8=A3=E0=B8=AB=E0=B8=B2=20(=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=A2=E0=B8=8A=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=84=E0=B8=B1?= =?UTF-8?q?=E0=B8=94=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD=E0=B8=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/TableCandidate.vue | 235 +++++++++++++----- .../views/02_qualify/manageDetail.vue | 174 +++++++++---- 2 files changed, 308 insertions(+), 101 deletions(-) diff --git a/src/modules/03_recruiting/components/TableCandidate.vue b/src/modules/03_recruiting/components/TableCandidate.vue index c8bb3e30a..b274abae8 100644 --- a/src/modules/03_recruiting/components/TableCandidate.vue +++ b/src/modules/03_recruiting/components/TableCandidate.vue @@ -1,19 +1,51 @@ -
+
{ -
+
Date: Wed, 22 Nov 2023 16:22:53 +0700 Subject: [PATCH 6/9] =?UTF-8?q?=20tab=20=E0=B8=AA=E0=B8=B7=E0=B8=9A?= =?UTF-8?q?=E0=B8=AA=E0=B8=A7=E0=B8=99=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B9=80?= =?UTF-8?q?=E0=B8=97=E0=B9=87=E0=B8=88=E0=B8=88=E0=B8=A3=E0=B8=B4=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/2_InvestigateFacts/EditPage.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue b/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue index 3e5eee9da..d4d26cc64 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue @@ -152,7 +152,7 @@ onMounted(() => { />
- + {
+ From e5c91bcbeda2676678482a4b11e3d5a3932473b6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 22 Nov 2023 18:05:59 +0700 Subject: [PATCH 7/9] =?UTF-8?q?form=20=E0=B8=AA=E0=B8=B7=E0=B8=9A=E0=B8=AA?= =?UTF-8?q?=E0=B8=A7=E0=B8=99=E0=B8=84=E0=B8=A7=E0=B8=B2=E0=B8=A1=E0=B8=9C?= =?UTF-8?q?=E0=B8=B4=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/1_Complaint/EditPage.vue | 22 +- .../components/1_Complaint/Popup.vue | 205 ++++++++++++++++++ .../components/2_InvestigateFacts/Form.vue | 118 +++++++++- .../store/InvestigateFactStore.ts | 2 +- 4 files changed, 329 insertions(+), 18 deletions(-) create mode 100644 src/modules/11_discipline/components/1_Complaint/Popup.vue diff --git a/src/modules/11_discipline/components/1_Complaint/EditPage.vue b/src/modules/11_discipline/components/1_Complaint/EditPage.vue index ca49efa96..129b9603e 100644 --- a/src/modules/11_discipline/components/1_Complaint/EditPage.vue +++ b/src/modules/11_discipline/components/1_Complaint/EditPage.vue @@ -1,6 +1,7 @@ + + + diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue index be5ff6298..939201bf7 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue @@ -2,7 +2,10 @@ import { useRouter, useRoute } from "vue-router"; import { onMounted, ref, watch, reactive, computed } from "vue"; import { useQuasar } from "quasar"; +import Dialogbody from "@/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue"; +import Table from "@/modules/11_discipline/components/3_InvestigateDisciplinary/DirectorTable.vue"; import { useCounterMixin } from "@/stores/mixin"; +import { useInvestigateDisStore } from "@/modules/11_discipline/store/InvestigateDisStore"; import { useInvestigateFactStore } from "@/modules/11_discipline/store/InvestigateFactStore"; import type { FormData, @@ -18,6 +21,7 @@ const investigateFactStore = useInvestigateFactStore(); const mixin = useCounterMixin(); const { filterFnOptionsType } = investigateFactStore; const { date2Thai, dialogConfirm } = mixin; +const investigateDis = useInvestigateDisStore(); const complaintsOptions = ref([]); const isUpdate = ref(false); @@ -50,6 +54,8 @@ const props = defineProps({ }, }); +const filter = ref(""); + /** ข้อมูล v-model ของฟอร์ม */ const formData = reactive({ complaint: "", @@ -87,9 +93,13 @@ const objectInvestigate: MyObjectInvestigateRef = { causeText: causeTextRef, }; +const rows = ref([]); const statusStep = computed(() => { return route.name === "/discipline-disciplinaryEdit" ? true : false; }); +const initialPagination = ref({ + rowsPerPage: 0, +}); /*** ฟังก์ชั่นสำหรับ validate ฟอร์ม */ function validateForm() { @@ -157,6 +167,20 @@ async function fetchDataDetail() { formData.causeText = props.data.results; } } + +const modal = ref(false); +const filterKeyword2 = ref(""); +const type = ref(""); +/** เปิด dialog */ +function onClickOpenPopup() { + modal.value = true; + filterKeyword2.value = ""; +} +/** ฟังชั่นปิด dialog */ +function clickClose() { + modal.value = false; +} + onMounted(async () => { await fetchDataDetail(); console.log(route.name); @@ -310,7 +334,7 @@ watch(props.data, async () => { > วันที่สืบสวน { " :rules="[ (val) => - !!val || `${'กรุณาเลือกวันที่เริ่มการสอบสวน'}`, + !!val || `${'กรุณาเลือกวันที่เริ่มการสืบสวน'}`, ]" - :label="`${'วันที่เริ่มการสอบสวน'}`" + :label="`${'วันที่เริ่มการสืบสวน'}`" >