0
0
Fork 0

Solucion a comentarios 30

This commit is contained in:
carlosfonseca 2024-03-05 11:14:56 -05:00
parent 09a2af4124
commit d74119f433
1 changed files with 6 additions and 7 deletions

View File

@ -32,7 +32,7 @@ const clientRisksRef = ref(null);
const companiesOptions = ref([]); const companiesOptions = ref([]);
const companyId = ref(null); const companyId = ref(null);
const receiptsRef = ref(null); const receiptsRef = ref(null);
const data = ref([]); const receiptsData = ref([]);
const filterCompanies = { order: ['code'] }; const filterCompanies = { order: ['code'] };
const userParams = { const userParams = {
@ -136,14 +136,14 @@ const columns = computed(() => [
{ {
align: 'left', align: 'left',
field: 'debit', field: 'debit',
format: (value) => toCurrency(value), format: (value) => value && toCurrency(value),
label: t('Debit'), label: t('Debit'),
name: 'debit', name: 'debit',
}, },
{ {
align: 'left', align: 'left',
field: 'credit', field: 'credit',
format: (value) => toCurrency(value), format: (value) => value && toCurrency(value),
label: t('Havings'), label: t('Havings'),
name: 'havings', name: 'havings',
}, },
@ -188,7 +188,7 @@ const getData = () => {
}; };
const onFetch = (data) => { const onFetch = (data) => {
data.value = data; receiptsData.value = data;
}; };
const showNewPaymentDialog = () => { const showNewPaymentDialog = () => {
@ -249,7 +249,6 @@ const sendEmailAction = () => {
:user-params="userParams" :user-params="userParams"
ref="receiptsRef" ref="receiptsRef"
@on-fetch="onFetch" @on-fetch="onFetch"
@on-paginate="onPaginate"
> >
<template #body="{ rows }"> <template #body="{ rows }">
<QTable <QTable
@ -273,7 +272,7 @@ const sendEmailAction = () => {
tableColumnComponents[props.col.name].event(props) tableColumnComponents[props.col.name].event(props)
" "
> >
<template v-if="props.col.name !== 'isConciliate'"> <template v-if="props.col.name !== 'conciliated'">
{{ props.value }} {{ props.value }}
</template> </template>
<WorkerDescriptorProxy <WorkerDescriptorProxy
@ -302,7 +301,7 @@ const sendEmailAction = () => {
/> />
</div> </div>
<QCard class="q-ma-md q-pa-md q-mt-lg" v-if="data?.length"> <QCard class="q-ma-md q-pa-md q-mt-lg" v-if="receiptsData?.length">
<QCardSection> <QCardSection>
<div class="flex justify-center text-subtitle1 text-bold"> <div class="flex justify-center text-subtitle1 text-bold">
{{ t('Total by company') }} {{ t('Total by company') }}