From 5db28c7978bfb437fbf11d0932fdc1a073d4c0b2 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Tue, 20 Feb 2024 17:28:38 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=97=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Information/OldName.vue | 26 +++++++++++++++---- src/stores/mixin.ts | 4 +++ 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/modules/04_registry/components/Information/OldName.vue b/src/modules/04_registry/components/Information/OldName.vue index 794d9b072..956c8965c 100644 --- a/src/modules/04_registry/components/Information/OldName.vue +++ b/src/modules/04_registry/components/Information/OldName.vue @@ -102,7 +102,7 @@ :hide-dropdown-icon="!edit" hide-bottom-space :class="getClass(edit)" - :readonly="!edit || status != 'prefix'" + :readonly="!edit || status == 'lastName' || status == 'firstNameLastName' || status == 'firstName'" :borderless="!edit" :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]" :outlined="edit" @@ -128,7 +128,7 @@ :outlined="edit" dense lazy-rules - :readonly="!edit || status == 'lastName' || status == 'prefix'" + :readonly="!edit || status == 'lastName' || status == 'prefix' || status == 'prefixAndlastName'" :borderless="!edit" v-model="firstName" :rules="[(val) => !!val || `${'กรุณากรอกชื่อ'}`]" @@ -401,15 +401,23 @@ const Ops = ref({ name: "เปลี่ยนนามสกุล", }, { - id: "all", + id: "firstNameLastName", name: "เปลี่ยนชื่อ-นามสกุล", }, + { + id: "prefixAndlastName", + name: "เปลี่ยนคำนำหน้าชื่อ และนามสกุล", + }, + { + id: "all", + name: "เปลี่ยนคำนำหน้าชื่อ, ชื่อ-นามสกุล", + }, ], }); const OpsFilter = ref({ prefixOps: [], statusOps: [ - { + { id: "prefix", name: "เปลี่ยนคำนำหน้าชื่อ", }, @@ -422,9 +430,17 @@ const OpsFilter = ref({ name: "เปลี่ยนนามสกุล", }, { - id: "all", + id: "firstNameLastName", name: "เปลี่ยนชื่อ-นามสกุล", }, + { + id: "prefixAndlastName", + name: "เปลี่ยนคำนำหน้าชื่อ และนามสกุล", + }, + { + id: "all", + name: "เปลี่ยนคำนำหน้าชื่อ และชื่อ-นามสกุล", + }, ], }); profileData.oldName.columns.length == 0 diff --git a/src/stores/mixin.ts b/src/stores/mixin.ts index 439f60251..1be3f8a8c 100644 --- a/src/stores/mixin.ts +++ b/src/stores/mixin.ts @@ -825,7 +825,11 @@ export const useCounterMixin = defineStore("mixin", () => { case "lastName": return "เปลี่ยนนามสกุล"; case "all": + return "เปลี่ยนคำนำหน้าชื่อ, ชื่อ-นามสกุล"; + case "firstNameLastName": return "เปลี่ยนชื่อ-นามสกุล"; + case "prefixAndlastName": + return "เปลี่ยนคำนำหน้าชื่อ และนามสกุล"; default: return "-"; }