ทะเบียนประวัติ: เพิ่มเงื่อนไขเลขประจำตัวประชาชน
This commit is contained in:
parent
0305788655
commit
ef34af8204
1 changed files with 8 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue