forked from verdnatura/salix-front
Solucion a comentarios 30
This commit is contained in:
parent
09a2af4124
commit
d74119f433
|
@ -32,7 +32,7 @@ const clientRisksRef = ref(null);
|
|||
const companiesOptions = ref([]);
|
||||
const companyId = ref(null);
|
||||
const receiptsRef = ref(null);
|
||||
const data = ref([]);
|
||||
const receiptsData = ref([]);
|
||||
|
||||
const filterCompanies = { order: ['code'] };
|
||||
const userParams = {
|
||||
|
@ -136,14 +136,14 @@ const columns = computed(() => [
|
|||
{
|
||||
align: 'left',
|
||||
field: 'debit',
|
||||
format: (value) => toCurrency(value),
|
||||
format: (value) => value && toCurrency(value),
|
||||
label: t('Debit'),
|
||||
name: 'debit',
|
||||
},
|
||||
{
|
||||
align: 'left',
|
||||
field: 'credit',
|
||||
format: (value) => toCurrency(value),
|
||||
format: (value) => value && toCurrency(value),
|
||||
label: t('Havings'),
|
||||
name: 'havings',
|
||||
},
|
||||
|
@ -188,7 +188,7 @@ const getData = () => {
|
|||
};
|
||||
|
||||
const onFetch = (data) => {
|
||||
data.value = data;
|
||||
receiptsData.value = data;
|
||||
};
|
||||
|
||||
const showNewPaymentDialog = () => {
|
||||
|
@ -249,7 +249,6 @@ const sendEmailAction = () => {
|
|||
:user-params="userParams"
|
||||
ref="receiptsRef"
|
||||
@on-fetch="onFetch"
|
||||
@on-paginate="onPaginate"
|
||||
>
|
||||
<template #body="{ rows }">
|
||||
<QTable
|
||||
|
@ -273,7 +272,7 @@ const sendEmailAction = () => {
|
|||
tableColumnComponents[props.col.name].event(props)
|
||||
"
|
||||
>
|
||||
<template v-if="props.col.name !== 'isConciliate'">
|
||||
<template v-if="props.col.name !== 'conciliated'">
|
||||
{{ props.value }}
|
||||
</template>
|
||||
<WorkerDescriptorProxy
|
||||
|
@ -302,7 +301,7 @@ const sendEmailAction = () => {
|
|||
/>
|
||||
</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>
|
||||
<div class="flex justify-center text-subtitle1 text-bold">
|
||||
{{ t('Total by company') }}
|
||||
|
|
Loading…
Reference in New Issue