From f247167e9a287d03e65eccf4da0d1968ed343b81 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Thu, 30 Nov 2023 18:02:29 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B9=80=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3?= =?UTF-8?q?=E0=B9=89=E0=B8=AD=E0=B8=87=E0=B9=80=E0=B8=A3=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=99,=20=E0=B8=AA=E0=B8=B7=E0=B8=9A=E0=B8=AA=E0=B8=A7?= =?UTF-8?q?=E0=B8=99,=20=E0=B8=AA=E0=B8=AD=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 --- src/api/11_discipline/api.discipline.ts | 4 +- src/components/Dialogs/AddPersonal.vue | 105 +- .../components/1_Complaint/EditPage.vue | 116 +- .../components/1_Complaint/Form.vue | 357 ++-- .../components/1_Complaint/MainPage.vue | 1 - .../2_InvestigateFacts/EditPage.vue | 125 +- .../components/2_InvestigateFacts/Form.vue | 1613 ++++++++--------- .../3_InvestigateDisciplinary/EditPage.vue | 35 +- .../3_InvestigateDisciplinary/Form.vue | 201 +- .../components/4_Result/EditPage.vue | 3 +- .../Dialogbody.vue => DialogDirector.vue} | 32 +- .../Popup.vue => PopupSendToNext.vue} | 8 +- .../interface/request/complaint.ts | 1 + .../interface/request/disciplinary.ts | 2 +- .../interface/request/investigate.ts | 2 +- .../interface/request/investigateFact.ts | 4 +- src/modules/11_discipline/store.ts | 283 ++- .../11_discipline/store/ComplaintsStore.ts | 72 +- .../store/InvestigateFactStore.ts | 100 +- .../11_discipline/store/ResultStore.ts | 6 +- 20 files changed, 1356 insertions(+), 1714 deletions(-) rename src/modules/11_discipline/components/{3_InvestigateDisciplinary/Dialogbody.vue => DialogDirector.vue} (92%) rename src/modules/11_discipline/components/{1_Complaint/Popup.vue => PopupSendToNext.vue} (96%) diff --git a/src/api/11_discipline/api.discipline.ts b/src/api/11_discipline/api.discipline.ts index 401488f29..093b52c26 100644 --- a/src/api/11_discipline/api.discipline.ts +++ b/src/api/11_discipline/api.discipline.ts @@ -52,11 +52,11 @@ export default { disciplineDisciplinaryById: (id: string) => `${discipline}/${id}`, disciplineInvestigateById: (id: string) => `${discipline}/investigate/${id}`, disciplineComplaintsById: (id: string) => `${discipline}/complaint/${id}`, - // disciplineDirector: () => `${disciplineMain}/director`, + disciplineDirector: () => `${discipline}/director`, disciplineDoc: (type: string, id: string) => `${discipline}/${type}/file/${id}`, disciplineByIdDoc: (type: string, id: string, docId: string) => - `${discipline}/disciplinary/${type}/file/${id}/${docId}`, + `${discipline}/${type}/file/${id}/${docId}`, disciplinaryReject: (id: string) => `${discipline}/reject/${id}`, disciplinaryResume: (id: string) => `${discipline}/resume/${id}`, disciplinaryApprove: (id: string) => `${discipline}/approve/${id}`, diff --git a/src/components/Dialogs/AddPersonal.vue b/src/components/Dialogs/AddPersonal.vue index cb80e4c3c..412b7a5b5 100644 --- a/src/components/Dialogs/AddPersonal.vue +++ b/src/components/Dialogs/AddPersonal.vue @@ -7,10 +7,13 @@ import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; import type { QTableProps } from "quasar"; import type { ResponsePreson } from "@/interface/response/listPerson"; +import { useDisciplineMainStore } from "@/modules/11_discipline/store"; + +const mainStore = useDisciplineMainStore(); const $q = useQuasar(); const mixin = useCounterMixin(); -const { dialogConfirm, dialogMessageNotify, showLoader, hideLoader } = mixin; +const { dialogMessageNotify, showLoader, hideLoader } = mixin; interface typeOp { id: string; @@ -34,7 +37,6 @@ const rows = ref([]); const type = ref("idcard"); const search = ref(""); const selected = ref([]); -const dataObject = ref([]); const typeOps = ref([ { id: "idcard", name: "เลขประจำตัวประชาชน" }, @@ -42,94 +44,6 @@ const typeOps = ref([ { id: "lastname", name: "นามสกุล" }, ]); -/** หัวข้อที่เเสดงในตาราง */ -const visibleColumns = ref([ - "no", - "idcard", - "name", - "posNo", - "position", - "positionLevel", - "salary", - "organization", -]); - -/** หัวตาราง */ -const columns = ref([ - { - name: "no", - align: "left", - label: "ลำดับ", - sortable: false, - field: "no", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, - { - name: "idcard", - align: "left", - label: "เลขบัตรประชาชน", - sortable: true, - field: "idcard", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, - { - name: "name", - align: "left", - label: "ชื่อ - นามสกุล", - sortable: true, - field: "name", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, - { - name: "posNo", - align: "left", - label: "ตำแหน่งเลขที่", - sortable: true, - field: "posNo", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, - { - name: "position", - align: "left", - label: "ตำแหน่ง", - sortable: true, - field: "position", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, - { - name: "positionLevel", - align: "left", - label: "ระดับ", - sortable: true, - field: "positionLevel", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, - { - name: "salary", - align: "left", - label: "เงินเดือน", - sortable: true, - field: "salary", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, - { - name: "organization", - align: "left", - label: "หน่วยงาน", - sortable: true, - field: "organization", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, -]); - /** รับค่ามาจาก หน้าหลัก */ const props = defineProps({ checkId: { @@ -231,13 +145,6 @@ async function searchInput() { } } -/** update ตาราง เมื่อ input ว่าง */ -function updateInput() { - if (!search.value) { - rows.value = dataObject.value; - } -} - /** update เมื่อเปลี่ยน option */ function updateSelect() { search.value = ""; @@ -305,7 +212,7 @@ function updateSelect() {
diff --git a/src/modules/11_discipline/components/1_Complaint/EditPage.vue b/src/modules/11_discipline/components/1_Complaint/EditPage.vue index c2b94d93b..fe721f539 100644 --- a/src/modules/11_discipline/components/1_Complaint/EditPage.vue +++ b/src/modules/11_discipline/components/1_Complaint/EditPage.vue @@ -1,7 +1,7 @@ +