0
0
Fork 0

Merge pull request 'refactor: refs #6837 move travel search like other sections' (!243) from 6837-moveSearchById into dev

Reviewed-on: verdnatura/salix-front#243
Reviewed-by: Pablo Natek <pablone@verdnatura.es>
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Jon Elias 2024-03-25 10:26:02 +00:00
commit f1d37ed756
2 changed files with 12 additions and 9 deletions

View File

@ -60,15 +60,6 @@ const decrement = (paramsObj, key) => {
</div> </div>
</template> </template>
<template #body="{ params, searchFn }"> <template #body="{ params, searchFn }">
<QItem>
<QItemSection>
<VnInput
v-model="params.search"
:label="t('params.search')"
is-outlined
/>
</QItemSection>
</QItem>
<QItem> <QItem>
<QItemSection> <QItemSection>
<VnSelectFilter <VnSelectFilter

View File

@ -8,6 +8,7 @@ import VnLv from 'src/components/ui/VnLv.vue';
import TravelSummary from './Card/TravelSummary.vue'; import TravelSummary from './Card/TravelSummary.vue';
import TravelFilter from './TravelFilter.vue'; import TravelFilter from './TravelFilter.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'components/FetchData.vue';
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'stores/useStateStore';
import { toDate } from 'src/filters/index'; import { toDate } from 'src/filters/index';
@ -59,6 +60,15 @@ onMounted(async () => {
</script> </script>
<template> <template>
<template v-if="stateStore.isHeaderMounted()">
<Teleport to="#searchbar">
<VnSearchbar
data-key="TravelList"
:limit="20"
:label="t('searchByIdOrReference')"
/>
</Teleport>
</template>
<FetchData <FetchData
url="Warehouses" url="Warehouses"
:filter="{ fields: ['id', 'name'] }" :filter="{ fields: ['id', 'name'] }"
@ -172,7 +182,9 @@ onMounted(async () => {
<i18n> <i18n>
en: en:
addEntry: Add entry addEntry: Add entry
searchByIdOrReference: Search by ID or reference
es: es:
addEntry: Añadir entrada addEntry: Añadir entrada
searchByIdOrReference: Buscar por ID o por referencia
</i18n> </i18n>