diff --git a/src/modules/03_recruiting/components/Contact.vue b/src/modules/03_recruiting/components/Contact.vue index ead430abe..6d8bcf477 100644 --- a/src/modules/03_recruiting/components/Contact.vue +++ b/src/modules/03_recruiting/components/Contact.vue @@ -130,7 +130,9 @@ :rules="[ (val) => !!val || '* กรุณากรอกข้อมูลหมายเลขโทรศัพท์', (val) => - (val.length >= 9 && val.length <= 10) || + (val.length >= 9 && + val.length <= 10 && + val.startsWith('0')) || 'กรุณากรอกข้อมูลหมายเลขโทรศัพท์ให้ถูกต้อง', ]" /> diff --git a/src/modules/03_recruiting/components/Information.vue b/src/modules/03_recruiting/components/Information.vue index bc8c7bb45..b695ee0b7 100644 --- a/src/modules/03_recruiting/components/Information.vue +++ b/src/modules/03_recruiting/components/Information.vue @@ -305,7 +305,9 @@ :rules="[ (val) => !!val || '* กรุณากรอกข้อมูลหมายเลขโทรศัพท์', (val) => - (val.length >= 9 && val.length <= 10) || + (val.length >= 9 && + val.length <= 10 && + val.startsWith('0')) || 'กรุณากรอกข้อมูลหมายเลขโทรศัพท์ให้ถูกต้อง', ]" :label="`${'เบอร์โทร'}`" diff --git a/src/modules/03_recruiting/components/Occupation.vue b/src/modules/03_recruiting/components/Occupation.vue index 48ab56347..9fc2ebc51 100644 --- a/src/modules/03_recruiting/components/Occupation.vue +++ b/src/modules/03_recruiting/components/Occupation.vue @@ -196,7 +196,9 @@ (val) => !!val || '* กรุณากรอกข้อมูลหมายเลขโทรศัพท์', (val) => - (val.length >= 9 && val.length <= 10) || + (val.length >= 9 && + val.length <= 10 && + val.startsWith('0')) || 'กรุณากรอกข้อมูลหมายเลขโทรศัพท์ให้ถูกต้อง', ]" :label="`${'เบอร์โทรที่ทำงาน'}`"