refactor: refs #8316 remove invoiceInSearchbar
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-01-13 13:12:55 +01:00
parent 168fe4c5b1
commit 06e04e1fb5
2 changed files with 9 additions and 27 deletions

View File

@ -18,7 +18,7 @@ import VnSection from 'src/components/common/VnSection.vue';
const user = useState().getUser();
const { viewSummary } = useSummaryDialog();
const { t } = useI18n();
const dataKey='InvoiceInList';
const dataKey = 'InvoiceInList';
const tableRef = ref();
const companies = ref([]);
@ -132,11 +132,7 @@ const cols = computed(() => [
</script>
<template>
<FetchData
url="Companies"
@on-fetch="(data) => (companies = data)"
auto-load
/>
<FetchData url="Companies" @on-fetch="(data) => (companies = data)" auto-load />
<VnSection
:data-key="dataKey"
:columns="cols"
@ -144,7 +140,6 @@ const cols = computed(() => [
:array-data-props="{
url: 'InvoiceIns/filter',
order: ['issued DESC', 'id DESC'],
exprBuilder,
}"
>
<template #rightMenu>
@ -187,7 +182,9 @@ const cols = computed(() => [
<QItem v-bind="scope.itemProps">
<QItemSection>
<QItemLabel>{{ scope.opt?.nickname }}</QItemLabel>
<QItemLabel caption> #{{ scope.opt?.id }}, {{ scope.opt?.name }} </QItemLabel>
<QItemLabel caption>
#{{ scope.opt?.id }}, {{ scope.opt?.name }}
</QItemLabel>
</QItemSection>
</QItem>
</template>
@ -205,7 +202,10 @@ const cols = computed(() => [
option-label="code"
:required="true"
/>
<VnInputDate :label="t('InvoiceIn.summary.issued')" v-model="data.issued" />
<VnInputDate
:label="t('InvoiceIn.summary.issued')"
v-model="data.issued"
/>
</template>
</VnTable>
</template>

View File

@ -1,18 +0,0 @@
<script setup>
import VnSearchbar from 'components/ui/VnSearchbar.vue';
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
</script>
<template>
<VnSearchbar
data-key="InvoiceInList"
:label="t('Search invoice')"
:info="t('Search invoices in by id or supplier fiscal name')"
url="InvoiceIns/filter"
/>
</template>
<i18n>
es:
Search invoice: Buscar factura recibida
Search invoices in by id or supplier fiscal name: Buscar facturas recibidas por id o por nombre fiscal del proveedor
</i18n>