From ef34af8204c01ecbc514a896987b8de441b2afc0 Mon Sep 17 00:00:00 2001 From: oat Date: Fri, 9 Feb 2024 09:18:05 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4:=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B9=80=E0=B8=87=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B9=84=E0=B8=82=E0=B9=80=E0=B8=A5=E0=B8=82=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=88=E0=B8=B3=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=8A=E0=B8=B2=E0=B8=8A=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04_registryNew/components/registry/registry.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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="#############" />