From e74bf95d0eae446055d7e4d5d8ea65062af9c4ac Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 18 Aug 2023 17:34:37 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=9F=E0=B8=B4?= =?UTF-8?q?=E0=B8=A5=20=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=8A=E0=B9=88=E0=B8=A7=E0=B8=A2=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Repatriate/RepatriatebyId.vue | 6 +- .../helpgovernment/governmentDetail.vue | 85 +++++++++++++++---- 2 files changed, 70 insertions(+), 21 deletions(-) diff --git a/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue b/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue index fe939736d..e53d85afa 100644 --- a/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue +++ b/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue @@ -63,11 +63,11 @@
- แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย + แก้ไขข้อมูลเพื่อลงบัญชี
- + /> -->
- +
@@ -120,12 +120,12 @@ v-model="organizationPositionOld" :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]" hide-bottom-space - :label="`${'ตำแหน่ง/สังกัด'}`" + :label="`${'ตำแหน่ง'}`" type="textarea" />
-
+
-
+
-
+
+
+
+ + + + + +
+
(""); const organization = ref(""); const reason = ref(""); const status = ref(""); -const date = ref(null); +const dateStart = ref(null); +const dateEnd = ref(null); const salary = ref(""); const positionTypeOld = ref(""); const positionLevelOld = ref(""); @@ -389,7 +436,8 @@ const getData = async () => { organization.value = data.organization; reason.value = data.reason; status.value = data.status; - date.value = data.date; + dateStart.value = data.dateStart; + dateEnd.value = data.dateEnd; salary.value = data.salary; positionTypeOld.value = data.positionTypeOld; positionLevelOld.value = data.positionLevelOld; @@ -412,9 +460,9 @@ const getClass = (val: boolean) => { }; // const conditionSave = async () => { - if (myForm.value !== null) { - myForm.value.validate().then((success: any) => { - if (success) { + // if (myForm.value !== null) { + // myForm.value.validate().then((success: any) => { + // if (success) { dialogConfirm( $q, async () => await saveData(), @@ -422,9 +470,9 @@ const conditionSave = async () => { "แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย" ); } - }); - } -}; +// }); +// } +// }; const cancelBtn = () => { edit.value = !edit; getData(); @@ -434,7 +482,8 @@ const saveData = async () => { organization: organization.value, reason: reason.value, organizationPositionOld: organizationPositionOld.value, - date: date.value, + dateStart: dateStart.value, + dateEnd: dateEnd.value, positionTypeOld: positionTypeOld.value, positionLevelOld: positionLevelOld.value, positionNumberOld: posNo.value,