From 6097caf22d727615a330b71d80a5ed8f3b70e3dd Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 18 Jul 2025 10:35:49 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=81?= =?UTF-8?q?=E0=B8=AA=E0=B8=94=E0=B8=87=20=E0=B9=80=E0=B8=A5=E0=B8=82?= =?UTF-8?q?=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1?= =?UTF-8?q?=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/10_registry/02_Government/07_Position.vue | 9 ++++++++- src/modules/10_registry/03_Salary/01_Salary.vue | 9 ++++++++- src/modules/10_registry/interface/index/Main.ts | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/modules/10_registry/02_Government/07_Position.vue b/src/modules/10_registry/02_Government/07_Position.vue index 7989543..17486b4 100644 --- a/src/modules/10_registry/02_Government/07_Position.vue +++ b/src/modules/10_registry/02_Government/07_Position.vue @@ -176,6 +176,11 @@ const baseColumns = ref([ label: "ตำแหน่งทางการบริหาร", sortable: true, field: "positionExecutive", + format(val, row) { + return !row.positionExecutiveField + ? val + : `${val} (${row.positionExecutiveField})`; + }, headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => @@ -189,7 +194,9 @@ const baseColumns = ref([ field: "commandNo", format(val, row) { return row.commandNo && row.commandYear - ? `${row.commandNo}/${Number(row.commandYear) + 543}` + ? row.commandType !== "C-PM-47" + ? `${row.commandNo}/${Number(row.commandYear) + 543}` + : `${row.commandNo}` : ""; }, headerStyle: "font-size: 14px", diff --git a/src/modules/10_registry/03_Salary/01_Salary.vue b/src/modules/10_registry/03_Salary/01_Salary.vue index b516136..efe717d 100644 --- a/src/modules/10_registry/03_Salary/01_Salary.vue +++ b/src/modules/10_registry/03_Salary/01_Salary.vue @@ -160,6 +160,11 @@ const baseColumns = ref([ label: "ตำแหน่งทางการบริหาร", sortable: true, field: "positionExecutive", + format(val, row) { + return !row.positionExecutiveField + ? val + : `${val} (${row.positionExecutiveField})`; + }, headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => @@ -173,7 +178,9 @@ const baseColumns = ref([ field: "commandNo", format(val, row) { return row.commandNo && row.commandYear - ? `${row.commandNo}/${Number(row.commandYear) + 543}` + ? row.commandType !== "C-PM-47" + ? `${row.commandNo}/${Number(row.commandYear) + 543}` + : `${row.commandNo}` : ""; }, headerStyle: "font-size: 14px", diff --git a/src/modules/10_registry/interface/index/Main.ts b/src/modules/10_registry/interface/index/Main.ts index 34ada80..f61e739 100644 --- a/src/modules/10_registry/interface/index/Main.ts +++ b/src/modules/10_registry/interface/index/Main.ts @@ -196,6 +196,7 @@ interface SalaryFormType { refCommandNo: string | null; templateDoc: string; order: number; + commandType: string; } interface NopaidFormType {