From f726aece81037396ded4900cb10fde03a2bfa3c3 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 25 May 2026 16:49:18 +0700 Subject: [PATCH] fix(registry-officer): set profile name field to readonly in edit mode --- .../detail/PersonalInformation/01_Profile.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue index 7730029f7..ace941cf4 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue @@ -408,7 +408,8 @@ function calculateMinDate() { function prefixRankRule() { return [ - () => !!formData.rank || !!formData.prefix || "กรุณาเลือกคำนำหน้าชื่อ หรือยศ", + () => + !!formData.rank || !!formData.prefix || "กรุณาเลือกคำนำหน้าชื่อ หรือยศ", ]; } @@ -588,6 +589,7 @@ onMounted(() => {
{ option-value="name" v-model="formData.prefix" clearable - class="inputgreen" :options="store.Ops.prefixOps" :label="dataLabel.prefix" :rules="prefixRankRule()" @@ -640,24 +641,24 @@ onMounted(() => {
@@ -721,6 +722,7 @@ onMounted(() => {
{ option-label="name" option-value="name" v-model="formData.gender" - class="inputgreen" :options="store.Ops.genderOps" :label="dataLabel.gender" @filter="(inputValue: string,