From 783c3c6e50299901d80d4e59ae22e8583d973edf Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 5 Jun 2025 10:11:08 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4?= =?UTF-8?q?=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=20=3D=3D=3D=20>=20Popup-Edit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04_registryPerson/interface/index/Edit.ts | 21 +- .../interface/response/Edit.ts | 6 +- .../views/edit/components/FormPosition.vue | 2 +- .../views/edit/components/Table.vue | 867 +++++++++++++++++- 4 files changed, 877 insertions(+), 19 deletions(-) diff --git a/src/modules/04_registryPerson/interface/index/Edit.ts b/src/modules/04_registryPerson/interface/index/Edit.ts index c30fdac09..a128377f9 100644 --- a/src/modules/04_registryPerson/interface/index/Edit.ts +++ b/src/modules/04_registryPerson/interface/index/Edit.ts @@ -8,4 +8,23 @@ interface DataProfile { org: string; } -export type { DataProfile }; +interface FormDataSalary { + positionLevel: string; + positionCee: string; + amount: number; + amountSpecial: number; + posNoAbb: string; + posNo: string; + orgRoot: string; + orgChild1: string; + orgChild2: string; + orgChild3: string; + orgChild4: string; + commandCode: string; + posNumCodeSit: string; + posNumCodeSitAbb: string; + commandNo: string; + commandYear: null | number; +} + +export type { DataProfile, FormDataSalary }; diff --git a/src/modules/04_registryPerson/interface/response/Edit.ts b/src/modules/04_registryPerson/interface/response/Edit.ts index f27f8e890..8af17bae8 100644 --- a/src/modules/04_registryPerson/interface/response/Edit.ts +++ b/src/modules/04_registryPerson/interface/response/Edit.ts @@ -27,8 +27,8 @@ interface DataPosition { amount: number; amountSpecial: number; commandCode: string; - commandDateAffect: string; - commandDateSign: string; + commandDateAffect: Date; + commandDateSign: Date; commandId: string; commandName: string; commandNo: string; @@ -68,6 +68,8 @@ interface DataPosition { remark: string; salaryId: string; status: string; + posNumCodeSitAbb: string; + posNumCodeSit: string; } export type { DataSalaryPos, DataPosition }; diff --git a/src/modules/04_registryPerson/views/edit/components/FormPosition.vue b/src/modules/04_registryPerson/views/edit/components/FormPosition.vue index 2beb7b820..8e6df441c 100644 --- a/src/modules/04_registryPerson/views/edit/components/FormPosition.vue +++ b/src/modules/04_registryPerson/views/edit/components/FormPosition.vue @@ -370,7 +370,7 @@ function classInput(val: boolean) { lazy-rules borderless v-model="formData.positionType" - :label="empType === 'officer' ? 'ประเภทตำแหน่ง' : 'กลุ่มงาน'" + :label="empType === 'officer' ? 'ตำแหน่งประเภท' : 'กลุ่มงาน'" emit-value map-options option-label="name" diff --git a/src/modules/04_registryPerson/views/edit/components/Table.vue b/src/modules/04_registryPerson/views/edit/components/Table.vue index 1d88103f3..1b9f722f1 100644 --- a/src/modules/04_registryPerson/views/edit/components/Table.vue +++ b/src/modules/04_registryPerson/views/edit/components/Table.vue @@ -1,6 +1,7 @@ @@ -427,6 +777,17 @@ onMounted(() => { จัดลำดับข้อมูล +
+ +
+ { }} + {
{{ props.rowIndex + 1 }}
+ +
+ {{ col.value ?? "-" }} + +
+ {{ `แก้ไข${col.label}` }} +
+
+ + + + +
+ +
+ + +
+ +
+ + + + +
+ +
+ + + +
+ +
+ + + + + + + +
+ +
+ + + +
+ +
+ + + +
+
+
+
{{ findOrgNameHtml({ @@ -564,13 +1189,225 @@ onMounted(() => { child4: props.row.orgChild4, }) }} + + +
+ {{ `แก้ไข${col.label}` }} +
+ +
+ + + + + + + +
+
+ + + +
+
-
- {{ col.value ? col.value : "-" }} -
{{ col.value ? col.value : "-" }} + +
+ {{ `แก้ไข${col.label}` }} +
+ + + + + + + + + + + + + + + +