diff --git a/src/modules/04_registryNew/components/registry/registry.vue b/src/modules/04_registryNew/components/registry/registry.vue index 50b315c9c..e6f99dd76 100644 --- a/src/modules/04_registryNew/components/registry/registry.vue +++ b/src/modules/04_registryNew/components/registry/registry.vue @@ -452,8 +452,15 @@ watch(posTypeId, () => { lazy-rules borderless class="col-12 bg-white q-ma-md" - :rules="[(val) => val.length > 0 || 'กรุณากรอกเลขประจำตัวประชาชน']" + :rules="[ + (val: string) => !!val || `${'กรุณากรอกเลขประจำตัวประชาชน'}`, + (val: string) => + val.length >= 13 || + `${'กรุณากรอกเลขประจำตัวประชาชนให้ครบ'}`, + ]" + maxlength="13" hide-bottom-space + mask="#############" />