ทะเบียนประวัติ: เพิ่มเงื่อนไขเลขประจำตัวประชาชน

This commit is contained in:
oat 2024-02-09 09:18:05 +07:00
parent 0305788655
commit ef34af8204

View file

@ -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="#############"
/>
<q-input
ref="positionRef"