From 6666fe7c20fb72140b3e589f33cb9ca52171d330 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 12 Mar 2024 11:47:46 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/GovernmentInformation/01_Info.vue | 161 +++++------------- .../interface/index/government.ts | 68 +++++--- 2 files changed, 90 insertions(+), 139 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 7d5f38aa3..54c0ca15f 100644 --- a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue @@ -4,6 +4,7 @@ import { useCounterMixin } from "@/stores/mixin"; import type { MyObjectRef, RequestItemsHistoryObject, + FormMain, } from "@/modules/04_registryNew/interface/index/government"; import DialogHeader from "@/components/DialogHeader.vue"; import { useQuasar } from "quasar"; @@ -27,7 +28,7 @@ const { } = mixin; /** ตัวแปรข้อมูลหลัก */ -const formMain = reactive({ +const formMain = reactive({ ocId: "สำนักงานคณะกรรมการข้าราชการกรุงเทพมหานคร/กองบริหารทั่วไป/กลุ่มงานช่วยนักบริหาร", //สังกัด positionId: "ผู้อำนวยการ", //ตำแหน่ง positionLine: "อำนวยการ", //สายงาน @@ -38,10 +39,10 @@ const formMain = reactive({ positionType: "ทั่วไป", //ประเภท positionPathSide: "", //ด้าน/สาขา - containDate: "2024-01-22T02:43:00", //วันที่สั่งบรรจุ - workDate: "2024-01-22T02:43:00", //วันที่เริ่มปฏิบัติราชการ + containDate: new Date("2024-01-22T02:43:00"), //วันที่สั่งบรรจุ + workDate: new Date("2024-01-22T02:43:00"), //วันที่เริ่มปฏิบัติราชการ reasonSameDate: "เนื่องจากเป็นวันหยุด", - retireDate: "2024-01-22T02:43:00", //วันเกษียณอายุ + retireDate: new Date("2024-01-22T02:43:00"), //วันเกษียณอายุ ageAll: "0 ปี 2 เดือน 10 วัน", //อายุราชการ absent: 0, //ขาดราชการ age: 0, //อายุราชการเกื้อกูล @@ -383,11 +384,23 @@ watch( () => modalHistory.value, (isOpen) => { if (isOpen === true) { - filterKeyword.value = '' + filterKeyword.value = ""; getDataHistory(); } } ); + +const fieldLabels = { + ocId: "สังกัด", + positionId: "ตำแหน่ง", + numberId: "เลขที่ตำแหน่ง", + positionExecutive: "ตำแหน่งทางการบริหาร", + positionExecutiveSide: "ด้านตำแหน่งทางการบริหาร", + positionLine: "สายงาน", + positionLevel: "ระดับ", + positionType: "ประเภท", + positionPathSide: "ด้าน/สาขา", +};