diff --git a/src/components/VnTable/VnColumn.vue b/src/components/VnTable/VnColumn.vue index 4cff96425..aeccdb2d6 100644 --- a/src/components/VnTable/VnColumn.vue +++ b/src/components/VnTable/VnColumn.vue @@ -46,6 +46,7 @@ const defaultComponents = { component: markRaw(VnInput), attrs: { disable: !$props.isEditable, + class: 'fit', }, forceAttrs: { label: $props.showLabel && $props.column.label, @@ -55,6 +56,7 @@ const defaultComponents = { component: markRaw(VnInput), attrs: { disable: !$props.isEditable, + class: 'fit', }, forceAttrs: { label: $props.showLabel && $props.column.label, @@ -66,6 +68,7 @@ const defaultComponents = { readonly: true, disable: !$props.isEditable, style: 'min-width: 125px', + class: 'fit', }, forceAttrs: { label: $props.showLabel && $props.column.label, @@ -77,7 +80,7 @@ const defaultComponents = { const defaultAttrs = { disable: !$props.isEditable, 'model-value': Boolean(prop), - class: 'no-padding', + class: 'no-padding fit', }; if (typeof prop == 'number') { @@ -94,6 +97,7 @@ const defaultComponents = { component: markRaw(VnSelect), attrs: { disable: !$props.isEditable, + class: 'fit', }, forceAttrs: { label: $props.showLabel && $props.column.label, diff --git a/src/components/VnTable/VnFilter.vue b/src/components/VnTable/VnFilter.vue index 9ce050fe9..b3386899f 100644 --- a/src/components/VnTable/VnFilter.vue +++ b/src/components/VnTable/VnFilter.vue @@ -40,7 +40,7 @@ const enterEvent = { const defaultAttrs = { filled: !$props.showTitle, - class: 'q-px-sm q-pb-xs q-pt-none', + class: 'q-px-sm q-pb-xs q-pt-none fit', dense: true, }; @@ -92,7 +92,7 @@ const components = { event: updateEvent, attrs: { dense: true, - class: $props.showTitle ? 'q-py-sm q-mt-md' : 'q-px-md q-py-xs', + class: $props.showTitle ? 'q-py-sm q-mt-md' : 'q-px-md q-py-xs fit', 'toggle-indeterminate': true, }, forceAttrs, @@ -101,7 +101,7 @@ const components = { component: markRaw(VnSelect), event: updateEvent, attrs: { - class: 'q-px-md q-pb-xs q-pt-none', + class: 'q-px-md q-pb-xs q-pt-none fit', dense: true, filled: !$props.showTitle, }, diff --git a/src/components/common/VnComponent.vue b/src/components/common/VnComponent.vue index fccc0c573..d7719034a 100644 --- a/src/components/common/VnComponent.vue +++ b/src/components/common/VnComponent.vue @@ -54,7 +54,6 @@ function toValueAttrs(attrs) { v-bind="mix(toComponent).attrs" v-on="mix(toComponent).event ?? {}" v-model="model" - class="fit" /> diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue index a88540ebf..184f8a158 100644 --- a/src/components/common/VnInputDate.vue +++ b/src/components/common/VnInputDate.vue @@ -131,3 +131,13 @@ watch( + + diff --git a/src/components/common/VnInputTime.vue b/src/components/common/VnInputTime.vue index 3d482933a..9344ff869 100644 --- a/src/components/common/VnInputTime.vue +++ b/src/components/common/VnInputTime.vue @@ -111,3 +111,12 @@ watch( + diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 590967c4d..e4ef31f8e 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -417,6 +417,18 @@ entry: booked: Booked confirmed: Confirmed ordered: Ordered + tableVisibleColumns: + id: Id + reference: Reference + created: Creation + supplierFk: Supplier + isBooked: Booked + isConfirmed: Confirmed + isOrdered: Ordered + companyFk: Company + travelFk: Travel + isExcludedFromAvailable: Inventory + isRaid: Raid summary: commission: Commission currency: Currency @@ -492,34 +504,37 @@ entry: landed: Landed warehouseOut: Warehouse Out latestBuys: - picture: Picture - itemFk: Item ID - packing: Packing - grouping: Grouping - quantity: Quantity - size: Size - tags: Tags - type: Type - intrastat: Intrastat - origin: Origin - weightByPiece: Weight/Piece - isActive: Active - family: Family - entryFk: Entry - buyingValue: Buying value - freightValue: Freight value - comissionValue: Commission value - description: Description - packageValue: Package value - isIgnored: Is ignored - price2: Grouping - price3: Packing - minPrice: Min - ektFk: Ekt - weight: Weight - packagingFk: Package - packingOut: Package out - landing: Landing + tableVisibleColumns: + image: Picture + itemFk: Item ID + packing: Packing + grouping: Grouping + quantity: Quantity + size: Size + tags: Tags + type: Type + intrastat: Intrastat + origin: Origin + weightByPiece: Weight/Piece + isActive: Active + family: Family + entryFk: Entry + buyingValue: Buying value + freightValue: Freight value + comissionValue: Commission value + description: Description + packageValue: Package value + isIgnored: Is ignored + price2: Grouping + price3: Packing + minPrice: Min + ektFk: Ekt + weight: Weight + packagingFk: Package + packingOut: Package out + landing: Landing + isExcludedFromAvailable: Es inventory + isRaid: Raid ticket: pageTitles: tickets: Tickets diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index c353b4676..d02f47afd 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -415,6 +415,18 @@ entry: booked: Asentado confirmed: Confirmado ordered: Pedida + tableVisibleColumns: + id: Id + reference: Referencia + created: Creación + supplierFk: Proveedor + isBooked: Asentado + isConfirmed: Confirmado + isOrdered: Pedida + companyFk: Empresa + travelFk: Envio + isExcludedFromAvailable: Inventario + isRaid: Redada summary: commission: Comisión currency: Moneda @@ -490,34 +502,37 @@ entry: landed: F. entrega warehouseOut: Alm. salida latestBuys: - picture: Foto - itemFk: ID Artículo - packing: Packing - grouping: Grouping - quantity: Cantidad - size: Medida - tags: Etiquetas - type: Tipo - intrastat: Intrastat - origin: Origen - weightByPiece: Peso (gramos)/tallo - isActive: Activo - family: Familia - entryFk: Entrada - buyingValue: Coste - freightValue: Porte - comissionValue: Comisión - description: Descripción - packageValue: Embalaje - isIgnored: Ignorado - price2: Grouping - price3: Packing - minPrice: Min - ektFk: Ekt - weight: Peso - packagingFk: Embalaje - packingOut: Embalaje envíos - landing: Llegada + tableVisibleColumns: + image: Foto + itemFk: Id Artículo + packing: packing + grouping: Grouping + quantity: Cantidad + size: Medida + tags: Etiquetas + type: Tipo + intrastat: Intrastat + origin: Origen + weightByPiece: Peso (gramos)/tallo + isActive: Activo + family: Familia + entryFk: Entrada + buyingValue: Coste + freightValue: Porte + comissionValue: Comisión + description: Descripción + packageValue: Embalaje + isIgnored: Ignorado + price2: Grouping + price3: Packing + minPrice: Min + ektFk: Ekt + weight: Peso + packagingFk: Embalaje + packingOut: Embalaje envíos + landing: Llegada + isExcludedFromAvailable: Es inventario + isRaid: Redada ticket: pageTitles: tickets: Tickets diff --git a/src/pages/Entry/Card/EntrySummary.vue b/src/pages/Entry/Card/EntrySummary.vue index d08b7eed2..7b92b29d4 100644 --- a/src/pages/Entry/Card/EntrySummary.vue +++ b/src/pages/Entry/Card/EntrySummary.vue @@ -11,8 +11,6 @@ import { toDate, toCurrency } from 'src/filters'; import { getUrl } from 'src/composables/getUrl'; import axios from 'axios'; -onUpdated(() => summaryRef.value.fetch()); - const route = useRoute(); const { t } = useI18n(); diff --git a/src/pages/Entry/EntryLatestBuys.vue b/src/pages/Entry/EntryLatestBuys.vue index 5da3309d8..dca32c08d 100644 --- a/src/pages/Entry/EntryLatestBuys.vue +++ b/src/pages/Entry/EntryLatestBuys.vue @@ -1,759 +1,200 @@ diff --git a/src/pages/Entry/EntryList.vue b/src/pages/Entry/EntryList.vue index e5d37900c..fe719db6e 100644 --- a/src/pages/Entry/EntryList.vue +++ b/src/pages/Entry/EntryList.vue @@ -1,31 +1,178 @@