Merge branch 'develop'
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
This commit is contained in:
commit
3f15ce3ca6
2 changed files with 25 additions and 6 deletions
|
|
@ -68,7 +68,12 @@ type Options = { label: string; value: string };
|
||||||
class="col-md-4 col-12"
|
class="col-md-4 col-12"
|
||||||
:label="$t('agencies.name')"
|
:label="$t('agencies.name')"
|
||||||
v-model="name"
|
v-model="name"
|
||||||
:rules="[(val: string) => !!val || $t('form.error.required')]"
|
:rules="[
|
||||||
|
(val) => !!val || $t('form.error.required'),
|
||||||
|
(val) =>
|
||||||
|
/^[A-Za-z0-9ก-๙\s&.,'-]+$/.test(val) ||
|
||||||
|
$t('form.error.branchNameField'),
|
||||||
|
]"
|
||||||
/>
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
for="input-agencies-name-en"
|
for="input-agencies-name-en"
|
||||||
|
|
@ -79,6 +84,15 @@ type Options = { label: string; value: string };
|
||||||
class="col-md-4 col-12"
|
class="col-md-4 col-12"
|
||||||
:label="'Agencies Name'"
|
:label="'Agencies Name'"
|
||||||
v-model="nameEn"
|
v-model="nameEn"
|
||||||
|
:rules="
|
||||||
|
nameEn
|
||||||
|
? [
|
||||||
|
(val) =>
|
||||||
|
/^[A-Za-z0-9ก-๙\s&.,'-]+$/.test(val) ||
|
||||||
|
$t('form.error.branchNameENField'),
|
||||||
|
]
|
||||||
|
: []
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,12 @@ watch(
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
(v) => (typeof v === 'string' ? (registerName = v.trim()) : '')
|
(v) => (typeof v === 'string' ? (registerName = v.trim()) : '')
|
||||||
"
|
"
|
||||||
:rules="[(val: string) => !!val || $t('form.error.required')]"
|
:rules="[
|
||||||
|
(val) => !!val || $t('form.error.required'),
|
||||||
|
(val) =>
|
||||||
|
/^[A-Za-z0-9ก-๙\s&.,'-]+$/.test(val) ||
|
||||||
|
$t('form.error.branchNameField'),
|
||||||
|
]"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
|
|
@ -153,10 +158,10 @@ watch(
|
||||||
(v) => (typeof v === 'string' ? (registerNameEN = v.trim()) : '')
|
(v) => (typeof v === 'string' ? (registerNameEN = v.trim()) : '')
|
||||||
"
|
"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val: string) =>
|
(val) => !!val || $t('form.error.required'),
|
||||||
val === '' ||
|
(val) =>
|
||||||
/^[0-9A-Za-z\s.,]+$/.test(val) ||
|
/^[A-Za-z0-9\s&.,'-]+$/.test(val) ||
|
||||||
$t('form.error.letterOnly'),
|
$t('form.error.branchNameENField'),
|
||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue