From 55ee7f6b12022702dc73bf435d2f3433209e67b4 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Wed, 27 Mar 2024 13:30:42 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20API=20=E0=B8=82?= =?UTF-8?q?=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=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 --- .../detail/GovernmentInformation/01_Info.vue | 369 ++++++------------ .../interface/index/government.ts | 38 +- 2 files changed, 145 insertions(+), 262 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue index a1801bbbc..e7149cd64 100644 --- a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue @@ -1,5 +1,5 @@ @@ -451,37 +454,21 @@ onMounted(()=>{
- แก้ไข - ประวิติข้อมูลราชการ + แก้ไข + ประวิติข้อมูลราชการ
-
+
{{ - fieldLabels[field as keyof typeof fieldLabels] - }} + fieldLabels[field as keyof typeof fieldLabels] + }}
{{ formMain[field] ? formMain[field] : "-" }} @@ -489,18 +476,14 @@ onMounted(()=>{
-
+
{{ - fieldLabels[field as keyof typeof fieldLabels] - }} + fieldLabels[field as keyof typeof fieldLabels] + }}
- {{ formMain[field] ? formMain[field] : "-" }} + {{ formMain[field] ? formMain[field] : "-" }}
@@ -515,8 +498,8 @@ onMounted(()=>{
{{ - formMain.containDate ? date2Thai(formMain.containDate) : "-" - }} + formMain.containDate ? date2Thai(formMain.containDate) : "-" + }}
@@ -527,25 +510,23 @@ onMounted(()=>{
{{ - formMain.workDate !== null - ? date2Thai(formMain.workDate as Date) - : "-" - }} + formMain.workDate !== null + ? date2Thai(formMain.workDate as Date) + : "-" + }}
-
+
เหตุผลที่วันที่ไม่ตรงกัน
{{ - formMain.reasonSameDate !== "" ? formMain.reasonSameDate : "-" - }} + formMain.reasonSameDate !== "" ? formMain.reasonSameDate : "-" + }}
@@ -556,10 +537,10 @@ onMounted(()=>{
{{ - formMain.retireDate !== null - ? date2Thai(formMain.retireDate as Date) - : "-" - }} + formMain.retireDate + ? date2Thai(formMain.retireDate as Date) + : "-" + }}
@@ -571,7 +552,7 @@ onMounted(()=>{ อายุราชการ
- {{ formMain.ageAll !== "" ? formMain.ageAll : "-" }} + {{ formMain.ageAll ? `${formMain.ageAll.day} วัน ${formMain.ageAll.month} เดือน ${formMain.ageAll.year} ปี` : "-" }}
@@ -611,13 +592,7 @@ onMounted(()=>{
- + @@ -625,28 +600,15 @@ onMounted(()=>{ {{ parseInt(value + 543) }}
-
- +
+
- + บันทึกข้อมูล @@ -734,10 +660,7 @@ onMounted(()=>{ - + @@ -745,66 +668,24 @@ onMounted(()=>{
- + - +
- +