feat: add entry

This commit is contained in:
Javier Segarra 2025-04-16 14:13:16 +02:00
parent 6c0fcc38b0
commit 0ff6cc5dbe
3 changed files with 32 additions and 5 deletions

View File

@ -7,7 +7,7 @@ import { onBeforeMount } from 'vue';
import { dashIfEmpty, toDate, toHour } from 'src/filters';
import { useRouter } from 'vue-router';
import { useState } from 'src/composables/useState';
import { useRole } from 'src/composables/useRole';
import EntryDescriptorProxy from 'src/pages/Entry/Card/EntryDescriptorProxy.vue';
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import RightMenu from 'src/components/common/RightMenu.vue';
import TicketLackFilter from './TicketLackFilter.vue';
@ -45,10 +45,10 @@ const columns = computed(() => [
},
{
columnClass: 'shrink',
name: 'timed',
name: 'minTimed',
align: 'center',
label: t('negative.timed'),
format: ({ timed }) => toHour(timed),
format: ({ minTimed }) => toHour(minTimed),
sortable: true,
cardVisible: true,
columnFilter: {
@ -64,9 +64,25 @@ const columns = computed(() => [
columnFilter: {
component: 'input',
type: 'number',
inWhere: false,
columnClass: 'shrink',
},
},
{
name: 'nextEntryFk',
align: 'center',
label: t('negative.nextEntryFk'),
format: ({ nextEntryFk }) => nextEntryFk,
sortable: false,
columnFilter: false,
},
{
name: 'nextEntryLanded',
align: 'center',
label: t('negative.nextEntryLanded'),
format: ({ nextEntryLanded }) => toDate(nextEntryLanded),
sortable: false,
columnFilter: false,
},
{
name: 'longName',
align: 'left',
@ -194,6 +210,12 @@ const setUserParams = (params) => {
<span @click.stop>{{ row.itemFk }}</span>
</div>
</template>
<template #column-nextEntryFk="{ row }">
<span class="link" @click.stop>
{{ row.nextEntryFk }}
<EntryDescriptorProxy :id="row.nextEntryFk" />
</span>
</template>
<template #column-longName="{ row }">
<span class="link" @click.stop>
{{ row.longName }}

View File

@ -205,7 +205,6 @@ ticketList:
toLines: Go to lines
addressNickname: Address nickname
ref: Reference
hour: Hour
rounding: Rounding
noVerifiedData: No verified data
purchaseRequest: Purchase request
@ -213,6 +212,8 @@ ticketList:
clientFrozen: Client frozen
componentLack: Component lack
negative:
nextEntryFk: Next entry
nextEntryLanded: Next entry landed
hour: Hour
id: Id Article
longName: Article
@ -223,6 +224,7 @@ negative:
value: Negative
itemFk: Article
producer: Producer
excludedDates: Excluded dates
warehouse: Warehouse
warehouseFk: Warehouse
category: Category

View File

@ -214,6 +214,8 @@ ticketList:
addressNickname: Alias consignatario
ref: Referencia
negative:
nextEntryLanded: F. Entrada
nextEntryFk: Entrada
hour: Hora
id: Id Articulo
longName: Artículo
@ -225,6 +227,7 @@ negative:
value: Negativo
warehouseFk: Almacen
producer: Producer
excludedDates: Fechas excluidas
category: Categoría
categoryFk: Familia
typeFk: Familia