diff --git a/src/css/quasar.variables.scss b/src/css/quasar.variables.scss index 37f693da6..6476f150a 100644 --- a/src/css/quasar.variables.scss +++ b/src/css/quasar.variables.scss @@ -22,3 +22,8 @@ $positive: #21ba45; $negative: #c10015; $info: #31ccec; $warning: #f2c037; + +$color-spacer-light: rgba(255, 255, 255, .12); +$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..5f9d9e746 100644 --- a/src/filters/index.js +++ b/src/filters/index.js @@ -2,10 +2,14 @@ import toLowerCase from './toLowerCase'; import toDate from './toDate'; import toCurrency from './toCurrency'; import toPercentage from './toPercentage'; +import dashIfEmpty from './dashIfEmpty'; +import zeroFill from './zeroFill'; export { toLowerCase, toDate, toCurrency, toPercentage, + dashIfEmpty, + zeroFill }; diff --git a/src/filters/zeroFill.js b/src/filters/zeroFill.js new file mode 100644 index 000000000..00d47d366 --- /dev/null +++ b/src/filters/zeroFill.js @@ -0,0 +1,4 @@ +export default function (value, pad) { + const valueStr = String(value); + return valueStr.padStart(pad, '0'); +} diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 88fae5bb7..62e83884e 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -187,6 +187,48 @@ 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' + } }, claim: { pageTitles: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 0103b1a92..d614591e3 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -186,6 +186,48 @@ 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' + } }, claim: { pageTitles: { diff --git a/src/pages/Ticket/Card/FetchedTags.vue b/src/pages/Ticket/Card/FetchedTags.vue new file mode 100644 index 000000000..86abe93f7 --- /dev/null +++ b/src/pages/Ticket/Card/FetchedTags.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue index e69de29bb..44239a25f 100644 --- a/src/pages/Ticket/Card/TicketSummary.vue +++ b/src/pages/Ticket/Card/TicketSummary.vue @@ -0,0 +1,504 @@ + + + +