From 01f0ef006261b93c180e861c8539ff3c9cae4298 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Fri, 4 Aug 2023 22:15:59 +0700 Subject: [PATCH 01/12] =?UTF-8?q?update=20=E0=B8=82=E0=B8=AD=E0=B9=82?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B9=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/05_placement/api.placement.ts | 5 + .../components/Receive/FormAdd.vue | 545 ++++++++ .../components/Receive/information.vue | 1138 +++++++++++++++++ .../components/Receive/receiveMain.vue | 554 ++++---- .../components/Transfer/transferRegistry.vue | 24 +- src/modules/05_placement/router.ts | 14 +- 6 files changed, 1947 insertions(+), 333 deletions(-) create mode 100644 src/modules/05_placement/components/Receive/FormAdd.vue create mode 100644 src/modules/05_placement/components/Receive/information.vue diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index 94259b628..2b02d64f9 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -2,6 +2,7 @@ import env from "../index"; const placement = `${env.API_PLACEMENT_URI}/placement`; const orgTree = `${env.API_URI_ORG_TREE}`; const order = `${env.API_PLACEMENT_URI}`; +const receive = `${env.API_PLACEMENT_URI}/placement/Receive`; export default { MainDetail: (year: number) => `${placement}/exam/${year}`, @@ -60,4 +61,8 @@ export default { deleteOrder:(orderId:string) => `${order}/order/${orderId}`, typeOrder: () => `${order}/order/order-type`, examroundOrder: () => `${order}/order/detail/exam-round`, + + receiveData: () => `${receive}`, + receiveDataId: (id: string) => `${receive}/${id}`, + receivePosition: (id: string) => `${receive}/position/${id}`, }; diff --git a/src/modules/05_placement/components/Receive/FormAdd.vue b/src/modules/05_placement/components/Receive/FormAdd.vue new file mode 100644 index 000000000..f782c6d70 --- /dev/null +++ b/src/modules/05_placement/components/Receive/FormAdd.vue @@ -0,0 +1,545 @@ + + + diff --git a/src/modules/05_placement/components/Receive/information.vue b/src/modules/05_placement/components/Receive/information.vue new file mode 100644 index 000000000..92166e018 --- /dev/null +++ b/src/modules/05_placement/components/Receive/information.vue @@ -0,0 +1,1138 @@ + + diff --git a/src/modules/05_placement/components/Receive/receiveMain.vue b/src/modules/05_placement/components/Receive/receiveMain.vue index 7dc840540..675cd159f 100644 --- a/src/modules/05_placement/components/Receive/receiveMain.vue +++ b/src/modules/05_placement/components/Receive/receiveMain.vue @@ -6,6 +6,17 @@ import { useRouter } from "vue-router"; import DialogFooter from "@/modules/05_placement/components/Receive/DialogFooter.vue"; import DialogHeader from "@/modules/05_placement/components/Receive/DialogHeader.vue"; import DialogOrgTree from "@/modules/05_placement/components/Receive/receiveModal.vue"; +import { useCounterMixin } from "@/stores/mixin"; +import { config } from "@fullcalendar/core/internal"; +import http from "@/plugins/http"; +const mixin = useCounterMixin(); //เรียกฟังก์ชันกลาง +const { + showLoader, + hideLoader, + dateText, + success, + messageError +} = mixin; const selected = ref([]); const checkSelected = computed(() => { @@ -13,6 +24,11 @@ const checkSelected = computed(() => { return true; } }); + +const add = () => { + router.push(`/receive/add`); +}; + const clickClose = () => { modal.value = false; }; @@ -29,21 +45,18 @@ const personal = ref([]); const personalId = ref(""); const visibleColumns = ref([ "no", + "citizenId", "fullname", - "position", - "positionLevel", - "oc", - "agency", - "status", + "organizationName", + "birthday" ]); + const visibleColumns2 = ref([ "no", + "citizenId", "fullname", - "position", - "positionLevel", - "oc", - "agency", - "status", + "organizationName", + "birthday" ]); //ค้นหา คอลัมน์ คอลัมน์ที่แสดง const filterKeyword = ref(""); const filterKeyword2 = ref(""); @@ -60,95 +73,49 @@ const resetFilter = () => { const rows = ref([ { personalId: "08db721d-add6-47b0-8a13-5f45d106e8d1", + citizenId: "1234444332222", fullname: "นางสาวอย พชช", - position: "นักบริหาร", - positionLevel: "ต้น", - oc: "สำนักงานคณะกรรมการข้าราชการกรุงเทพมหานคร", - agency: "กลุ่มงานกุมารเวชกรรม", - status: "รออนุมัติ", + organizationName: "นักจัดการงานทั่วไป", + orgName: "กลุ่มงานช่วยนักบริหาร", + organizationShortName: "สกจ.", + positionNumber: "กก. 1", + positionPath: "นักจัดการงานทั่วไป", + birthday: dateText(new Date("1989-09-03")) }, { personalId: "08db721d-adf2-4842-8056-1abb1539356e", + citizenId: "0000222333333", fullname: "นางสาววญ สพ", - position: "นักจัดการงานทั่วไป", - positionLevel: "ปฏิบัติการ", - oc: "กลุ่มงานช่วยนักบริหาร", - agency: "กลุ่มงานข้อมูลเมือง", - status: "รออนุมัติ", - }, - { - personalId: "08db721d-ae3d-4b8c-8cf0-b86b5a2ed8bb", - fullname: "นางสาววญ สพ", - position: "นักจัดการงานทั่วไป", - positionLevel: "ปฏิบัติการ", - oc: "กลุ่มงานช่วยนักบริหาร", - agency: "กลุ่มงานข้อมูลเมือง", - status: "รออนุมัติ", - }, - { - personalId: "08db721d-afde-4ed4-8bc6-f0ad83e61c4d", - fullname: "นางสาววญ สพ", - position: "นักจัดการงานทั่วไป", - positionLevel: "ปฏิบัติการ", - oc: "กลุ่มงานช่วยนักบริหาร", - agency: "กลุ่มงานข้อมูลเมือง", - status: "รออนุมัติ", - }, - { - personalId: "08db721d-b24e-45d7-8a65-3f28ef4948a4", - fullname: "นางสาววญ สพ", - position: "นักจัดการงานทั่วไป", - positionLevel: "ปฏิบัติการ", - oc: "กลุ่มงานช่วยนักบริหาร", - agency: "กลุ่มงานข้อมูลเมือง", - status: "รออนุมัติ", + organizationName: "นักจัดการงานทั่วไป", + orgName: "กลุ่มงานช่วยนักบริหาร", + organizationShortName: "สกจ.", + positionNumber: "กก. 1", + positionPath: "นักจัดการงานทั่วไป", + birthday: dateText(new Date("1990-09-03")), }, ]); const rows2 = ref([ - { - personalId: "0a846508-4932-40de-9a9e-5b519492217c", - fullname: "นางสาวอย พชช", - position: "นักบริหาร", - positionLevel: "ต้น", - oc: "สำนักงานคณะกรรมการข้าราชการกรุงเทพมหานคร", - agency: "กลุ่มงานกุมารเวชกรรม", - status: "รออนุมัติ", - }, { personalId: "08db721d-add6-47b0-8a13-5f45d106e8d1", - fullname: "นางสาววญ สพ", - position: "นักจัดการงานทั่วไป", - positionLevel: "ปฏิบัติการ", - oc: "กลุ่มงานช่วยนักบริหาร", - agency: "กลุ่มงานข้อมูลเมือง", - status: "รออนุมัติ", + citizenId: "1234444332222", + fullname: "นางสาวอย พชช", + organizationName: "นักจัดการงานทั่วไป", + orgName: "กลุ่มงานช่วยนักบริหาร", + organizationShortName: "สกจ.", + positionNumber: "กก. 1", + positionPath: "นักจัดการงานทั่วไป", + birthday: dateText(new Date("1989-09-03")), }, { personalId: "08db721d-adf2-4842-8056-1abb1539356e", + citizenId: "0000222333333", fullname: "นางสาววญ สพ", - position: "นักจัดการงานทั่วไป", - positionLevel: "ปฏิบัติการ", - oc: "กลุ่มงานช่วยนักบริหาร", - agency: "กลุ่มงานข้อมูลเมือง", - status: "รออนุมัติ", - }, - { - personalId: "08db721d-adff-47b0-8762-41cd5c991001", - fullname: "นางสาววญ สพ", - position: "นักจัดการงานทั่วไป", - positionLevel: "ปฏิบัติการ", - oc: "กลุ่มงานช่วยนักบริหาร", - agency: "กลุ่มงานข้อมูลเมือง", - status: "รออนุมัติ", - }, - { - personalId: "08db721d-ae22-424d-8f4a-87ba30cc3ee7", - fullname: "นางสาววญ สพ", - position: "นักจัดการงานทั่วไป", - positionLevel: "ปฏิบัติการ", - oc: "กลุ่มงานช่วยนักบริหาร", - agency: "กลุ่มงานข้อมูลเมือง", - status: "รออนุมัติ", + organizationName: "นักจัดการงานทั่วไป", + orgName: "กลุ่มงานช่วยนักบริหาร", + organizationShortName: "สกจ.", + positionNumber: "กก. 1", + positionPath: "นักจัดการงานทั่วไป", + birthday: dateText(new Date("1990-09-03")), }, ]); const columns = ref([ @@ -161,6 +128,15 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, + { + name: "citizenId", + align: "left", + label: "เลขประจำตัวประชาชน", + sortable: true, + field: "fullname", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, { name: "fullname", align: "left", @@ -171,47 +147,22 @@ const columns = ref([ 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: "oc", - align: "left", - label: "สังกัด", - sortable: true, - field: "oc", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, - { - name: "agency", + name: "organizationName", align: "left", label: "หน่วยงานที่รับโอน", sortable: true, - field: "agency", + field: "organizationName", headerStyle: "font-size: 14px", style: "font-size: 14px", + sort: (a: string, b: string) => + a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "status", + name: "birthday", align: "left", - label: "สถานะ", + label: "วัน/เดือน/ปี เกิด", sortable: true, - field: "status", + field: "birthday", headerStyle: "font-size: 14px", style: "font-size: 14px", }, @@ -226,6 +177,15 @@ const columns2 = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, + { + name: "citizenId", + align: "left", + label: "เลขประจำตัวประชาชน", + sortable: true, + field: "fullname", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, { name: "fullname", align: "left", @@ -236,47 +196,22 @@ const columns2 = ref([ style: "font-size: 14px", }, { - name: "position", + name: "organizationName", align: "left", - label: "ตำแหน่งในสายงาน", + label: "หน่วยงานที่รับโอน", sortable: true, - field: "position", + field: "organizationName", headerStyle: "font-size: 14px", style: "font-size: 14px", + sort: (a: string, b: string) => + a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "positionLevel", + name: "birthday", align: "left", - label: "ระดับ", + label: "วัน/เดือน/ปี เกิด", sortable: true, - field: "positionLevel", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, - { - name: "oc", - align: "left", - label: "สังกัด", - sortable: true, - field: "oc", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, - { - name: "agency", - align: "left", - label: "หน่วยงานที่ขอโอนไป", - sortable: true, - field: "agency", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, - { - name: "status", - align: "left", - label: "สถานะ", - sortable: true, - field: "status", + field: "birthday", headerStyle: "font-size: 14px", style: "font-size: 14px", }, @@ -288,6 +223,33 @@ const openModalTree = (id: string) => { modalTree.value = true; }; +const openDelete = (id: string) => { + $q.dialog({ + title: `ลบข้อมูล`, + message: `ต้องการทำการลบข้อมูลนี้ใช่หรือไม่?`, + cancel: "ยกเลิก", + ok: "ยืนยัน", + persistent: true, + }) + .onOk(async () => { + showLoader(); + await http + .delete(config.API.receiveData(id)) + .then((res) => { + success($q, "ลบข้อมูลสำเร็จ"); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(() => { + hideLoader(); + }); + }) + .onCancel(() => { + + }); +}; + const closeModalTree = async () => { // await getTable(); modalTree.value = false; @@ -306,64 +268,31 @@ const nextPage = (row: any) => {
- + + เพิ่มข้อมูล + + + ส่งไปออกคำสั่งรับโอน - + - +
- +
@@ -502,19 +578,46 @@ const paginationLabel = (start: number, end: number, total: number) => { - กรอกเหตุผล + กรอกเหตุผล - + - + - + + diff --git a/src/modules/06_retirement/router.ts b/src/modules/06_retirement/router.ts index bb5a3c6bf..6b92458fa 100644 --- a/src/modules/06_retirement/router.ts +++ b/src/modules/06_retirement/router.ts @@ -22,8 +22,8 @@ export default [ }, }, { - path: "/retirement/list/:type/:year", - name: "retirement/list/", + path: "/retirement/:retirementId", + name: "retirementid", component: Listretirement, meta: { Auth: true, diff --git a/src/modules/06_retirement/views/Main.vue b/src/modules/06_retirement/views/Main.vue index 335f4f591..5f5a24245 100644 --- a/src/modules/06_retirement/views/Main.vue +++ b/src/modules/06_retirement/views/Main.vue @@ -175,6 +175,93 @@
+ + + + +
เพิ่มประกาศ
+
+ + + เลือกประกาศที่ต้องการเพิ่มข้อมูล + + +
+ + + + + + + ประกาศเพิ่มผู้เกษียณ + + + + + + + + + ประกาศแก้ไขข้อมูลผู้เกษียน + + + + + + + + + + + + ประกาศยกเลิกผู้เกษียณ + + + + + +
+ + + + + + +
+
@@ -447,6 +590,9 @@ watch(type, () => { .filter-card { background-color: #f1f1f1b0; } +.q-item-custom { + padding: 0; +} .toggle-expired-account { font-size: 12px; From c21a95f486604eeaea467ac433a68f8b7832e4a3 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 7 Aug 2023 13:17:59 +0700 Subject: [PATCH 03/12] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=20retirement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/06_retirement/api.retirement.ts | 2 +- .../components/ListRetirement/TableList.vue | 9 +++++---- src/modules/06_retirement/views/Main.vue | 10 +++++----- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/api/06_retirement/api.retirement.ts b/src/api/06_retirement/api.retirement.ts index 6f9b42c5a..698f2cb82 100644 --- a/src/api/06_retirement/api.retirement.ts +++ b/src/api/06_retirement/api.retirement.ts @@ -4,7 +4,7 @@ const retirement = `${env.API_URI}/retirement` export default { profile: (type: string, year: string) => `${retirement}/profile/${type}/${year}`, - // profileRetire: (retireProfileId: string) => `${retirement}/profile/${retireProfileId}`, + profileRetire: (retireProfileId: string) => `${retirement}/profile/${retireProfileId}`, listRetire: (retireId: string) => `${retirement}/${retireId}`, createnote: () => `${retirement}/edit`, removeProfile: () => `${retirement}/remove`, diff --git a/src/modules/06_retirement/components/ListRetirement/TableList.vue b/src/modules/06_retirement/components/ListRetirement/TableList.vue index 740e7ad9e..f8c7f6949 100644 --- a/src/modules/06_retirement/components/ListRetirement/TableList.vue +++ b/src/modules/06_retirement/components/ListRetirement/TableList.vue @@ -463,6 +463,7 @@ const paginationLabel = (start: number, end: number, total: number) => { :props="props" class="cursor-pointer" :style="props.row.profileId === profileId && 'color: #26a69a;'" + @click.stop="router.push(`/registry/${props.row.profileId}`)" > {{ props.row.order }} @@ -511,7 +512,7 @@ const paginationLabel = (start: number, end: number, total: number) => { > โน้ต --> - { @click.stop="router.push(`/registry/${props.row.profileId}`)" > ดูข้อมูลทะเบียนประวัติ - + --> { (modalNote = true), (note = props.row.reason), (action = 'edit'), - (retireProfileId = props.row.profileId) + (retireProfileId = props.row.id) " > กรอกเหตุผล @@ -550,7 +551,7 @@ const paginationLabel = (start: number, end: number, total: number) => { (modalNote = true), (action = 'delete'), (note = props.row.remove), - (retireProfileId = props.row.profileId) + (retireProfileId = props.row.id) " >ลบข้อมูล diff --git a/src/modules/06_retirement/views/Main.vue b/src/modules/06_retirement/views/Main.vue index 5f5a24245..304a9bb3a 100644 --- a/src/modules/06_retirement/views/Main.vue +++ b/src/modules/06_retirement/views/Main.vue @@ -125,7 +125,7 @@ {{ col.label }} - + diff --git a/src/modules/05_placement/components/Receive/receiveModal.vue b/src/modules/05_placement/components/Receive/receiveModal.vue index 4f9f42fcb..fab7859b7 100644 --- a/src/modules/05_placement/components/Receive/receiveModal.vue +++ b/src/modules/05_placement/components/Receive/receiveModal.vue @@ -153,20 +153,23 @@ const validateData = async () => { } }); }; - +const id = ref(""); const saveAppoint = async () => { console.log("save", dataForm); myFormPosition.value.validate().then(async (result: boolean) => { + if (props.personalId !== undefined) { + id.value = props.personalId.toString(); + } if (result) { const dataAppoint = await { - personalId: props.personalId, - containDate: dataForm.containDate, + // personalId: props.personalId, + recruitDate: dataForm.containDate, posNoId: dataForm.posNoId, positionId: dataForm.positionId, positionLevelId: dataForm.positionLevelId, positionLineId: dataForm.positionLineId, - positionPathSideId: dataForm.positionPathSideId, + positionPathSideId: null, positionTypeId: dataForm.positionTypeId, // salaryAmount: dataForm.salaryAmount, // mouthSalaryAmount: dataForm.mouthSalaryAmount, @@ -175,7 +178,7 @@ const saveAppoint = async () => { console.log("save appoint===>", dataAppoint); showLoader(); await http - .post(config.API.placementPass(), dataAppoint) + .put(config.API.receivePosition(id.value), dataAppoint) .then((res) => { console.log("respone=>", res); success($q, "บันทึกสำเร็จ"); diff --git a/src/modules/06_retirement/components/ListRetirement/TableList.vue b/src/modules/06_retirement/components/ListRetirement/TableList.vue index 5f6061fee..3250e6e11 100644 --- a/src/modules/06_retirement/components/ListRetirement/TableList.vue +++ b/src/modules/06_retirement/components/ListRetirement/TableList.vue @@ -362,7 +362,7 @@ const paginationLabel = (start: number, end: number, total: number) => { :profile-id="profileId" :UpdateListId="UpdateListId" v-if=" - statusReport !== true || typeReport == 'ADD' || typeReport == '' + statusReport !== true && typeReport == 'ADD' || typeReport == '' " /> @@ -459,11 +459,11 @@ const paginationLabel = (start: number, end: number, total: number) => { @@ -535,7 +535,7 @@ const paginationLabel = (start: number, end: number, total: number) => { { Date: Mon, 7 Aug 2023 16:53:51 +0700 Subject: [PATCH 06/12] =?UTF-8?q?=E0=B8=A5=E0=B8=9A=E0=B8=82=E0=B9=89?= =?UTF-8?q?=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=95=E0=B8=B3=E0=B9=81?= =?UTF-8?q?=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B8=AA=E0=B8=A1=E0=B8=B1=E0=B8=84=E0=B8=A3=E0=B9=83=E0=B8=99?= =?UTF-8?q?=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2=E0=B8=9F=E0=B8=AD=E0=B8=A3?= =?UTF-8?q?=E0=B9=8C=E0=B8=A1=E0=B8=AA=E0=B8=A3=E0=B9=89=E0=B8=B2=E0=B8=87?= =?UTF-8?q?=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../05_placement/components/OrderPlacement/step/step01.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/05_placement/components/OrderPlacement/step/step01.vue b/src/modules/05_placement/components/OrderPlacement/step/step01.vue index eeddc482b..1377ba208 100644 --- a/src/modules/05_placement/components/OrderPlacement/step/step01.vue +++ b/src/modules/05_placement/components/OrderPlacement/step/step01.vue @@ -101,10 +101,10 @@ ) " -->
- + :options="positionOption" option-value="id" use-input input-debounce="0" /> -->
@@ -366,7 +366,7 @@ const fetchdetailOrder = async () => { nameCommand.value = data.signatoryBy; positionCommand.value = data.signatoryPosition; examRound.value = data.examRound; - position.value = data.registerPosition; + // position.value = data.registerPosition; register.value = data.conclusionRegisterNo; dateRegister.value = data.conclusionRegisterDate; announce.value = data.conclusionResultNo; From 07ae0d4a5e750a4e505976c37639bce5913f9aef Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 7 Aug 2023 17:11:33 +0700 Subject: [PATCH 07/12] =?UTF-8?q?api=20=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B9=82=E0=B8=AD=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../05_placement/components/Receive/receiveMain.vue | 7 ++++++- .../05_placement/components/Receive/receiveModal.vue | 10 ++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/modules/05_placement/components/Receive/receiveMain.vue b/src/modules/05_placement/components/Receive/receiveMain.vue index 7adf079fe..d01dbf801 100644 --- a/src/modules/05_placement/components/Receive/receiveMain.vue +++ b/src/modules/05_placement/components/Receive/receiveMain.vue @@ -64,17 +64,22 @@ const resetFilter = () => { onMounted(() => { fecthlistRecevice(); }); +const listRecevice = ref([]); const fecthlistRecevice = async () => { showLoader(); await http .get(config.API.receiveData()) .then((res) => { let response = res.data.result; + listRecevice.value = response; console.log(response); rows.value = response.map((e: any) => ({ personalId: e.id, citizenId: e.citizenId, fullname: e.firstname + " " + e.lastname, + organizationName: "sssss", + orgName: "xxaxa", + organizationShortName: "ssss", positionNumber: e.positionNumber, positionPath: e.positionPath, birthday: date2Thai(e.dateOfBirth), @@ -207,7 +212,7 @@ const openModalTree = (id: string) => { personalId.value = id; console.log(personalId.value); - personal.value = []; + personal.value = listRecevice.value.filter((e) => e.id === id); modalTree.value = true; }; diff --git a/src/modules/05_placement/components/Receive/receiveModal.vue b/src/modules/05_placement/components/Receive/receiveModal.vue index fab7859b7..89208163a 100644 --- a/src/modules/05_placement/components/Receive/receiveModal.vue +++ b/src/modules/05_placement/components/Receive/receiveModal.vue @@ -169,7 +169,7 @@ const saveAppoint = async () => { positionId: dataForm.positionId, positionLevelId: dataForm.positionLevelId, positionLineId: dataForm.positionLineId, - positionPathSideId: null, + positionPathSideId: dataForm.positionPathSideId, positionTypeId: dataForm.positionTypeId, // salaryAmount: dataForm.salaryAmount, // mouthSalaryAmount: dataForm.mouthSalaryAmount, @@ -377,6 +377,8 @@ const expanded = ref([]); watch(props, () => { expanded.value = []; const dataPersonal = props.personal; + console.log(props.personal); + if (dataPersonal) { dataPersonal.map((data: any) => { personal.value = data; @@ -385,15 +387,15 @@ watch(props, () => { } // console.log("draft===>", personal.value.draft); - if (personal.value && personal.value.draft === false) { + if (personal.value) { // const findData = dataRespone.value.find(findByPerson); let findData: any = null; dataRespone.value.map((x: any) => { findData = findByPerson(x); - console.log(findData); + // console.log(findData); if (findData != null) { - console.log("findData===>", findData); + // console.log("findData===>", findData); selectedPosition(findData); for (let i = 3; i <= findData.keyId.length; i += 2) { expanded.value.push(findData.keyId.slice(0, i)); From e731d12fd92aacf152af71a39da05389e2329a4f Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 7 Aug 2023 17:18:18 +0700 Subject: [PATCH 08/12] no message --- src/modules/05_placement/components/Receive/receiveMain.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/05_placement/components/Receive/receiveMain.vue b/src/modules/05_placement/components/Receive/receiveMain.vue index d01dbf801..8156fb8af 100644 --- a/src/modules/05_placement/components/Receive/receiveMain.vue +++ b/src/modules/05_placement/components/Receive/receiveMain.vue @@ -245,7 +245,7 @@ const openDelete = (id: string) => { }; const closeModalTree = async () => { - // await getTable(); + await fecthlistRecevice(); modalTree.value = false; }; From d5ee366ea25c7bbe0dd56333a9557296203a5604 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Mon, 7 Aug 2023 17:40:57 +0700 Subject: [PATCH 09/12] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20condition?= =?UTF-8?q?=20=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=20action=20=E0=B8=95?= =?UTF-8?q?=E0=B9=88=E0=B8=B2=E0=B8=87=E0=B9=86=20=E0=B8=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B9=80=E0=B8=81=E0=B8=A9=E0=B8=B5=E0=B8=A2=E0=B8=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ListRetirement/TableList.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/06_retirement/components/ListRetirement/TableList.vue b/src/modules/06_retirement/components/ListRetirement/TableList.vue index 3250e6e11..0c32115ec 100644 --- a/src/modules/06_retirement/components/ListRetirement/TableList.vue +++ b/src/modules/06_retirement/components/ListRetirement/TableList.vue @@ -362,7 +362,7 @@ const paginationLabel = (start: number, end: number, total: number) => { :profile-id="profileId" :UpdateListId="UpdateListId" v-if=" - statusReport !== true && typeReport == 'ADD' || typeReport == '' + statusReport === false && (typeReport == 'ADD' || typeReport == '' || typeReport == null) " /> @@ -459,11 +459,11 @@ const paginationLabel = (start: number, end: number, total: number) => { @@ -535,7 +535,7 @@ const paginationLabel = (start: number, end: number, total: number) => { { Date: Mon, 7 Aug 2023 18:12:26 +0700 Subject: [PATCH 10/12] no message --- src/api/05_placement/api.placement.ts | 6 ++-- .../components/OrderPlacement/step/step04.vue | 23 ++++++++++++- .../components/ListRetirement/AddList.vue | 8 ++--- .../components/ListRetirement/TableList.vue | 34 ++++++++++++++++--- 4 files changed, 59 insertions(+), 12 deletions(-) diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index 2b02d64f9..79a08679e 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -57,10 +57,12 @@ export default { yearOptionsOrder: () => `${order}/order/fiscal-year`, createOrder: () => `${order}/order/detail`, listOrder: () => `${order}/order`, - detailOrder:(orderId:string) => `${order}/order/detail/${orderId}`, - deleteOrder:(orderId:string) => `${order}/order/${orderId}`, + detailOrder: (orderId: string) => `${order}/order/detail/${orderId}`, + deleteOrder: (orderId: string) => `${order}/order/${orderId}`, typeOrder: () => `${order}/order/order-type`, examroundOrder: () => `${order}/order/detail/exam-round`, + attachmentOrder: (orderId: string) => `${order}/order/attachment/${orderId}`, + receiveData: () => `${receive}`, receiveDataId: (id: string) => `${receive}/${id}`, diff --git a/src/modules/05_placement/components/OrderPlacement/step/step04.vue b/src/modules/05_placement/components/OrderPlacement/step/step04.vue index d7521a80d..e35338733 100644 --- a/src/modules/05_placement/components/OrderPlacement/step/step04.vue +++ b/src/modules/05_placement/components/OrderPlacement/step/step04.vue @@ -422,10 +422,15 @@ import { VuePDF, usePDF } from "@tato30/vue-pdf"; import type { PDFDocumentLoadingTask } from "pdfjs-dist/types/src/display/api"; import type { QForm } from "quasar"; import { useCounterMixin } from "@/stores/mixin"; +import { useRoute } from "vue-router"; +import http from "@/plugins/http"; +import config from "@/app.config"; const mixin = useCounterMixin(); const { date2Thai } = mixin; +const route = useRoute(); +const orderId_params = route.params.orderid; const dialog = ref(false); // onUnmounted(() => { @@ -433,8 +438,15 @@ const dialog = ref(false); // myEventHandler(e); // }); // }); - +const orderId = ref(""); onMounted(async () => { + console.log(orderId_params); + if (orderId_params !== undefined) { + orderId.value == orderId_params.toString(); + } + + fetchAttachment(orderId.value); + // window.addEventListener("resize", (e: any) => { // myEventHandler(e); // }); @@ -447,6 +459,15 @@ onMounted(async () => { }, 1000); }); +const fetchAttachment = async (orderId: string) => { + console.log(123); + await http + .get(config.API.attachmentOrder("08db94be-f7c6-43e2-83eb-3c5cef3a91c7")) + .then((res) => { + console.log(res); + }); +}; + // const myEventHandler = (e: any) => { // console.log("e", e.target.innerWidth); // if (vuePDFRef !== null) { diff --git a/src/modules/06_retirement/components/ListRetirement/AddList.vue b/src/modules/06_retirement/components/ListRetirement/AddList.vue index 98126b058..3091cb41e 100644 --- a/src/modules/06_retirement/components/ListRetirement/AddList.vue +++ b/src/modules/06_retirement/components/ListRetirement/AddList.vue @@ -16,6 +16,7 @@ const retireld_params = route.params.id; const props = defineProps({ retireld: String, profileId: String, + dataProfile: Object, UpdateListId: { type: Function, default: () => console.log("UpdateListId"), @@ -112,8 +113,8 @@ const rows = ref([ watch(modal, () => { if (modal.value === true) { retireld.value = props.retireld; - if (type_params === "officer") { - type.value = type_params; + if (props.dataProfile.type === "OFFICER") { + type.value = "officer"; } else type.value = "all"; fecthlistRetire(); @@ -125,8 +126,7 @@ const fecthlistRetire = async () => { await http .get(config.API.profileOrganizRoot) .then((res) => { - // console.log(res); - + console.log(res); const id = res.data.result[0].id; if (id !== "") { findlist(id); diff --git a/src/modules/06_retirement/components/ListRetirement/TableList.vue b/src/modules/06_retirement/components/ListRetirement/TableList.vue index 0c32115ec..122d388ce 100644 --- a/src/modules/06_retirement/components/ListRetirement/TableList.vue +++ b/src/modules/06_retirement/components/ListRetirement/TableList.vue @@ -169,6 +169,7 @@ onMounted(() => { const round = ref(); const typeReport = ref(""); const statusReport = ref(); +const dataProfile = ref([]); // fecthlist const fecthlistprofile = async (id: string) => { showLoader(); @@ -176,6 +177,7 @@ const fecthlistprofile = async (id: string) => { .get(config.API.listRetire(id)) .then((res) => { console.log(res); + dataProfile.value = res.data.result; round.value = res.data.result.round; statusReport.value = res.data.result.json; typeReport.value = res.data.result.typeReport; @@ -358,11 +360,13 @@ const paginationLabel = (start: number, end: number, total: number) => {
@@ -459,11 +463,21 @@ const paginationLabel = (start: number, end: number, total: number) => { @@ -535,7 +549,12 @@ const paginationLabel = (start: number, end: number, total: number) => { { Date: Mon, 7 Aug 2023 20:34:59 +0700 Subject: [PATCH 11/12] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=E0=B8=9F=E0=B8=B4=E0=B8=A5=E0=B8=94=E0=B9=8C=E0=B8=AB?= =?UTF-8?q?=E0=B8=99=E0=B9=88=E0=B8=A7=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../05_placement/components/Receive/receiveMain.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/modules/05_placement/components/Receive/receiveMain.vue b/src/modules/05_placement/components/Receive/receiveMain.vue index 8156fb8af..816fd8e71 100644 --- a/src/modules/05_placement/components/Receive/receiveMain.vue +++ b/src/modules/05_placement/components/Receive/receiveMain.vue @@ -77,9 +77,16 @@ const fecthlistRecevice = async () => { personalId: e.id, citizenId: e.citizenId, fullname: e.firstname + " " + e.lastname, - organizationName: "sssss", - orgName: "xxaxa", - organizationShortName: "ssss", + organizationName: + e.organizationName + + " " + + e.organizationShortName + + " " + + e.positionNumber + + " " + + e.positionPath, + orgName: e.organizationName, + organizationShortName: e.organizationShortName, positionNumber: e.positionNumber, positionPath: e.positionPath, birthday: date2Thai(e.dateOfBirth), From 5400518678955550d0f16e857526ebe21fd768c2 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Mon, 7 Aug 2023 22:56:05 +0700 Subject: [PATCH 12/12] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=E0=B8=AA=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=B0=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2=E0=B8=AD=E0=B8=AD=E0=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../06_retirement/components/resign/ResignByid.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/06_retirement/components/resign/ResignByid.vue b/src/modules/06_retirement/components/resign/ResignByid.vue index 34b196a57..8c191671d 100644 --- a/src/modules/06_retirement/components/resign/ResignByid.vue +++ b/src/modules/06_retirement/components/resign/ResignByid.vue @@ -45,10 +45,10 @@
-
สถานะการทดลองงาน
+
สถานะ
- - + + {{ status }}
@@ -175,7 +175,7 @@ const name = ref('นายสมคิด ยอดใจ') const position = ref('นักจัดการงานทั่วไป') const level = ref('ชำนาญการพิเศษ') const institution = ref('ฝ่ายบริหารงานทั่วไป') -const status = ref('อยู่ระหว่างการทดลองงาน') +const status = ref('อยู่ระหว่างการพิจารณา') const edit = ref(true) const location = ref('ที่ทำงาน') const filingDate = ref('21 ก.ค. 2566')