เลขบัตร กับ เบอร์ limit type เป็น int อย่างเดียว

แก้ไขสามารถบันทึก แก้ไขข้อมูลได้ เลขบัตร กับ เบอร์ limit typt เป็น int อย่างเดียวแล้ว
This commit is contained in:
AnandaTon 2023-03-29 14:33:05 +07:00
parent b5c6c83d62
commit db2ee3d01e
3 changed files with 12 additions and 6 deletions

View file

@ -232,13 +232,18 @@
hide-bottom-space
:outlined="status == 'register' || status == 'rejectRegister'"
dense
counter
maxlength="10"
lazy-rules
type="textarea"
type="tel"
autogrow
:readonly="!(status == 'register' || status == 'rejectRegister')"
:borderless="!(status == 'register' || status == 'rejectRegister')"
v-model="occupationData.tel"
:rules="[(val) => !!val || `${'กรุณากรอก โทรศัพท์'}`]"
:rules="[
(val) => !!val || `${'กรุณากรอก โทรศัพท์'}`,
(val) => /^[0-9]*$/.test(val) || 'กรุณากรอก โทรศัพท์ให้ถูกต้อง'
]"
:label="`${'โทรศัพท์'}`"
/>
</div>