#7283 #7831 itemMigration #553

Merged
carlossa merged 77 commits from 7283-itemMigration into dev 2024-10-25 07:09:13 +00:00
2 changed files with 45 additions and 16 deletions
Showing only changes of commit 1916c6e4bf - Show all commits

View File

@ -84,7 +84,7 @@ const columns = computed(() => [
align: 'left', align: 'left',
create: true, create: true,
columnFilter: { columnFilter: {
name: 'description', name: 'search',
}, },
}, },
{ {
@ -103,9 +103,10 @@ const columns = computed(() => [
align: 'left', align: 'left',
component: 'select', component: 'select',
columnFilter: { columnFilter: {
name: 'typeFk',
attrs: { attrs: {
url: 'ItemTypes', url: 'ItemTypes',
fields: ['name'], fields: ['id', 'name'],
}, },
}, },
columnField: { columnField: {
@ -118,9 +119,12 @@ const columns = computed(() => [
name: 'category', name: 'category',
align: 'left', align: 'left',
component: 'select', component: 'select',
attrs: { columnFilter: {
url: 'ItemCategories', name: 'categoryFk',
fields: ['id', 'name'], attrs: {
url: 'ItemCategories',
fields: ['id', 'name'],
},
}, },
columnField: { columnField: {
component: null, component: null,
@ -131,9 +135,15 @@ const columns = computed(() => [
name: 'intrastat', name: 'intrastat',
align: 'left', align: 'left',
component: 'select', component: 'select',
attrs: { columnFilter: {
url: 'Intrastats', name: 'description',
fields: ['id', 'description'], attrs: {
url: 'Intrastats',
optionValue: 'description',
optionLabel: 'description',
},
inWhere: true,
alias: 'intr',
}, },
columnField: { columnField: {
component: null, component: null,
@ -145,9 +155,15 @@ const columns = computed(() => [
name: 'origin', name: 'origin',
align: 'left', align: 'left',
component: 'select', component: 'select',
attrs: { columnFilter: {
url: 'Origins', name: 'id',
fields: ['id', 'name'], attrs: {
url: 'Origins',
optionValue: 'id',
optionLabel: 'code',
},
inWhere: true,
alias: 'ori',
}, },
columnField: { columnField: {
component: null, component: null,
@ -158,6 +174,14 @@ const columns = computed(() => [
label: t('item.list.userName'), label: t('item.list.userName'),
name: 'userName', name: 'userName',
align: 'left', align: 'left',
columnFilter: {
name: 'workerFk',
attrs: {
url: 'Users',
optionValue: 'id',
optionLabel: 'userName',
},
},
}, },
{ {
label: t('item.list.weightByPiece'), label: t('item.list.weightByPiece'),
@ -249,8 +273,6 @@ const cloneItem = async (itemFk) => {
data-key="ItemList" data-key="ItemList"
url="Items/filter" url="Items/filter"
url-create="Items" url-create="Items"
save-url="Items/crud"
:filter="itemFilter"
:create="{ :create="{
urlCreate: 'Items', urlCreate: 'Items',
title: 'Create Item', title: 'Create Item',
@ -264,7 +286,7 @@ const cloneItem = async (itemFk) => {
auto-load auto-load
redirect="Item" redirect="Item"
:is-editable="false" :is-editable="false"
:use-model="true" :filer="itemFilter"
> >
jsegarra marked this conversation as resolved Outdated

No tenemos VnConfirm? En Salix si que habia

No tenemos VnConfirm? En Salix si que habia

Se ha copiado y pegado la misma funcionalidad que hay en ItemDescriptor. Para que esté del todo fino hay que hacer un composable para unificar la lógica

Se ha copiado y pegado la misma funcionalidad que hay en ItemDescriptor. Para que esté del todo fino hay que hacer un composable para unificar la lógica
<template #column-userName="{ row }"> <template #column-userName="{ row }">
<span class="link" @click.stop> <span class="link" @click.stop>

View File

@ -57,45 +57,51 @@ const columns = computed(() => [
component: null, component: null,
}, },
format: (row, dashIfEmpty) => dashIfEmpty(toDate(row.shipped)), format: (row, dashIfEmpty) => dashIfEmpty(toDate(row.shipped)),
columnClass: 'shrink',
}, },
{ {
label: t('globals.description'), label: t('globals.description'),
field: 'description', field: 'description',
name: 'description', name: 'description',
align: 'left', align: 'left',
columnClass: 'expand',
}, },
{ {
label: t('item.buyRequest.requester'), label: t('item.buyRequest.requester'),
name: 'requesterName', name: 'requesterName',
align: 'left', columnClass: 'shrink',
}, },
{ {
label: t('item.buyRequest.requested'), label: t('item.buyRequest.requested'),
name: 'quantity', name: 'quantity',
align: 'left', columnClass: 'shrink',
}, },
{ {
label: t('item.buyRequest.price'), label: t('item.buyRequest.price'),
name: 'price', name: 'price',
align: 'left', align: 'left',
format: (row) => toCurrency(row.price), format: (row) => toCurrency(row.price),
columnClass: 'shrink',
}, },
{ {
label: t('item.buyRequest.attender'), label: t('item.buyRequest.attender'),
name: 'attenderName', name: 'attenderName',
align: 'left', align: 'left',
columnClass: 'shrink',
}, },
{ {
label: t('item.buyRequest.item'), label: t('item.buyRequest.item'),
name: 'item', name: 'item',
align: 'left', align: 'left',
component: 'input', component: 'input',
columnClass: 'expand',
}, },
{ {
label: t('item.buyRequest.achieved'), label: t('item.buyRequest.achieved'),
name: 'achieved', name: 'achieved',
align: 'left', align: 'left',
component: 'input', component: 'input',
columnClass: 'shrink',
}, },
{ {
label: t('item.buyRequest.concept'), label: t('item.buyRequest.concept'),
@ -103,6 +109,7 @@ const columns = computed(() => [
align: 'left', align: 'left',
sortable: true, sortable: true,
component: 'input', component: 'input',
columnClass: 'expand',
}, },
{ {
label: t('item.buyRequest.state'), label: t('item.buyRequest.state'),