diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 72c192fcc..5ef3a5472 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -396,6 +396,7 @@ entry: type: Type color: Color id: ID + printedStickers: Printed stickers notes: observationType: Observation type descriptor: diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index f95d3bff7..cfadd57b3 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -394,6 +394,7 @@ entry: type: Tipo color: Color id: ID + printedStickers: Etiquetas impresas notes: observationType: Tipo de observación descriptor: diff --git a/src/pages/Entry/Card/EntryBuys.vue b/src/pages/Entry/Card/EntryBuys.vue index a378266aa..b08c40810 100644 --- a/src/pages/Entry/Card/EntryBuys.vue +++ b/src/pages/Entry/Card/EntryBuys.vue @@ -82,6 +82,16 @@ const tableColumnComponents = computed(() => ({ }, event: getInputEvents, }, + printedStickers: { + component: VnInput, + props: { + type: 'number', + min: 0, + class: 'input-number', + dense: true, + }, + event: getInputEvents, + }, weight: { component: VnInput, props: { @@ -147,7 +157,7 @@ const entriesTableColumns = computed(() => { return [ { label: t('entry.summary.item'), - field: 'id', + field: 'itemFk', name: 'item', align: 'left', }, @@ -169,6 +179,12 @@ const entriesTableColumns = computed(() => { name: 'stickers', align: 'left', }, + { + label: t('entry.buys.printedStickers'), + field: 'printedStickers', + name: 'printedStickers', + align: 'left', + }, { label: t('entry.summary.weight'), field: 'weight', @@ -216,7 +232,6 @@ const entriesTableColumns = computed(() => { }); const copyOriginalRowsData = (rows) => { - // el objetivo de esto es guardar los valores iniciales de todas las rows para evitar guardar cambios si la data no cambió al disparar los eventos originalRowDataCopy.value = JSON.parse(JSON.stringify(rows)); }; @@ -386,19 +401,16 @@ const lockIconType = (groupingMode, mode) => { - + - + {{ props.row.item.itemType.code }} - - {{ props.row.item.id }} - {{ props.row.item.size }} @@ -413,10 +425,6 @@ const lockIconType = (groupingMode, mode) => { - - - - @@ -466,11 +474,13 @@ const lockIconType = (groupingMode, mode) => {