feat: only validate field on submit only

This commit is contained in:
Methapon2001 2024-07-26 11:05:07 +07:00
parent 10e0d638f5
commit c3ac90429e
26 changed files with 164 additions and 14 deletions

View file

@ -948,6 +948,7 @@ watch(currentHq, () => {
class="row q-py-sm q-px-md justify-between full-width surface-3 bordered-b"
>
<q-input
lazy-rules="ondemand"
for="input-search"
outlined
dense
@ -967,6 +968,7 @@ watch(currentHq, () => {
:class="{ 'q-pt-xs': $q.screen.lt.md }"
>
<q-select
lazy-rules="ondemand"
v-model="statusFilter"
outlined
dense
@ -987,6 +989,7 @@ watch(currentHq, () => {
></q-select>
<q-select
lazy-rules="ondemand"
id="select-field"
for="select-field"
:options="

View file

@ -784,6 +784,7 @@ watch(
>
<div class="row q-py-sm q-px-md justify-between full-width">
<q-input
lazy-rules="ondemand"
for="input-search"
outlined
dense
@ -804,6 +805,7 @@ watch(
style="white-space: nowrap"
>
<q-select
lazy-rules="ondemand"
v-model="statusFilter"
outlined
dense
@ -821,6 +823,7 @@ watch(
></q-select>
<q-select
lazy-rules="ondemand"
v-if="!modeView"
id="select-field"
for="select-field"

View file

@ -1764,6 +1764,7 @@ watch(isMainPage, () => {
class="row q-px-md q-py-sm justify-between full-width surface-3 bordered-b"
>
<q-input
lazy-rules="ondemand"
for="input-search"
outlined
dense
@ -1784,6 +1785,7 @@ watch(isMainPage, () => {
style="white-space: nowrap"
>
<q-select
lazy-rules="ondemand"
id="select-status"
for="select-status"
v-model="currentStatus"
@ -1802,6 +1804,7 @@ watch(isMainPage, () => {
]"
></q-select>
<q-select
lazy-rules="ondemand"
id="select-field"
v-if="modeView === false"
for="select-field"

View file

@ -1799,6 +1799,7 @@ watch(
class="row q-py-sm q-px-md justify-between full-width surface-3 bordered-b"
>
<q-input
lazy-rules="ondemand"
for="input-search"
outlined
:class="{ 'col-12': $q.screen.lt.md }"
@ -1820,6 +1821,7 @@ watch(
style="white-space: nowrap"
>
<q-select
lazy-rules="ondemand"
v-model="currentStatus"
for="select-status"
outlined
@ -1841,6 +1843,7 @@ watch(
></q-select>
<q-select
lazy-rules="ondemand"
v-if="modeView === false"
id="select-field"
for="select-field"
@ -2472,6 +2475,7 @@ watch(
class="row justify-between items-center q-px-md q-py-sm surface-3 bordered-b"
>
<q-input
lazy-rules="ondemand"
:class="{ 'col-12': $q.screen.lt.md }"
outlined
dense
@ -2492,6 +2496,7 @@ watch(
style="white-space: nowrap"
>
<q-select
lazy-rules="ondemand"
v-model="currentStatus"
outlined
dense
@ -2513,6 +2518,7 @@ watch(
></q-select>
<q-select
lazy-rules="ondemand"
v-if="modeView === false"
:hide-dropdown-icon="$q.screen.lt.sm"
id="select-field"
@ -3321,6 +3327,7 @@ watch(
<div class="row items-center">
<q-space />
<q-input
lazy-rules="ondemand"
id="input-search-add-product"
outlined
style="width: 250px"

View file

@ -24,6 +24,7 @@ const toggleWorker = ref(true);
<div class="row q-pa-md items-center">
<div style="flex: 1"><q-img src="/logo.png" width="8rem" /></div>
<q-select
lazy-rules="ondemand"
v-model="selectedBranchIssuer"
:options="[{ label: 'Issuer 1', value: 'Issuer 1' }]"
:label="$t('quotation.form.customerBranchSelect')"
@ -35,6 +36,7 @@ const toggleWorker = ref(true);
dense
/>
<q-select
lazy-rules="ondemand"
v-model="selectedCustomer"
:options="[{ label: 'Customer 1', value: 'Customer 1' }]"
:label="$t('quotation.form.customerSelect')"