From 2f8f1246a5df747fa16b2c4baaba75d9f9f64c54 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 18 Aug 2023 16:53:35 +0700 Subject: [PATCH 01/11] =?UTF-8?q?=E0=B8=9F=E0=B8=AD=E0=B8=A3=E0=B9=8C?= =?UTF-8?q?=E0=B8=A1=E0=B8=95=E0=B8=B2=E0=B8=A1=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=A0=E0=B8=97=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1?= =?UTF-8?q?=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/05_placement/api.placement.ts | 14 +- .../10_order/components/step/step01.vue | 2153 ++++++++++++++--- 2 files changed, 1822 insertions(+), 345 deletions(-) diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index f844d90b4..e6c6e0847 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -61,6 +61,8 @@ export default { `${placement}/position/clear/${personalId}`, // order + organizationsOrder: () => `${order}/order/organizations`, + approverOC: (id: string) => `${order}/order/approver/${id}`, yearOptionsOrder: () => `${order}/order/fiscal-year`, listOrder: () => `${order}/order`, detailOrder: (orderId: string) => `${order}/order/detail/${orderId}`, @@ -120,7 +122,7 @@ export default { officerDetail: (id: string) => `${placement}/officer/${id}`, officerMainDelete: (id: string) => `${placement}/officer/${id}`, officerMainReport: () => `${placement}/officer/report`, - officerMainEdit: (id:string) => `${placemenHelpGov}/${id}`, + officerMainEdit: (id: string) => `${placemenHelpGov}/${id}`, // ส่งตัวกลับ placemenRepatriation, @@ -128,15 +130,15 @@ export default { repatriationDetail: (id: string) => `${placement}/repatriation/${id}`, repatriationMainDelete: (id: string) => `${placement}/repatriation/${id}`, repatriationMainReport: () => `${placement}/repatriation/report`, - repatriationMainEdit: (id:string) => `${placemenRepatriation}/${id}`, + repatriationMainEdit: (id: string) => `${placemenRepatriation}/${id}`, // ขอย้าย placemenRelocation, relocationMain: () => `${placement}/relocation`, - relocationDetail: (id:string) => `${placement}/relocation/${id}`, - relocationMainDelete: (id:string) => `${placement}/relocation/${id}`, + relocationDetail: (id: string) => `${placement}/relocation/${id}`, + relocationMainDelete: (id: string) => `${placement}/relocation/${id}`, relocationMainReport: () => `${placement}/relocation/report`, - relocationMainPut: (id:string) => `${placement}/relocation/position/${id}`, - relocationMainEdit: (id:string) => `${placemenRelocation}/${id}`, + relocationMainPut: (id: string) => `${placement}/relocation/position/${id}`, + relocationMainEdit: (id: string) => `${placemenRelocation}/${id}`, // อื่นๆ placemenOther, otherMain: () => `${placemenOther}`, diff --git a/src/modules/10_order/components/step/step01.vue b/src/modules/10_order/components/step/step01.vue index 4005a2ba4..73d358cf5 100644 --- a/src/modules/10_order/components/step/step01.vue +++ b/src/modules/10_order/components/step/step01.vue @@ -1,197 +1,6 @@ - +divdiv + + diff --git a/src/modules/10_order/components/step/step03.vue b/src/modules/10_order/components/step/step03.vue index 3781bb3f9..290cffccf 100644 --- a/src/modules/10_order/components/step/step03.vue +++ b/src/modules/10_order/components/step/step03.vue @@ -1,314 +1,3 @@ - - + + diff --git a/src/modules/10_order/components/step/step04.vue b/src/modules/10_order/components/step/step04.vue index ce35a30c6..402c3d72c 100644 --- a/src/modules/10_order/components/step/step04.vue +++ b/src/modules/10_order/components/step/step04.vue @@ -1,3 +1,238 @@ + + - +} From a646ad3d6d6b0a3dcf65dc165b9a640cc6d08dff Mon Sep 17 00:00:00 2001 From: waruneeta Date: Sat, 19 Aug 2023 13:36:39 +0700 Subject: [PATCH 06/11] fix bug send profileId to registry --- src/api/05_placement/api.placement.ts | 4 + .../AppointMent/AppointmentModal.vue | 42 ++- .../components/AppointMent/Detail.vue | 206 +++---------- .../05_placement/components/Other/Detail.vue | 7 +- .../components/Receive/receiveDetail2.vue | 8 +- .../components/Receive/receiveModal.vue | 2 +- .../components/Relocation/RelocationModal.vue | 2 +- .../components/Relocation/RelocationbyId.vue | 40 +-- .../components/Repatriate/RepatriatebyId.vue | 283 +++--------------- .../components/Transfer/transferRegistry.vue | 12 +- .../helpgovernment/governmentDetail.vue | 272 +++-------------- .../components/probation/ProbationDetail.vue | 1 + .../interface/response/Transfer.ts | 1 + src/modules/05_placement/router.ts | 4 +- .../Discharged/dischargedRegistry.vue | 123 +------- .../components/DismissOrder/outRegistry.vue | 125 +------- .../Expulsion/expulsionRegistry.vue | 123 +------- .../interface/response/discharged.ts | 1 + .../interface/response/expulsion.ts | 1 + 19 files changed, 205 insertions(+), 1052 deletions(-) diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index e6c6e0847..775d8d572 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -98,6 +98,7 @@ export default { receiveReport: `${receive}/report`, receiveDataId: (id: string) => `${receive}/${id}`, receivePosition: (id: string) => `${receive}/position/${id}`, + receiveDataPosition: () => `${receive}/use`, //tranfer ระบบคำขอโอน transfer, @@ -115,6 +116,7 @@ export default { appointmentDelete: (id: string) => `${placement}/appointment/${id}`, appointmentPosition: (id: string) => `${placement}/appointment/position/${id}`, apppointmentReport: (id: string) => `${placement}/appointment/report/${id}`, + apppointmentPosition: () => `${placement}/appointment/use`, // ช่วยราชการ placemenHelpGov, @@ -139,6 +141,8 @@ export default { relocationMainReport: () => `${placement}/relocation/report`, relocationMainPut: (id: string) => `${placement}/relocation/position/${id}`, relocationMainEdit: (id: string) => `${placemenRelocation}/${id}`, + relocationMainPosition: () => `${placement}/relocation/use`, + // อื่นๆ placemenOther, otherMain: () => `${placemenOther}`, diff --git a/src/modules/05_placement/components/AppointMent/AppointmentModal.vue b/src/modules/05_placement/components/AppointMent/AppointmentModal.vue index 8625c2b2a..64d377c5f 100644 --- a/src/modules/05_placement/components/AppointMent/AppointmentModal.vue +++ b/src/modules/05_placement/components/AppointMent/AppointmentModal.vue @@ -30,15 +30,12 @@ let dataForm = reactive({ positionLineId: "", positionPathSideId: "", positionTypeId: "", - // salaryAmount: null, - // mouthSalaryAmount: null, - // positionSalaryAmount: null, }); onMounted(async () => { await fetchPublishFile(); await loadTreeData(); - // await fetchplacementPosition(); + await fetchplacementPosition(); }); const fetchPublishFile = async () => { await http @@ -90,17 +87,17 @@ function filterByPersonIdNull(obj: any) { } // โหลด position -// const placementPosition = ref([]); -// const fetchplacementPosition = async () => { -// await http -// .get(config.API.placementPosition()) -// .then((res: any) => { -// placementPosition.value = res.data.result; -// }) -// .catch((e: any) => { -// messageError($q, e); -// }); -// }; +const placementPosition = ref([]); +const fetchplacementPosition = async () => { + await http + .get(config.API.apppointmentPosition()) + .then((res: any) => { + placementPosition.value = res.data.result; + }) + .catch((e: any) => { + messageError($q, e); + }); +}; const search = ref(""); //reset Tree Filter @@ -191,7 +188,7 @@ const saveAppoint = async () => { // await resetFilter(); await fetchPublishFile(); await loadTreeData(); - // await fetchplacementPosition(); + await fetchplacementPosition(); hideLoader(); }); } @@ -367,10 +364,10 @@ const selectedPosition = async (data: any) => { console.log("dataForm", dataForm); }; -// const checkPosition = (val: string) => { -// const num = placementPosition.value.findIndex((e: string) => e === val); -// return num; -// }; +const checkPosition = (val: string) => { + const num = placementPosition.value.findIndex((e: string) => e === val); + return num; +}; const personal = ref(); const expanded = ref([]); @@ -506,13 +503,12 @@ function findByPerson(element: any): any { :active="selected == prop.node.keyId" @click="selectedPosition(prop.node)" :disable=" - prop.node.name != null - + prop.node.name != null || + checkPosition(prop.node.positionNumId) != -1 " active-class="my-list-link text-primary text-weight-medium" class="row items-center text-dark q-py-xs q-pl-sm rounded-borders my-list" > - (""); const positionTypeOld = ref(""); const positionLevelOld = ref(""); @@ -53,8 +54,9 @@ const fecthappointmentByid = async () => { .then((res: any) => { const data = res.data.result; appointment.value = data; - console.log(data); + // console.log(data); + profileId.value = data.profileId; title.value.fullname = `${data.firstname ?? "-"} ${data.lastname ?? "-"}`; title.value.organizationPositionOld = data.organizationPositionOld ?? "-"; title.value.positionLevelOld = data.positionLevelOld ?? "-"; @@ -131,16 +133,7 @@ const getClass = (val: boolean) => {