#7283 #7831 itemMigration #553

Merged
carlossa merged 77 commits from 7283-itemMigration into dev 2024-10-25 07:09:13 +00:00
5 changed files with 24 additions and 33 deletions
Showing only changes of commit 039a8d1d02 - Show all commits

View File

@ -1022,6 +1022,8 @@ travel:
travelFileDescription: 'Travel id { travelId }'
file: File
item:
searchbar:
label: Search item
descriptor:
item: Item
buyer: Buyer

View File

@ -1007,6 +1007,8 @@ travel:
travelFileDescription: 'Id envío { travelId }'
file: Fichero
item:
searchbar:
label: Buscar artículo
descriptor:
item: Artículo
buyer: Comprador

View File

@ -12,7 +12,7 @@ import ItemListFilter from '../ItemListFilter.vue';
search-data-key="ItemList"
:searchbar-props="{
url: 'Items/filter',
label: 'searchbar.labelr',
label: 'item.searchbar.label',
info: 'searchbar.info',
}"
/>

View File

@ -44,25 +44,24 @@ const itemFilter = {
],
};
const columns = computed(() => [
// {
// label: '',
// name: 'image',
// align: 'left',
// columnField: {
// component: VnImg,
// attrs: (id) => {
// return {
// id,
// width: '50px',
// };
// },
// },
// columnFilter: false,
// },
{
jsegarra marked this conversation as resolved Outdated

comentarios

comentarios
label: '',
name: 'image',
align: 'left',
columnField: {
component: VnImg,
attrs: (id) => {
jsegarra marked this conversation as resolved Outdated

rounded? O se quiere cuadrada?

rounded? O se quiere cuadrada?
return {
id,
width: '50px',
};
},
},
columnFilter: false,
},
{
label: t('item.list.id'),
name: 'id',
field: 'id',
align: 'left',
jsegarra marked this conversation as resolved Outdated

En esta columna hecho en falta el descriptor

En esta columna hecho en falta el descriptor
isId: true,
chip: {
@ -71,38 +70,35 @@ const columns = computed(() => [
},
{
label: t('item.list.grouping'),
field: 'grouping',
name: 'grouping',
align: 'left',
},
{
label: t('item.list.packing'),
field: 'packing',
name: 'packing',
align: 'left',
},
{
label: t('globals.description'),
field: 'name',
name: 'description',
align: 'left',
create: true,
columnFilter: {
name: 'description',
},
},
{
label: t('item.list.stems'),
field: 'stems',
name: 'stems',
align: 'left',
},
{
label: t('item.list.size'),
field: 'size',
name: 'size',
align: 'left',
},
{
label: t('item.list.typeName'),
field: 'typeName',
name: 'typeName',
align: 'left',
component: 'select',
@ -117,7 +113,6 @@ const columns = computed(() => [
},
{
label: t('item.list.category'),
field: 'category',
name: 'category',
align: 'left',
component: 'select',
@ -131,7 +126,6 @@ const columns = computed(() => [
},
{
label: t('item.list.intrastat'),
field: 'intrastat',
name: 'intrastat',
align: 'left',
component: 'select',
@ -146,7 +140,6 @@ const columns = computed(() => [
},
{
label: t('item.list.origin'),
field: 'origin',
name: 'origin',
align: 'left',
component: 'select',
@ -161,13 +154,11 @@ const columns = computed(() => [
},
{
label: t('item.list.userName'),
field: 'userName',
name: 'userName',
align: 'left',
},
{
label: t('item.list.weightByPiece'),
field: 'weightByPiece',
name: 'weightByPiece',
align: 'left',
component: 'input',
@ -177,7 +168,6 @@ const columns = computed(() => [
},
{
label: t('item.list.stemMultiplier'),
field: 'stemMultiplier',
name: 'stemMultiplier',
align: 'left',
component: 'input',
@ -187,14 +177,12 @@ const columns = computed(() => [
},
{
label: t('item.list.isActive'),
field: 'isActive',
name: 'isActive',
align: 'left',
component: 'checkbox',
},
{
label: t('item.list.producer'),
field: 'producer',
name: 'producer',
align: 'left',
component: 'select',
@ -208,7 +196,6 @@ const columns = computed(() => [
},
{
label: t('item.list.landed'),
field: 'landed',
name: 'landed',
align: 'left',
component: 'date',

View File

@ -188,7 +188,7 @@ onMounted(async () => {
ref="tableRef"
data-key="itemRequest"
url="ticketRequests/filter"
jsegarra marked this conversation as resolved Outdated

Duda: Si hacemos :order="['shippedDate ASC', 'isOk ASC']"...obtenemos el mismo resultado?

Duda: Si hacemos `:order="['shippedDate ASC', 'isOk ASC']"`...obtenemos el mismo resultado?
order="shippedDate ASC, isOk ASC"
order="shipped ASC, isOk ASC"
:columns="columns"
:user-params="userParams"
:is-editable="true"