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

@ -148,7 +148,6 @@ watch(
style="margin-left: 0px; padding-left: 0px"
>
<q-input
lazy-rules="ondemand"
for="input-regis-no"
:dense="dense"
outlined
@ -193,7 +192,6 @@ watch(
input-debounce="0"
option-label="label"
option-value="value"
lazy-rules="ondemand"
id="input-responsible-area"
:dense="dense"
:readonly="readonly"
@ -222,7 +220,6 @@ watch(
style="row-gap: 16px"
>
<q-input
lazy-rules="ondemand"
for="input-discount-condition"
:dense="dense"
outlined
@ -254,7 +251,6 @@ watch(
input-debounce="0"
option-value="value"
option-label="label"
lazy-rules="ondemand"
class="col-md-3 col-6"
id="input-source-nationality"
:dense="dense"
@ -290,7 +286,6 @@ watch(
option-value="value"
option-label="label"
class="col-md-3 col-6"
lazy-rules="ondemand"
id="input-import-nationality"
:dense="dense"
:readonly="readonly"
@ -324,7 +319,6 @@ watch(
input-debounce="0"
option-label="label"
option-value="label"
lazy-rules="ondemand"
class="col-md-6 col-12"
id="select-trainig-place"
:dense="dense"
@ -348,7 +342,6 @@ watch(
</template>
</q-select>
<q-input
lazy-rules="ondemand"
for="input-checkpoint"
:dense="dense"
outlined
@ -362,7 +355,6 @@ watch(
@clear="checkpoint = ''"
/>
<q-input
lazy-rules="ondemand"
for="input-checkpoint-en"
:dense="dense"
outlined

View file

@ -107,7 +107,6 @@ onMounted(async () => {
input-debounce="0"
option-label="label"
option-value="value"
lazy-rules="ondemand"
class="col-md-2 col-12"
:dense="dense"
:readonly="readonly"
@ -148,7 +147,6 @@ onMounted(async () => {
input-debounce="0"
option-label="label"
option-value="value"
lazy-rules="ondemand"
class="col-md-2 col-12"
:disable="isRoleInclude(['branch_manager']) && !readonly"
:dense="dense"
@ -170,7 +168,6 @@ onMounted(async () => {
</template>
</q-select>
<q-input
lazy-rules="ondemand"
for="input-username"
:dense="dense"
outlined
@ -204,7 +201,6 @@ onMounted(async () => {
input-debounce="0"
option-value="value"
option-label="label"
lazy-rules="ondemand"
for="select-user-type"
:dense="dense"
:readonly="readonly"
@ -241,7 +237,6 @@ onMounted(async () => {
input-debounce="0"
option-label="label"
option-value="value"
lazy-rules="ondemand"
for="select-user-role"
:dense="dense"
v-model="userRole"
@ -266,7 +261,7 @@ onMounted(async () => {
</q-item>
</template>
</q-select>
<!-- <q-input lazy-rules="ondemand"
<!-- <q-input
id="input-user-code"
:dense="dense"
:outlined="readonly ? false : outlined"

View file

@ -124,7 +124,6 @@ watch(
input-debounce="0"
option-label="label"
option-value="value"
lazy-rules="ondemand"
hide-dropdown-icon
class="col-md-1 col-6"
:dense="dense"
@ -149,7 +148,6 @@ watch(
</q-select>
<q-input
lazy-rules="ondemand"
:for="`${prefixId}-input-first-name`"
:dense="dense"
outlined
@ -162,7 +160,6 @@ watch(
/>
<q-input
lazy-rules="ondemand"
:for="`${prefixId}-input-mid-name`"
:dense="dense"
outlined
@ -178,7 +175,6 @@ watch(
/>
<q-input
lazy-rules="ondemand"
:for="`${prefixId}-input-last-name`"
:dense="dense"
outlined
@ -193,7 +189,6 @@ watch(
<div class="col-12 row" style="display: flex; gap: var(--size-2)">
<q-input
lazy-rules="ondemand"
:for="`${prefixId}-input-first-name`"
:dense="dense"
outlined
@ -214,7 +209,6 @@ watch(
/>
<q-input
lazy-rules="ondemand"
:for="`${prefixId}-input-first-name-en`"
:dense="dense"
outlined
@ -226,7 +220,6 @@ watch(
:rules="[(val: string) => !!val || $t('form.error.required')]"
/>
<q-input
lazy-rules="ondemand"
:for="`${prefixId}-input-mid-name-en`"
:dense="dense"
outlined
@ -241,7 +234,6 @@ watch(
@clear="midNameEN = ''"
/>
<q-input
lazy-rules="ondemand"
:for="`${prefixId}-input-last-name-en`"
:dense="dense"
outlined
@ -255,7 +247,6 @@ watch(
</div>
<q-input
lazy-rules="ondemand"
v-if="!employee"
:for="`${prefixId}-input-telephone`"
:dense="dense"
@ -271,7 +262,6 @@ watch(
@clear="telephoneNo = ''"
/>
<q-input
lazy-rules="ondemand"
v-if="!employee"
:for="`${prefixId}-input-email`"
:dense="dense"
@ -296,7 +286,6 @@ watch(
input-debounce="0"
option-label="label"
option-value="value"
lazy-rules="ondemand"
class="col-md-2 col-6"
:dense="dense"
:readonly="readonly"
@ -333,7 +322,6 @@ watch(
/>
<q-input
lazy-rules="ondemand"
:for="`${prefixId}-input-age`"
:id="`${prefixId}-input-age`"
:dense="dense"
@ -362,7 +350,6 @@ watch(
input-debounce="0"
option-label="label"
option-value="value"
lazy-rules="ondemand"
class="col-2"
:dense="dense"
v-model="gender"
@ -396,7 +383,6 @@ watch(
option-label="label"
option-value="value"
v-model="nationality"
lazy-rules="ondemand"
class="col-2"
:dense="dense"
:readonly="readonly"