From 6b0d3b98873a54e11d980ce5569bc49c4dd51097 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 13 Feb 2026 16:39:22 +0700 Subject: [PATCH] refactor(registry): readonly input citizenId !== 'OWNER' --- .../components/detail/PersonalInformation/01_Profile.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 439bbd7c7..8b72346ee 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue @@ -563,7 +563,11 @@ onMounted(() => { maxlength="13" mask="#############" v-model="formData.citizenId" - class="inputgreen" + :class=" + checkPermission($route)?.attrOwnership !== 'OWNER' + ? '' + : 'inputgreen' + " :label="dataLabel.citizenId" :rules="[ (val: string) => !!val || `${'กรุณากรอก เลขประจำตัวประชาชน'}`, @@ -572,8 +576,10 @@ onMounted(() => { `${'กรุณากรอกเลขประจำตัวประชาชนให้ครบ'}`, ]" @update:model-value="changeCardID" + :readonly="checkPermission($route)?.attrOwnership !== 'OWNER'" /> +