From 4cfcc2d018bdf1bdd9ed6a9e3ac7db64976f2d2e Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 13 Mar 2025 15:46:55 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=88=E0=B8=B8?= =?UTF-8?q?=20=E0=B8=97=E0=B8=94=E0=B8=A5=E0=B8=AD=E0=B8=87=E0=B8=87?= =?UTF-8?q?=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppointMent/AppointMentDetail.vue | 3 +- .../Help-Government/HelpGovernmentDetail.vue | 5 +- .../components/Other/OtherDetail.vue | 5 +- .../PersonalDetail/DialogCheckInformation.vue | 146 +++--------------- .../PersonalDetail/Information/Certicate.vue | 23 +-- .../PersonalDetail/Information/Education.vue | 19 +-- .../Information/Information.vue | 3 +- .../PersonalList/DialogSelectOrg.vue | 3 +- .../components/PersonalList/Table.vue | 5 +- .../components/Receive/receiveDetail.vue | 4 +- .../Repatriate/RepatriateDetail.vue | 3 +- .../components/Transfer/TransferDetail.vue | 3 +- .../probation/FormEvaluation/FormEvaluate.vue | 16 +- .../FormEvaluation/FormEvaluateAdd.vue | 8 +- .../FormEvaluation/FormEvaluateScore.vue | 12 +- .../FormEvaluation/FormEvaluateScoreAdd.vue | 12 +- .../probation/FormEvaluation/FormReport.vue | 7 +- .../FormEvaluation/FormSaveResult.vue | 12 +- .../FormEvaluation/FormSaveResultAdd.vue | 9 +- .../FormSaveResultAddCommander.vue | 7 +- .../FormEvaluation/FormSaveResultCommader.vue | 7 +- 21 files changed, 113 insertions(+), 199 deletions(-) diff --git a/src/modules/05_placement/components/AppointMent/AppointMentDetail.vue b/src/modules/05_placement/components/AppointMent/AppointMentDetail.vue index 31c93a36d..f89bcba65 100644 --- a/src/modules/05_placement/components/AppointMent/AppointMentDetail.vue +++ b/src/modules/05_placement/components/AppointMent/AppointMentDetail.vue @@ -25,6 +25,7 @@ const { hideLoader, success, dialogConfirm, + convertDateToAPI } = useCounterMixin(); const paramsId = route.params.id; //id รายการที่เลือก @@ -90,7 +91,7 @@ function putAppointment() { positionNumberOld: posNo.value, amountOld: salary.value.toString().replace(/,/g, ""), reason: reason.value, - positionDate: date.value, + positionDate: convertDateToAPI(date.value), }; showLoader(); await http diff --git a/src/modules/05_placement/components/Help-Government/HelpGovernmentDetail.vue b/src/modules/05_placement/components/Help-Government/HelpGovernmentDetail.vue index 5ccf51fd4..a3b5a16c4 100644 --- a/src/modules/05_placement/components/Help-Government/HelpGovernmentDetail.vue +++ b/src/modules/05_placement/components/Help-Government/HelpGovernmentDetail.vue @@ -29,6 +29,7 @@ const { hideLoader, success, findOrgName, + convertDateToAPI } = mixin; const dataId = route.params.id as string; @@ -83,8 +84,8 @@ function onSubmit() { const body = { organizationPositionOld: organizationPositionOld.value, organization: organization.value, - dateStart: dateStart.value, - dateEnd: dateEnd.value, + dateStart: convertDateToAPI(dateStart.value), + dateEnd: convertDateToAPI(dateEnd.value), reason: reason.value, }; await http diff --git a/src/modules/05_placement/components/Other/OtherDetail.vue b/src/modules/05_placement/components/Other/OtherDetail.vue index 7abc5c3a5..f89603145 100644 --- a/src/modules/05_placement/components/Other/OtherDetail.vue +++ b/src/modules/05_placement/components/Other/OtherDetail.vue @@ -29,6 +29,7 @@ const { dialogConfirm, findOrgName, success, + convertDateToAPI, } = mixin; const paramsId = route.params.id; @@ -98,8 +99,8 @@ function onSubmit() { positionLevelOld: positionLevelOld.value, positionNumberOld: posNo.value, amountOld: salary.value.toString().replace(/,/g, ""), - positionDate: date.value, - militaryDate: militaryDate.value, + positionDate: convertDateToAPI(date.value), + militaryDate: convertDateToAPI(militaryDate.value), reason: reason.value, }; await http diff --git a/src/modules/05_placement/components/PersonalDetail/DialogCheckInformation.vue b/src/modules/05_placement/components/PersonalDetail/DialogCheckInformation.vue index d0ff69c33..461dfcbe3 100644 --- a/src/modules/05_placement/components/PersonalDetail/DialogCheckInformation.vue +++ b/src/modules/05_placement/components/PersonalDetail/DialogCheckInformation.vue @@ -1,7 +1,7 @@