From 40506599d462e645467ccdcfa9d53279c94ed158 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Wed, 25 Feb 2026 16:52:41 +0700 Subject: [PATCH] =?UTF-8?q?fix=20popup=20=E0=B9=80=E0=B8=A5=E0=B8=B7?= =?UTF-8?q?=E0=B8=AD=E0=B8=81=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=9A=E0=B8=B1?= =?UTF-8?q?=E0=B8=87=E0=B8=84=E0=B8=B1=E0=B8=9A=E0=B8=9A=E0=B8=B1=E0=B8=8D?= =?UTF-8?q?=E0=B8=8A=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Workflow/DialogSelectPerson.vue | 24 +++++++-------- .../05_leave/components/FormLeave/Form.vue | 30 ++++++++++--------- .../05_leave/interface/response/main.ts | 1 + 3 files changed, 29 insertions(+), 26 deletions(-) diff --git a/src/components/Workflow/DialogSelectPerson.vue b/src/components/Workflow/DialogSelectPerson.vue index 7f2f1ae..c1ad38e 100644 --- a/src/components/Workflow/DialogSelectPerson.vue +++ b/src/components/Workflow/DialogSelectPerson.vue @@ -37,15 +37,6 @@ const rejectName = computed(() => const selected = ref([]); const rows = ref([]); const columns = ref([ - { - name: "posNo", - align: "left", - label: "เลขที่ตำแหน่ง", - sortable: true, - field: "posNo", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, { name: "fullName", align: "left", @@ -59,11 +50,20 @@ const columns = ref([ style: "font-size: 14px", }, { - name: "posExecutiveName", + name: "posNo", align: "left", - label: "ตำแหน่งทางการบริหาร", + label: "เลขที่ตำแหน่ง", sortable: true, - field: "posExecutiveName", + field: "posNo", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, + { + name: "positionSign", + align: "left", + label: "ตำแหน่งใต้ลายเซ็น", + sortable: true, + field: "positionSign", headerStyle: "font-size: 14px", style: "font-size: 14px", }, diff --git a/src/modules/05_leave/components/FormLeave/Form.vue b/src/modules/05_leave/components/FormLeave/Form.vue index d9c37f8..d80b64b 100644 --- a/src/modules/05_leave/components/FormLeave/Form.vue +++ b/src/modules/05_leave/components/FormLeave/Form.vue @@ -43,15 +43,6 @@ const search = ref(""); const isLoading = ref(false); const rows = ref([]); const columns = ref([ - { - name: "posNo", - align: "left", - label: "เลขที่ตำแหน่ง", - sortable: true, - field: "posNo", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, { name: "firstName", align: "left", @@ -65,11 +56,20 @@ const columns = ref([ style: "font-size: 14px", }, { - name: "posExecutiveNameOrg", + name: "posNo", align: "left", - label: "ตำแหน่งทางการบริหาร", + label: "เลขที่ตำแหน่ง", sortable: true, - field: "posExecutiveNameOrg", + field: "posNo", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, + { + name: "positionSign", + align: "left", + label: "ตำแหน่งใต้ลายเซ็น", + sortable: true, + field: "positionSign", format(val) { return removeDuplicateWords(val || ""); }, @@ -149,7 +149,7 @@ function onSubmit() { : ""; dataStore.commanderPosition = removeDuplicateWords( - selected.value[0].posExecutiveNameOrg || "" + selected.value[0].positionSign || "", ); } @@ -402,7 +402,9 @@ function getSearch() { :key="col.name" :props="props" > - {{ getColumnLabel(col, isAct) }} + {{ + getColumnLabel(col, isAct) + }} diff --git a/src/modules/05_leave/interface/response/main.ts b/src/modules/05_leave/interface/response/main.ts index f3fdb81..1a864c9 100644 --- a/src/modules/05_leave/interface/response/main.ts +++ b/src/modules/05_leave/interface/response/main.ts @@ -29,6 +29,7 @@ interface DataCommander { posType: string; position: string; prefix: string; + positionSign?: string; } export type { DataCommander };