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: "ด้าน/สาขา", +};