forked from verdnatura/salix-front
feat: refs #6891 itemTypeSearchbar
This commit is contained in:
parent
c02dcf622a
commit
e52cb99a80
|
@ -7,8 +7,7 @@ import VnLv from 'src/components/ui/VnLv.vue';
|
||||||
import CardList from 'src/components/ui/CardList.vue';
|
import CardList from 'src/components/ui/CardList.vue';
|
||||||
import ItemTypeSummary from 'src/pages/ItemType/Card/ItemTypeSummary.vue';
|
import ItemTypeSummary from 'src/pages/ItemType/Card/ItemTypeSummary.vue';
|
||||||
import ItemTypeFilter from 'src/pages/ItemType/ItemTypeFilter.vue';
|
import ItemTypeFilter from 'src/pages/ItemType/ItemTypeFilter.vue';
|
||||||
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
|
import ItemTypeSearchbar from '../ItemType/ItemTypeSearchbar.vue';
|
||||||
|
|
||||||
import { useStateStore } from 'stores/useStateStore';
|
import { useStateStore } from 'stores/useStateStore';
|
||||||
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||||
|
|
||||||
|
@ -63,13 +62,7 @@ const exprBuilder = (param, value) => {
|
||||||
<template>
|
<template>
|
||||||
<template v-if="stateStore.isHeaderMounted()">
|
<template v-if="stateStore.isHeaderMounted()">
|
||||||
<Teleport to="#searchbar">
|
<Teleport to="#searchbar">
|
||||||
<VnSearchbar
|
<ItemTypeSearchbar />
|
||||||
data-key="ItemTypeList"
|
|
||||||
url="ItemTypes"
|
|
||||||
:label="t('Search item type')"
|
|
||||||
:info="t('Search itemType by id, name or code')"
|
|
||||||
:expr-builder="exprBuilder"
|
|
||||||
/>
|
|
||||||
</Teleport>
|
</Teleport>
|
||||||
<Teleport to="#actions-append">
|
<Teleport to="#actions-append">
|
||||||
<div class="row q-gutter-x-sm">
|
<div class="row q-gutter-x-sm">
|
||||||
|
@ -132,11 +125,3 @@ const exprBuilder = (param, value) => {
|
||||||
</QTooltip>
|
</QTooltip>
|
||||||
</QPageSticky>
|
</QPageSticky>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<i18n>
|
|
||||||
es:
|
|
||||||
New item type: Nueva familia
|
|
||||||
Name: Nombre
|
|
||||||
Search item type: Buscar familia
|
|
||||||
Search itemType by id, name or code: Buscar familia por id, nombre o código
|
|
||||||
</i18n>
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import VnCard from 'components/common/VnCard.vue';
|
import VnCard from 'components/common/VnCard.vue';
|
||||||
import ItemTypeDescriptor from 'src/pages/ItemType/Card/ItemTypeDescriptor.vue';
|
import ItemTypeDescriptor from 'src/pages/ItemType/Card/ItemTypeDescriptor.vue';
|
||||||
import ItemTypeFilter from 'src/pages/ItemType/ItemTypeFilter.vue';
|
import ItemTypeFilter from 'src/pages/ItemType/ItemTypeFilter.vue';
|
||||||
|
import ItemTypeSearchbar from '../ItemTypeSearchbar.vue';
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VnCard
|
<VnCard
|
||||||
|
@ -11,5 +12,9 @@ import ItemTypeFilter from 'src/pages/ItemType/ItemTypeFilter.vue';
|
||||||
:filter-panel="ItemTypeFilter"
|
:filter-panel="ItemTypeFilter"
|
||||||
search-data-key="ItemTypeList"
|
search-data-key="ItemTypeList"
|
||||||
search-url="ItemTypes"
|
search-url="ItemTypes"
|
||||||
/>
|
>
|
||||||
|
<template #searchbar>
|
||||||
|
<ItemTypeSearchbar />
|
||||||
|
</template>
|
||||||
|
</VnCard>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
<script setup>
|
||||||
|
import VnSearchbar from 'components/ui/VnSearchbar.vue';
|
||||||
|
import { useI18n } from 'vue-i18n';
|
||||||
|
const { t } = useI18n();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<VnSearchbar
|
||||||
|
data-key="ItemTypeList"
|
||||||
|
url="ItemTypes"
|
||||||
|
:label="t('Search item type')"
|
||||||
|
:info="t('Search itemType by id, name or code')"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
<i18n>
|
||||||
|
es:
|
||||||
|
Search item type: Buscar familia
|
||||||
|
Search itemType by id, name or code: Buscar familia por id, nombre o código
|
||||||
|
</i18n>
|
Loading…
Reference in New Issue