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

View File

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

View File

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