Solucion a comentarios
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
carlosfonseca 2024-02-22 10:44:29 -05:00
parent f69b25716d
commit 9ae0874ccf
8 changed files with 335 additions and 296 deletions

View File

@ -17,20 +17,22 @@ onMounted(() => {
});
</script>
<template>
<div class="full-width flex justify-center">
<QPage class="card-width q-pa-lg">
<CrudModel
data-key="CustomerContacts"
url="ClientContacts"
model="CustomerContacts"
:data-required="{ clientFk: route.params.id }"
:default-remove="false"
:filter="{
fields: ['id', 'name', 'phone', 'clientFk'],
where: { clientFk: route.params.id },
}"
data-key="CustomerContacts"
model="CustomerContacts"
ref="customerContactsRef"
:default-remove="false"
:data-required="{ clientFk: route.params.id }"
url="ClientContacts"
>
<template #body="{ rows }">
<QCard class="q-pa-md">
<QCard class="q-pl-lg q-py-md">
<VnRow
v-for="(row, index) in rows"
:key="index"
@ -72,6 +74,8 @@ onMounted(() => {
</QCard>
</template>
</CrudModel>
</QPage>
</div>
</template>
<i18n>

View File

@ -70,7 +70,8 @@ const updateData = () => {
</script>
<template>
<QCard class="q-pa-lg">
<div class="full-width flex justify-center">
<QCard class="card-width q-pa-lg">
<VnPaginate
:filter="filter"
@on-fetch="fetch"
@ -129,7 +130,10 @@ const updateData = () => {
<QSeparator class="q-mx-lg" vertical />
<div class="flex">
<div class="flex items-center" v-if="item?.insurances.length">
<div
class="flex items-center"
v-if="item?.insurances.length"
>
<div class="flex q-mr-xl">
<div class="q-mr-sm color-vn-label">
{{ t('Credit') }}:
@ -156,7 +160,9 @@ const updateData = () => {
</div>
</div>
<div class="flex items-center q-ml-lg q-mr-md cursor-pointer">
<div
class="flex items-center q-ml-lg q-mr-md cursor-pointer"
>
<QIcon
@click.stop="openViewCredit(item)"
color="primary"
@ -175,6 +181,7 @@ const updateData = () => {
</template>
</VnPaginate>
</QCard>
</div>
<QPageSticky :offset="[18, 18]" v-if="showQPageSticky">
<QBtn

View File

@ -126,6 +126,7 @@ const columns = computed(() => [
</template>
</FormModel>
<div class="full-width flex justify-center">
<QTable
:columns="columns"
:pagination="{ rowsPerPage: 0 }"
@ -133,7 +134,7 @@ const columns = computed(() => [
hide-bottom
row-key="id"
v-model:selected="selected"
class="q-pa-lg"
class="card-width q-pa-lg"
>
<template #body-cell="props">
<QTd :props="props">
@ -154,6 +155,7 @@ const columns = computed(() => [
</QTd>
</template>
</QTable>
</div>
</template>
<i18n>

View File

@ -117,14 +117,16 @@ const toCustomerGreugeCreate = () => {
<template>
<FetchData :filter="filter" @on-fetch="setRows" auto-load url="greuges" />
<QPage class="column items-center q-pa-md">
<QCard class="full-width" v-if="totalAmount">
<div class="full-width flex justify-center">
<QPage class="card-width q-pa-lg">
<QCard class="full-width q-pa-sm" v-if="totalAmount">
<h6 class="flex justify-end q-my-lg q-pr-lg">
<span class="color-vn-label q-mr-md">{{ t('Total') }}:</span>
{{ toCurrency(totalAmount) }}
</h6>
</QCard>
<QCard class="q-pa-sm q-mt-md">
<QTable
:columns="columns"
:no-data-label="t('globals.noResults')"
@ -139,8 +141,12 @@ const toCustomerGreugeCreate = () => {
<component
:is="tableColumnComponents[props.col.name].component"
class="col-content"
v-bind="tableColumnComponents[props.col.name].props(props)"
@click="tableColumnComponents[props.col.name].event(props)"
v-bind="
tableColumnComponents[props.col.name].props(props)
"
@click="
tableColumnComponents[props.col.name].event(props)
"
>
{{ props.value }}
<WorkerDescriptorProxy
@ -152,7 +158,9 @@ const toCustomerGreugeCreate = () => {
</QTd>
</template>
</QTable>
</QCard>
</QPage>
</div>
<QPageSticky :offset="[18, 18]">
<QBtn @click.stop="toCustomerGreugeCreate()" color="primary" fab icon="add" />

View File

@ -84,7 +84,8 @@ const toCustomerRecoverieCreate = () => {
url="Recoveries"
/>
<QPage class="column items-center q-pa-md">
<div class="full-width flex justify-center">
<QPage class="card-width q-pa-lg">
<QTable
:columns="columns"
:no-data-label="t('globals.noResults')"
@ -99,8 +100,12 @@ const toCustomerRecoverieCreate = () => {
<component
:is="tableColumnComponents[props.col.name].component"
class="col-content"
v-bind="tableColumnComponents[props.col.name].props(props)"
@click="tableColumnComponents[props.col.name].event(props)"
v-bind="
tableColumnComponents[props.col.name].props(props)
"
@click="
tableColumnComponents[props.col.name].event(props)
"
>
{{ props.value }}
</component>
@ -109,6 +114,7 @@ const toCustomerRecoverieCreate = () => {
</template>
</QTable>
</QPage>
</div>
<QPageSticky :offset="[18, 18]">
<QBtn @click.stop="toCustomerRecoverieCreate()" color="primary" fab icon="add" />

View File

@ -90,7 +90,8 @@ const toCustomerSamplesCreate = () => {
url="ClientSamples"
/>
<QPage class="column items-center q-pa-md">
<div class="full-width flex justify-center">
<QPage class="card-width q-pa-lg">
<QTable
:columns="columns"
:pagination="{ rowsPerPage: 12 }"
@ -105,8 +106,12 @@ const toCustomerSamplesCreate = () => {
<component
:is="tableColumnComponents[props.col.name].component"
class="col-content"
v-bind="tableColumnComponents[props.col.name].props(props)"
@click="tableColumnComponents[props.col.name].event(props)"
v-bind="
tableColumnComponents[props.col.name].props(props)
"
@click="
tableColumnComponents[props.col.name].event(props)
"
>
{{ props.value }}
<WorkerDescriptorProxy
@ -119,6 +124,7 @@ const toCustomerSamplesCreate = () => {
</template>
</QTable>
</QPage>
</div>
<QPageSticky :offset="[18, 18]">
<QBtn @click.stop="toCustomerSamplesCreate()" color="primary" fab icon="add" />

View File

@ -104,7 +104,8 @@ const refreshData = () => {
url="clients/transactions"
/>
<QPage class="column items-center q-pa-md">
<div class="full-width flex justify-center">
<QPage class="card-width q-pa-lg">
<QTable
:columns="columns"
:pagination="{ rowsPerPage: 12 }"
@ -118,9 +119,13 @@ const refreshData = () => {
<QTr :props="props">
<component
:is="tableColumnComponents[props.col.name].component"
@click="tableColumnComponents[props.col.name].event(props)"
@click="
tableColumnComponents[props.col.name].event(props)
"
class="rounded-borders q-pa-sm"
v-bind="tableColumnComponents[props.col.name].props(props)"
v-bind="
tableColumnComponents[props.col.name].props(props)
"
>
{{ props.value }}
</component>
@ -133,6 +138,7 @@ const refreshData = () => {
{{ t('globals.noResults') }}
</h5>
</QPage>
</div>
</template>
<i18n>

View File

@ -453,7 +453,7 @@ export default {
{
name: 'CustomerUnpaid',
title: 'unpaid',
icon: 'vn:supplierfalse',
icon: 'vn:deaulter',
},
],
},