From 07474e873dfd40ad545995eec0766126ff610e82 Mon Sep 17 00:00:00 2001 From: oat_dev Date: Tue, 2 Apr 2024 15:07:35 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4:=20=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B9=81=E0=B8=97=E0=B9=87=E0=B8=9A=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=9C=E0=B8=A5=E0=B8=87=E0=B8=B2?= =?UTF-8?q?=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Achievement/01_ProfessionalLicense.vue | 457 +++++----- .../detail/Achievement/02_Train.vue | 843 +++++++++--------- .../detail/Achievement/03_Insignia.vue | 816 ++++++++--------- .../Achievement/04_DeclarationHonor.vue | 475 +++++----- .../Achievement/05_ResultsPerformance.vue | 603 +++++++------ 5 files changed, 1644 insertions(+), 1550 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue index 34ea0f55f..c61c10654 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue @@ -9,11 +9,9 @@ import type { RequestItemsObject } from "@/modules/04_registryNew/interface/requ import type { ResponseObject } from "@/modules/04_registryNew/interface/response/ProfesLicense"; import http from "@/plugins/http"; import config from "@/app.config"; -import { log } from "console"; const mixin = useCounterMixin(); const $q = useQuasar(); const { - dialogRemove, dialogConfirm, showLoader, hideLoader, @@ -192,6 +190,11 @@ const pagination = ref({ rowsPerPage: 10, }); +const historyPagination = ref({ + page: 1, + rowsPerPage: 10, +}); + const visibleColumns = ref([ "certificateType", "issuer", @@ -432,7 +435,7 @@ onMounted(async () => {
- {{ col.value }} + {{ col.value ? col.value : "-" }}
@@ -533,239 +536,267 @@ onMounted(async () => { - + - - - - -
-
- + + -
-
- -
-
-
-
- -
-
- - - - - -
-
-
-
- - - - - -
-
-
- - - บันทึกข้อมูล - - + + + + + + + + + + บันทึกข้อมูล + + +
-
+
- - - - - - - - - - - - - + + + - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue b/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue index 60287a1ac..d94ae0328 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue @@ -81,7 +81,7 @@ const columns = ref([ label: "ปีที่อบรม (พ.ศ.)", sortable: true, field: "yearly", - format: (v) => v + 543, + format: (v) => (v !== null ? v + 543 : "-"), headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => @@ -199,7 +199,7 @@ const historyColumns = ref([ label: "ปีที่อบรม (พ.ศ.)", sortable: true, field: "yearly", - format: (v) => v + 543, + format: (v) => (v !== null ? v + 543 : "-"), headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => @@ -313,6 +313,11 @@ const pagination = ref({ rowsPerPage: 10, }); +const historyPagination = ref({ + page: 1, + rowsPerPage: 10, +}); + const rows = ref([]); const historyRows = ref([]); @@ -321,7 +326,7 @@ const visibleColumns = ref([ "topic", // หัวข้อ "yearly", // ปีที่อบรม "place", // สถานที่ - "duration", // รวมระยะวเลา + "duration", // รวมระยะเวลา "department", // หน่วยงานที่รับผิดชอบ "numberOrder", // เลขที่คำสั่ง "dateOrder", // คำสั่งลงวันที่ @@ -334,7 +339,7 @@ const historyVisibleColumns = ref([ "topic", // หัวข้อ "yearly", // ปีที่อบรม "place", // สถานที่ - "duration", // รวมระยะวเลา + "duration", // รวมระยะเวลา "department", // หน่วยงานที่รับผิดชอบ "numberOrder", // เลขที่คำสั่ง "dateOrder", // คำสั่งลงวันที่ @@ -625,19 +630,6 @@ onMounted(async () => { > ประวัติแก้ไขการฝึกอบรม/ดูงาน - - ลบข้อมูล -
@@ -693,131 +685,280 @@ onMounted(async () => { - + - - - - -
-
-
- -
-
- -
-
- -
- - -
-
+ + + + + + + + + +
- +
+
+ +
+
+ +
+ + +
+
+
+ - - - - -
-
- {{ year + 543 }} + + + +
+
+ + + + + +
+
+
+
+ + + + + +
+
+ + + + + +
+
+
+
+
+ + +
+
+ +
-
- -
-
- - -
- - บันทึกข้อมูล - -
+ + + + + + + บันทึกข้อมูล + + + -
+ - - - - - - - -
- - - - - + + + -
- - > - - + + + - - -
-
+ + +
+ + + + + +
+ + > + + + +
+
+
diff --git a/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue b/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue index 8d6addcb4..14e5ea2e5 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue @@ -37,10 +37,6 @@ const declHonorForm = reactive({ refCommandDate: null, }); -const currentPage = ref(1); -const maxPage = ref(1); -const currentPageHistory = ref(1); -const maxPageHistory = ref(1); const isEdit = ref(false); const modal = ref(false); const modeView = ref("table"); @@ -211,6 +207,16 @@ const visibleColumnsHistory = ref([ "lastUpdatedAt", ]); +const pagination = ref({ + page: 1, + rowsPerPage: 10, +}); + +const historyPagination = ref({ + page: 1, + rowsPerPage: 10, +}); + async function fetchData() { if (!profileId.value) return; @@ -308,10 +314,10 @@ function onSubmit() { function clearData() { id.value = ""; - issueDateYear.value = 0; + issueDateYear.value = new Date().getFullYear(); declHonorForm.issuer = ""; declHonorForm.detail = ""; - declHonorForm.issueDate = null; + declHonorForm.issueDate = new Date(); declHonorForm.refCommandNo = ""; declHonorForm.refCommandDate = null; declHonorForm.isDate = "false"; @@ -320,18 +326,6 @@ function clearData() { onMounted(async () => { await fetchData(); }); - -watch( - () => declHonorForm.isDate, - () => { - if (declHonorForm.isDate === "true") { - issueDateYear.value = 0; - } - if (declHonorForm.isDate === "false") { - declHonorForm.issueDate = null; - } - } -); - - - + - + + + + + + + - -
-
- - -
-
- - - - + + + + + + +
+
+ +
+
+ +
+
+ + + +
+
+ + + + + +
-
- -
-
- -
-
- - - -
-
- - - - - -
-
- - -
- - บันทึกข้อมูล - -
+ + + + + + + + บันทึกข้อมูล + + +
-
+
@@ -796,6 +814,7 @@ watch( :columns="columnsHistory" :rows="rowsHistory" :paging="true" + v-model:pagination="historyPagination" :rows-per-page-options="[10, 25, 50, 100]" :visible-columns="visibleColumnsHistory" :filter="filterHistory" @@ -817,18 +836,6 @@ watch( - - diff --git a/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue b/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue index 0a4be22ad..1d31e2309 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue @@ -279,6 +279,16 @@ const visibleColumns = ref([ "date", ]); +const pagination = ref({ + page: 1, + rowsPerPage: 10, +}); + +const historyPagination = ref({ + page: 1, + rowsPerPage: 10, +}); + async function fetchData() { if (!profileId.value) return; @@ -472,6 +482,7 @@ onMounted(async () => { :paging="true" :columns="columns" :filter="filterSearch" + v-model:pagination="pagination" :grid="modeView === 'card'" :visible-columns="visibleColumns" :rows-per-page-options="[20, 50, 100]" @@ -572,312 +583,318 @@ onMounted(async () => { - - + - - - -
-
- - - - - -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- - ผลการประเมิน: -
- {{ textPoint(resPerformForm.pointSum) }} + + + + + + + + + +
+
+ + + + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + ผลการประเมิน: +
+ {{ textPoint(resPerformForm.pointSum) }} +
+ {{ textRangePoint(resPerformForm.pointSum) }}
- {{ textRangePoint(resPerformForm.pointSum) }}
-
- + + -
- - บันทึกข้อมูล - -
+ + + + + บันทึกข้อมูล + + + - + - - - - - - - -
- - - - - + + + -
- - > - - + + + - - -
-
+ + +
+ + + + + +
+ + > + + + +
+
+