fix: wrong fetch function
This commit is contained in:
parent
b155e57122
commit
7ba5947575
1 changed files with 7 additions and 3 deletions
|
|
@ -2296,6 +2296,7 @@ watch(inputSearchProductAndService, async () => {
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-input
|
<q-input
|
||||||
outlined
|
outlined
|
||||||
|
style="width: 250px"
|
||||||
dense
|
dense
|
||||||
:label="$t('search')"
|
:label="$t('search')"
|
||||||
:bg-color="$q.dark.isActive ? 'dark' : 'white'"
|
:bg-color="$q.dark.isActive ? 'dark' : 'white'"
|
||||||
|
|
@ -2309,7 +2310,11 @@ watch(inputSearchProductAndService, async () => {
|
||||||
</q-input>
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<AppBox class="row" style="background: none">
|
<AppBox
|
||||||
|
no-padding
|
||||||
|
class="row q-mt-sm q-col-gutter-sm"
|
||||||
|
style="background: none"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="col-12 text-center"
|
class="col-12 text-center"
|
||||||
v-if="resultSearchProduct?.length === 0"
|
v-if="resultSearchProduct?.length === 0"
|
||||||
|
|
@ -2318,7 +2323,6 @@ watch(inputSearchProductAndService, async () => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="q-pa-xs"
|
|
||||||
:class="`${$q.screen.gt.sm ? 'col-3 ' : $q.screen.gt.xs ? 'col-6' : 'col-12'}`"
|
:class="`${$q.screen.gt.sm ? 'col-3 ' : $q.screen.gt.xs ? 'col-6' : 'col-12'}`"
|
||||||
v-for="i in (!!inputSearchProductAndService
|
v-for="i in (!!inputSearchProductAndService
|
||||||
? resultSearchProduct
|
? resultSearchProduct
|
||||||
|
|
@ -2731,7 +2735,7 @@ watch(inputSearchProductAndService, async () => {
|
||||||
dense
|
dense
|
||||||
@addProduct="
|
@addProduct="
|
||||||
async (index) => {
|
async (index) => {
|
||||||
await fetchListOfProduct();
|
await fetchListOfProductIsAdd(currentIdType);
|
||||||
currentWorkIndex = index;
|
currentWorkIndex = index;
|
||||||
dialogTotalProduct = true;
|
dialogTotalProduct = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue