More improvements

This commit is contained in:
William Buezas 2024-01-29 08:59:20 -03:00
parent 9d90a3808f
commit 5e296869a1
2 changed files with 20 additions and 2 deletions

View File

@ -81,6 +81,7 @@ function viewSummary(id) {
<div class="descriptor"> <div class="descriptor">
<template v-if="entity"> <template v-if="entity">
<div class="header bg-primary q-pa-sm justify-between"> <div class="header bg-primary q-pa-sm justify-between">
<slot name="header-extra-action" />
<QBtn <QBtn
@click.stop="viewSummary(entity.id)" @click.stop="viewSummary(entity.id)"
round round
@ -118,7 +119,7 @@ function viewSummary(id) {
icon="more_vert" icon="more_vert"
round round
size="md" size="md"
v-if="slots.menu" :class="{ invisible: !slots.menu }"
> >
<QTooltip> <QTooltip>
{{ t('components.cardDescriptor.moreOptions') }} {{ t('components.cardDescriptor.moreOptions') }}

View File

@ -103,6 +103,22 @@ const getEntryQueryParams = (supplier) => {
@on-fetch="setData" @on-fetch="setData"
data-key="Supplier" data-key="Supplier"
> >
<template #header-extra-action>
<QBtn
round
flat
dense
size="md"
icon="vn:supplier"
color="white"
class="link"
:to="{ name: 'SupplierList' }"
>
<QTooltip>
{{ t('Go to module index') }}
</QTooltip>
</QBtn>
</template>
<template #body="{ entity }"> <template #body="{ entity }">
<VnLv :label="t('supplier.summary.taxNumber')" :value="entity.nif" /> <VnLv :label="t('supplier.summary.taxNumber')" :value="entity.nif" />
<VnLv label="Alias" :value="entity.nickname" /> <VnLv label="Alias" :value="entity.nickname" />
@ -142,7 +158,7 @@ const getEntryQueryParams = (supplier) => {
<QTooltip>{{ t('Go to client') }}</QTooltip> <QTooltip>{{ t('Go to client') }}</QTooltip>
</QBtn> </QBtn>
<QBtn <QBtn
:href="`${url}invoice-in/create`" :href="`${url}invoice-in/create?supplierFk=${entity.id}`"
size="md" size="md"
icon="vn:invoice-in-create" icon="vn:invoice-in-create"
color="primary" color="primary"
@ -159,4 +175,5 @@ es:
All entries with current supplier: Todas las entradas con proveedor actual All entries with current supplier: Todas las entradas con proveedor actual
Go to client: Ir a cliente Go to client: Ir a cliente
Create invoiceIn: Crear factura recibida Create invoiceIn: Crear factura recibida
Go to module index: Ir al índice del módulo
</i18n> </i18n>