change: form now validate on blur or malform

This commit is contained in:
Methapon2001 2024-08-29 22:42:04 +07:00 committed by Methapon Metanipat
parent 466d50317e
commit b7921d4173
29 changed files with 4 additions and 179 deletions

View file

@ -210,7 +210,6 @@ watch(districtId, fetchSubDistrict);
hide-bottom-space
class="col-6"
v-model="workplace"
lazy-rules="ondemand"
:dense="dense"
:label="$t('customer.form.workplace')"
:readonly="readonly || sameWithEmployer"
@ -231,7 +230,6 @@ watch(districtId, fetchSubDistrict);
hide-bottom-space
class="col-12"
v-model="address"
lazy-rules="ondemand"
:dense="dense"
:label="$t('form.address')"
:readonly="readonly || sameWithEmployer"
@ -256,7 +254,6 @@ watch(districtId, fetchSubDistrict);
input-debounce="0"
option-label="name"
v-model="provinceId"
lazy-rules="ondemand"
class="col-md-3 col-6"
:dense="dense"
:label="$t('form.province')"
@ -301,7 +298,6 @@ watch(districtId, fetchSubDistrict);
input-debounce="0"
option-label="name"
v-model="districtId"
lazy-rules="ondemand"
class="col-md-3 col-6"
:dense="dense"
:label="$t('form.district')"
@ -344,7 +340,6 @@ watch(districtId, fetchSubDistrict);
option-value="id"
input-debounce="0"
option-label="name"
lazy-rules="ondemand"
class="col-md-3 col-6"
v-model="subDistrictId"
:dense="dense"
@ -376,7 +371,6 @@ watch(districtId, fetchSubDistrict);
</template>
</q-select>
<q-input
lazy-rules="ondemand"
:for="`${prefixId}-${indexId !== undefined ? `input-zip-code-${indexId}` : 'input-zip-code'}`"
:dense="dense"
outlined
@ -403,7 +397,6 @@ watch(districtId, fetchSubDistrict);
hide-bottom-space
class="col-6"
v-model="workplaceEN"
lazy-rules="ondemand"
:dense="dense"
:label="$t('customer.form.workplaceEN')"
:readonly="readonly || sameWithEmployer"
@ -420,7 +413,6 @@ watch(districtId, fetchSubDistrict);
</div>
<q-input
lazy-rules="ondemand"
:for="`${prefixId}-${indexId !== undefined ? `input-address-en-${indexId}` : 'input-address-en'}`"
:dense="dense"
:readonly="readonly || sameWithEmployer"
@ -448,7 +440,6 @@ watch(districtId, fetchSubDistrict);
option-value="id"
input-debounce="0"
v-model="provinceId"
lazy-rules="ondemand"
option-label="nameEN"
class="col-md-3 col-6"
:dense="dense"
@ -492,7 +483,6 @@ watch(districtId, fetchSubDistrict);
option-value="id"
input-debounce="0"
v-model="districtId"
lazy-rules="ondemand"
option-label="nameEN"
class="col-md-3 col-6"
:dense="dense"
@ -535,7 +525,6 @@ watch(districtId, fetchSubDistrict);
hide-bottom-space
option-value="id"
input-debounce="0"
lazy-rules="ondemand"
option-label="nameEN"
class="col-md-3 col-6"
v-model="subDistrictId"
@ -568,7 +557,6 @@ watch(districtId, fetchSubDistrict);
</template>
</q-select>
<q-input
lazy-rules="ondemand"
hide-bottom-space
:for="`${prefixId}-${indexId !== undefined ? `input-zip-code-${indexId}` : 'input-zip-code'}`"
:dense="dense"