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 "-"; }