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