0
0
Fork 0

Merge branch 'master' into test

This commit is contained in:
Guillermo Bonet 2024-08-05 11:58:58 +02:00
commit da911f80f6
4 changed files with 27 additions and 6 deletions

View File

@ -20,11 +20,17 @@ const $props = defineProps({
const entityId = computed(() => $props.id || route.params.id); const entityId = computed(() => $props.id || route.params.id);
const entriesTableColumns = computed(() => [ const entriesTableColumns = computed(() => [
{
align: 'left',
name: 'id',
field: 'id',
label: t('globals.id'),
},
{ {
align: 'left', align: 'left',
name: 'itemFk', name: 'itemFk',
field: 'itemFk', field: 'itemFk',
label: t('globals.id'), label: t('entry.latestBuys.tableVisibleColumns.itemFk'),
}, },
{ {
align: 'left', align: 'left',
@ -76,11 +82,11 @@ const entriesTableColumns = computed(() => [
</QCardSection> </QCardSection>
<QCardActions align="right"> <QCardActions align="right">
<QBtn <QBtn
:label="t('Print buys')" :label="t('printLabels')"
color="primary" color="primary"
icon="print" icon="print"
:loading="isLoading" :loading="isLoading"
@click="openReport(`Entries/${entityId}/buy-label`)" @click="openReport(`Entries/${entityId}/print`)"
unelevated unelevated
autofocus autofocus
/> />
@ -109,6 +115,19 @@ const entriesTableColumns = computed(() => [
<QTd v-for="col in props.cols" :key="col.name"> <QTd v-for="col in props.cols" :key="col.name">
{{ col.value }} {{ col.value }}
</QTd> </QTd>
<QBtn
icon="print"
v-if="props.row.stickers > 0"
:loading="isLoading"
@click="
openReport(
`Entries/${props.row.id}/buy-label`
)
"
unelevated
>
<QTooltip>{{ t('printLabel') }}</QTooltip>
</QBtn>
</QTr> </QTr>
</template> </template>
</QTable> </QTable>

View File

@ -86,7 +86,7 @@ const columns = computed(() => [
name: 'tableActions', name: 'tableActions',
actions: [ actions: [
{ {
title: t('printBuys'), title: t('printLabels'),
icon: 'print', icon: 'print',
action: (row) => printBuys(row.id), action: (row) => printBuys(row.id),
}, },

View File

@ -10,4 +10,5 @@ landed: Landed
shipped: Shipped shipped: Shipped
fromShipped: Shipped(from) fromShipped: Shipped(from)
toShipped: Shipped(to) toShipped: Shipped(to)
printBuys: Print buys printLabels: Print stickers
printLabel: Print sticker

View File

@ -14,4 +14,5 @@ landed: F. llegada
shipped: F. salida shipped: F. salida
fromShipped: F. salida(desde) fromShipped: F. salida(desde)
toShipped: F. salida(hasta) toShipped: F. salida(hasta)
Print buys: Imprimir etiquetas printLabels: Imprimir etiquetas
printLabel: Imprimir etiqueta