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

This commit is contained in:
carlosfonseca 2024-02-22 05:57:28 -05:00
parent 980904a382
commit d9a1d62c74
2 changed files with 83 additions and 70 deletions

View File

@ -85,7 +85,8 @@ const toCustomerCreditCreate = () => {
url="ClientCredits" url="ClientCredits"
/> />
<QPage class="column items-center q-pa-md"> <div class="full-width flex justify-center">
<QCard class="card-width q-pa-lg">
<QTable <QTable
:columns="columns" :columns="columns"
:pagination="{ rowsPerPage: 12 }" :pagination="{ rowsPerPage: 12 }"
@ -99,9 +100,13 @@ const toCustomerCreditCreate = () => {
<QTr :props="props" class="cursor-pointer"> <QTr :props="props" class="cursor-pointer">
<component <component
:is="tableColumnComponents[props.col.name].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" class="rounded-borders q-pa-sm"
v-bind="tableColumnComponents[props.col.name].props(props)" v-bind="
tableColumnComponents[props.col.name].props(props)
"
> >
{{ props.value }} {{ props.value }}
<WorkerDescriptorProxy <WorkerDescriptorProxy
@ -117,7 +122,8 @@ const toCustomerCreditCreate = () => {
<h5 class="flex justify-center color-vn-label" v-else> <h5 class="flex justify-center color-vn-label" v-else>
{{ t('globals.noResults') }} {{ t('globals.noResults') }}
</h5> </h5>
</QPage> </QCard>
</div>
<QPageSticky :offset="[18, 18]"> <QPageSticky :offset="[18, 18]">
<QBtn @click.stop="toCustomerCreditCreate()" color="primary" fab icon="add" /> <QBtn @click.stop="toCustomerCreditCreate()" color="primary" fab icon="add" />

View File

@ -23,7 +23,8 @@ const toCustomerNoteCreate = () => {
</script> </script>
<template> <template>
<QCard class="q-pa-lg"> <div class="full-width flex justify-center">
<QCard class="card-width q-pa-lg">
<VnPaginate <VnPaginate
data-key="CustomerNotes" data-key="CustomerNotes"
:url="'clientObservations'" :url="'clientObservations'"
@ -43,10 +44,15 @@ const toCustomerNoteCreate = () => {
}" }"
> >
<div class="flex justify-between"> <div class="flex justify-between">
<p class="color-vn-label">{{ item.worker.user.nickname }}</p> <p class="color-vn-label">
{{ item.worker.user.nickname }}
</p>
<p class="color-vn-label"> <p class="color-vn-label">
{{ {{
date.formatDate(item?.created, 'DD-MM-YYYY HH:mm:ss') date.formatDate(
item?.created,
'DD-MM-YYYY HH:mm:ss'
)
}} }}
</p> </p>
</div> </div>
@ -62,6 +68,7 @@ const toCustomerNoteCreate = () => {
</template> </template>
</VnPaginate> </VnPaginate>
</QCard> </QCard>
</div>
<QPageSticky :offset="[18, 18]"> <QPageSticky :offset="[18, 18]">
<QBtn @click.stop="toCustomerNoteCreate()" color="primary" fab icon="add" /> <QBtn @click.stop="toCustomerNoteCreate()" color="primary" fab icon="add" />