diff --git a/src/components/ui/FetchedTags.vue b/src/components/ui/FetchedTags.vue new file mode 100644 index 000000000..364713cbc --- /dev/null +++ b/src/components/ui/FetchedTags.vue @@ -0,0 +1,54 @@ + + + + diff --git a/src/css/quasar.variables.scss b/src/css/quasar.variables.scss index 37f693da6..33e59074f 100644 --- a/src/css/quasar.variables.scss +++ b/src/css/quasar.variables.scss @@ -22,3 +22,9 @@ $positive: #21ba45; $negative: #c10015; $info: #31ccec; $warning: #f2c037; + +$color-spacer-light: rgba(255, 255, 255, .12); +$color-spacer:rgba(255, 255, 255, .3); +$border-thin-light: 1px solid $color-spacer-light; + +$spacing-md: 16px; diff --git a/src/filters/dashIfEmpty.js b/src/filters/dashIfEmpty.js new file mode 100644 index 000000000..4d959ea2c --- /dev/null +++ b/src/filters/dashIfEmpty.js @@ -0,0 +1,4 @@ +export default function (value) { + if (value == null || value === '') return '-'; + return value; +} diff --git a/src/filters/index.js b/src/filters/index.js index 459087e8e..c08f897c4 100644 --- a/src/filters/index.js +++ b/src/filters/index.js @@ -2,10 +2,12 @@ import toLowerCase from './toLowerCase'; import toDate from './toDate'; import toCurrency from './toCurrency'; import toPercentage from './toPercentage'; +import dashIfEmpty from './dashIfEmpty'; export { toLowerCase, toDate, toCurrency, toPercentage, + dashIfEmpty, }; diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 88fae5bb7..acde021bd 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -187,6 +187,49 @@ export default { selectVideo: 'Select video:', notFound: 'No videos available', }, + summary: { + state: 'State', + salesPerson: 'Sales person', + agency: 'Agency', + zone: 'Zone', + warehouse: 'Warehouse', + route: 'Route', + invoice: 'Invoice', + shipped: 'Shipped', + landed: 'Landed', + packages: 'Packages', + consigneePhone: 'Consignee phone', + consigneeMobile: 'Consignee mobile', + clientPhone: 'Client phone', + clientMobile: 'Client mobile', + consignee: 'Consignee', + subtotal: 'Subtotal', + vat: 'VAT', + total: 'Total', + saleLines: 'Line items', + item: 'Item', + visible: 'Visible', + available: 'Available', + quantity: 'Quantity', + description: 'Description', + price: 'Price', + discount: 'Discount', + amount: 'Amount', + packing: 'Packing', + hasComponentLack: 'Component lack', + itemShortage: 'Not visible', + claim: 'Claim', + reserved: 'Reserved', + created: 'Created', + package: 'Package', + taxClass: 'Tax class', + services: 'Services', + changeState: 'Change state', + requester: 'Requester', + atender: 'Atender', + request: 'Request', + goTo: 'Go to' + } }, claim: { pageTitles: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 0103b1a92..78519a604 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -186,6 +186,49 @@ export default { selectVideo: 'Seleccionar vídeo:', notFound: 'No hay vídeos disponibles', }, + summary: { + state: 'Estado', + salesPerson: 'Comercial', + agency: 'Agencia', + zone: 'Zona', + warehouse: 'Almacén', + route: 'Ruta', + invoice: 'Factura', + shipped: 'Enviado', + landed: 'Entregado', + packages: 'Bultos', + consigneePhone: 'Tel. consignatario', + consigneeMobile: 'Móv. consignatario', + clientPhone: 'Tel. cliente', + clientMobile: 'Móv. cliente', + consignee: 'Consignatario', + subtotal: 'Subtotal', + vat: 'IVA', + total: 'Total', + saleLines: 'Líneas del pedido', + item: 'Artículo', + visible: 'Visible', + available: 'Disponible', + quantity: 'Cantidad', + description: 'Descripción', + price: 'Precio', + discount: 'Descuento', + amount: 'Importe', + packing: 'Encajado', + hasComponentLack: 'Faltan componentes', + itemShortage: 'No visible', + claim: 'Reclamación', + reserved: 'Reservado', + created: 'Fecha creación', + package: 'Embalaje', + taxClass: 'Tipo IVA', + services: 'Servicios', + changeState: 'Cambiar estado', + requester: 'Solicitante', + atender: 'Comprador', + request: 'Petición de compra', + goTo: 'Ir a' + } }, claim: { pageTitles: { diff --git a/src/pages/Claim/Card/ClaimSummaryDialog.vue b/src/pages/Claim/Card/ClaimSummaryDialog.vue index e0b4d22c1..4364f28ab 100644 --- a/src/pages/Claim/Card/ClaimSummaryDialog.vue +++ b/src/pages/Claim/Card/ClaimSummaryDialog.vue @@ -19,3 +19,11 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); + + diff --git a/src/pages/Customer/Card/CustomerSummaryDialog.vue b/src/pages/Customer/Card/CustomerSummaryDialog.vue index 84ecaf084..d40d99d1b 100644 --- a/src/pages/Customer/Card/CustomerSummaryDialog.vue +++ b/src/pages/Customer/Card/CustomerSummaryDialog.vue @@ -19,3 +19,11 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); + + diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue index e69de29bb..f2cdb4c7a 100644 --- a/src/pages/Ticket/Card/TicketSummary.vue +++ b/src/pages/Ticket/Card/TicketSummary.vue @@ -0,0 +1,553 @@ + + + + diff --git a/src/pages/Ticket/Card/TicketSummaryDialog.vue b/src/pages/Ticket/Card/TicketSummaryDialog.vue new file mode 100644 index 000000000..40b88a96d --- /dev/null +++ b/src/pages/Ticket/Card/TicketSummaryDialog.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/src/pages/Ticket/TicketList.vue b/src/pages/Ticket/TicketList.vue index 330c17bbf..212a4f359 100644 --- a/src/pages/Ticket/TicketList.vue +++ b/src/pages/Ticket/TicketList.vue @@ -1,12 +1,13 @@ @@ -108,42 +107,16 @@ function showPreview(id) { - - {{ t('components.smartCard.openCard') }} - + {{ t('components.smartCard.openSummary') }} - -