diff --git a/src/pages/Entry/Card/EntryBuys.vue b/src/pages/Entry/Card/EntryBuys.vue index 252618f03..b387dde05 100644 --- a/src/pages/Entry/Card/EntryBuys.vue +++ b/src/pages/Entry/Card/EntryBuys.vue @@ -42,25 +42,24 @@ const getInputEvents = (colField, props) => { const tableColumnComponents = { item: { component: QBtn, - props: () => ({ + props: { color: 'blue', flat: true, - }), + }, event: () => ({}), }, quantity: { component: VnInput, - props: (col) => ({ + props: { type: 'number', min: 0, - label: col.label, class: 'input-number', - }), + }, event: getInputEvents, }, packagingFk: { component: VnSelectFilter, - props: () => ({ + props: { 'option-value': 'id', 'option-label': 'id', 'emit-value': true, @@ -68,76 +67,69 @@ const tableColumnComponents = { 'use-input': true, 'hide-selected': true, options: packagingsOptions.value, - }), + }, event: getInputEvents, }, stickers: { component: VnInput, - props: (col) => ({ + props: { type: 'number', min: 0, - label: col.label, class: 'input-number', - }), + }, event: getInputEvents, }, weight: { component: VnInput, - props: (col) => ({ + props: { type: 'number', min: 0, - label: col.label, - }), + }, event: getInputEvents, }, packing: { component: VnInput, - props: (col) => ({ + props: { type: 'number', min: 0, - label: col.label, - }), + }, event: getInputEvents, }, grouping: { component: VnInput, - props: (col) => ({ + props: { type: 'number', min: 0, - label: col.label, - }), + }, event: getInputEvents, }, buyingValue: { component: VnInput, - props: (col) => ({ + props: { type: 'number', min: 0, - label: col.label, - }), + }, event: getInputEvents, }, price2: { component: VnInput, - props: (col) => ({ + props: { type: 'number', min: 0, - label: col.label, - }), + }, event: getInputEvents, }, price3: { component: VnInput, - props: (col) => ({ + props: { type: 'number', min: 0, - label: col.label, - }), + }, event: getInputEvents, }, import: { component: 'span', - props: () => {}, + props: {}, event: () => ({}), }, }; @@ -341,7 +333,7 @@ const showLockIcon = (groupingMode, mode) => {