feat: refs #7134 unremovableParams

This commit is contained in:
Javier Segarra 2024-12-27 12:46:05 +01:00
parent 800eac4e24
commit 7630e6dfe4
1 changed files with 16 additions and 16 deletions

View File

@ -15,7 +15,12 @@ defineProps({
</script> </script>
<template> <template>
<VnFilterPanel :data-key="dataKey" :search-button="true" :redirect="false"> <VnFilterPanel
:data-key="dataKey"
:search-button="true"
:redirect="false"
:unremovable-params="['supplierId', 'companyId']"
>
<template #tags="{ tag, formatFn }"> <template #tags="{ tag, formatFn }">
<div class="q-gutter-x-xs"> <div class="q-gutter-x-xs">
<strong>{{ t(`params.${tag.label}`) }}: </strong> <strong>{{ t(`params.${tag.label}`) }}: </strong>
@ -23,7 +28,6 @@ defineProps({
</div> </div>
</template> </template>
<template #body="{ params, searchFn }"> <template #body="{ params, searchFn }">
{{ params }}
<QItem> <QItem>
<QItemSection> <QItemSection>
<VnInputDate <VnInputDate
@ -37,7 +41,7 @@ defineProps({
<QItem> <QItem>
<QItemSection> <QItemSection>
<VnSelect <VnSelect
:label="t('params.bank')" :label="t('params.bankFk')"
v-model="params.bankFk" v-model="params.bankFk"
url="Accountings" url="Accountings"
option-label="bank" option-label="bank"
@ -84,15 +88,6 @@ defineProps({
:label="t('params.isConciliated')" :label="t('params.isConciliated')"
/></QItemSection> /></QItemSection>
</QItem> </QItem>
<QItem>
<QItemSection>
<VnInput
v-model="params.itemId"
:label="t('params.itemId')"
is-outlined
/>
</QItemSection>
</QItem>
</template> </template>
</VnFilterPanel> </VnFilterPanel>
</template> </template>
@ -101,21 +96,26 @@ defineProps({
en: en:
params: params:
search: General search search: General search
itemId: Item id
buyerId: Buyer buyerId: Buyer
typeId: Type typeId: Type
categoryId: Category categoryId: Category
from: From from: From
to: To to: To
isConciliated: Is conciliated
currencyFk: Currency
bankFk: Bank
companyId: Comapany
isBooked: Is booked
es: es:
params: params:
supplierId: Proveedor
isConciliated: Conciliado isConciliated: Conciliado
currencyFk: Moneda currencyFk: Moneda
New payment: Añadir pago New payment: Añadir pago
Date: Fecha Date: Fecha
Company: Empresa companyId: Empresa
bank: Caja isBooked: Contabilizado
bankFk: Caja
Amount: Importe Amount: Importe
Reference: Referencia Reference: Referencia
Cash: Efectivo Cash: Efectivo