From 62a806b813160c401c530ad0d1a1ec1303a2ca95 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 29 Nov 2023 09:07:44 -0300 Subject: [PATCH 1/2] WIP --- src/i18n/en/index.js | 1 + src/i18n/es/index.js | 1 + src/pages/InvoiceOut/InvoiceOutGlobalForm.vue | 3 +- src/pages/Travel/ExtraCommunity.vue | 445 ++++++++++++++++++ src/router/modules/travel.js | 14 +- 5 files changed, 460 insertions(+), 4 deletions(-) create mode 100644 src/pages/Travel/ExtraCommunity.vue diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 743977f42..59847c908 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -627,6 +627,7 @@ export default { list: 'List', create: 'Create', summary: 'Summary', + extraCommunity: 'ExtraCommunity', }, list: { clone: 'Clone', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 431553d79..e9dbe53ae 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -629,6 +629,7 @@ export default { list: 'Listado', create: 'Crear', summary: 'Resumen', + extraCommunity: 'ExtraCommunity', }, list: { clone: 'Clonar', diff --git a/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue b/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue index be1a65f59..7ea3af713 100644 --- a/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue +++ b/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue @@ -16,12 +16,11 @@ const { formInitialData, invoicing, - printer, status, } = storeToRefs(invoiceOutGlobalStore); // invoiceOutGlobalStore actions -const { makeInvoice, setPrinterValue, setStatusValue } = invoiceOutGlobalStore; +const { makeInvoice, setStatusValue } = invoiceOutGlobalStore; const clientsToInvoice = ref('all'); diff --git a/src/pages/Travel/ExtraCommunity.vue b/src/pages/Travel/ExtraCommunity.vue new file mode 100644 index 000000000..3d57ece75 --- /dev/null +++ b/src/pages/Travel/ExtraCommunity.vue @@ -0,0 +1,445 @@ + + + + + + + + { + "en": { + "status": { + "packageInvoicing": "Build packaging tickets", + "invoicing": "Invoicing client", + "stopping": "Stopping process", + "done": "Ended process" + }, + "of": "of" + }, + "es": { + "status":{ + "packageInvoicing": "Generación de tickets de empaque", + "invoicing": "Facturando a cliente", + "stopping": "Deteniendo proceso", + "done": "Proceso detenido", + }, + "of": "de" + } + } + diff --git a/src/router/modules/travel.js b/src/router/modules/travel.js index 9ba10380e..ebce7adb9 100644 --- a/src/router/modules/travel.js +++ b/src/router/modules/travel.js @@ -10,7 +10,7 @@ export default { component: RouterView, redirect: { name: 'TravelMain' }, menus: { - main: ['TravelList'], + main: ['TravelList', 'ExtraCommunity'], card: [], }, children: [ @@ -29,11 +29,21 @@ export default { }, component: () => import('src/pages/Travel/TravelList.vue'), }, + { + path: 'extra-community', + name: 'ExtraCommunity', + meta: { + title: 'extraCommunity', + icon: 'vn:shipment-01', + }, + component: () => import('src/pages/Travel/ExtraCommunity.vue'), + }, { path: 'create', name: 'TravelCreate', meta: { - title: 'create', + title: 'extraCommunity', + icon: '', }, component: () => import('src/pages/Travel/TravelCreate.vue'), }, From e64960d234db91a963139e14261daef80767de12 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 5 Dec 2023 12:25:25 -0300 Subject: [PATCH 2/2] Extra community --- src/components/ui/CardDescriptor.vue | 6 +- src/i18n/en/index.js | 40 +- src/i18n/es/index.js | 42 +- src/pages/Claim/Card/ClaimBasicData.vue | 2 +- .../InvoiceOut/Card/InvoiceOutDescriptor.vue | 7 +- src/pages/InvoiceOut/InvoiceOutList.vue | 2 +- .../InvoiceOut/InvoiceOutNegativeBases.vue | 2 +- .../Supplier/Card/SupplierDescriptor.vue | 94 +++ .../Supplier/Card/SupplierDescriptorProxy.vue | 16 + src/pages/Supplier/Card/SupplierSummary.vue | 35 +- src/pages/Ticket/Card/TicketSummary.vue | 8 +- src/pages/Travel/Card/TravelDescriptor.vue | 80 +++ .../Travel/Card/TravelDescriptorProxy.vue | 16 + src/pages/Travel/Card/TravelSummary.vue | 21 +- src/pages/Travel/ExtraCommunity.vue | 678 ++++++++---------- src/pages/Travel/ExtraCommunityFilter.vue | 306 ++++++++ src/pages/Travel/TravelCreate.vue | 15 +- src/pages/Travel/TravelFilter.vue | 50 +- src/pages/Travel/TravelList.vue | 15 +- src/services/travel.service.js | 18 +- src/stores/travel.js | 23 - 21 files changed, 953 insertions(+), 523 deletions(-) create mode 100644 src/pages/Supplier/Card/SupplierDescriptor.vue create mode 100644 src/pages/Supplier/Card/SupplierDescriptorProxy.vue create mode 100644 src/pages/Travel/Card/TravelDescriptor.vue create mode 100644 src/pages/Travel/Card/TravelDescriptorProxy.vue create mode 100644 src/pages/Travel/ExtraCommunityFilter.vue delete mode 100644 src/stores/travel.js diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 9116425df..f2c07aaac 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -1,7 +1,6 @@ diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 40fe28111..63be39c31 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -39,6 +39,16 @@ export default { }, noSelectedRows: `You don't have any line selected`, downloadCSVSuccess: 'CSV downloaded successfully', + // labels compartidos entre vistas + reference: 'Reference', + agency: 'Agency', + wareHouseOut: 'Warehouse Out', + wareHouseIn: 'Warehouse In', + landed: 'Landed', + shipped: 'Shipped', + totalEntries: 'Total entries', + amount: 'Amount', + packages: 'Packages', }, errors: { statusUnauthorized: 'Access denied', @@ -229,7 +239,6 @@ export default { invoice: 'Invoice', shipped: 'Shipped', landed: 'Landed', - packages: 'Packages', consigneePhone: 'Consignee phone', consigneeMobile: 'Consignee mobile', clientPhone: 'Client phone', @@ -246,7 +255,6 @@ export default { description: 'Description', price: 'Price', discount: 'Discount', - amount: 'Amount', packing: 'Packing', hasComponentLack: 'Component lack', itemShortage: 'Not visible', @@ -339,7 +347,6 @@ export default { assignedTo: 'Assigned', created: 'Created', state: 'State', - packages: 'Packages', picked: 'Picked', returnOfMaterial: 'Return of material authorization (RMA)', }, @@ -363,7 +370,6 @@ export default { ref: 'Reference', issued: 'Issued', shortIssued: 'Issued', - amount: 'Amount', client: 'Client', created: 'Created', shortCreated: 'Created', @@ -373,7 +379,6 @@ export default { }, card: { issued: 'Issued', - amount: 'Amount', client: 'Client', company: 'Company', customerCard: 'Customer card', @@ -439,7 +444,7 @@ export default { create: 'Create', summary: 'Summary', basicData: 'Basic Data', - log: 'Logs' + log: 'Logs', }, list: { parking: 'Parking', @@ -576,6 +581,7 @@ export default { supplier: { pageTitles: { suppliers: 'Suppliers', + supplier: 'Supplier', list: 'List', create: 'Create', summary: 'Summary', @@ -617,26 +623,16 @@ export default { }, }, travel: { - shared: { - reference: 'Reference', - agency: 'Agency', - wareHouseOut: 'Warehouse Out', - wareHouseIn: 'Warehouse In', - landed: 'Landed', - shipped: 'Shipped', - totalEntries: 'Total entries', - }, pageTitles: { travel: 'Travels', list: 'List', create: 'Create', summary: 'Summary', - extraCommunity: 'ExtraCommunity', + extraCommunity: 'Extra community', }, summary: { confirmed: 'Confirmed', entryId: 'Entry Id', - supplier: 'Supplier', freight: 'Freight', package: 'Package', delivered: 'Delivered', @@ -646,6 +642,16 @@ export default { CloneTravelAndEntries: 'Clone travel and his entries', AddEntry: 'Add entry', }, + variables: { + search: 'Id/Reference', + agencyModeFk: 'Agency', + warehouseInFk: ' Warehouse In', + warehouseOutFk: 'Warehouse Out', + landedFrom: 'Landed from', + landedTo: 'Landed to', + continent: 'Continent out', + totalEntries: 'Total entries', + }, }, components: { topbar: {}, diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index f517f522e..2aaa4102c 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -39,6 +39,16 @@ export default { }, noSelectedRows: `No tienes ninguna línea seleccionada`, downloadCSVSuccess: 'Descarga de CSV exitosa', + // labels compartidos entre vistas + reference: 'Referencia', + agency: 'Agencia', + wareHouseOut: 'Alm. salida', + wareHouseIn: 'Alm. entrada', + landed: 'F. entrega', + shipped: 'F. envío', + totalEntries: 'Ent. totales', + amount: 'Importe', + packages: 'Bultos', }, errors: { statusUnauthorized: 'Acceso denegado', @@ -228,7 +238,6 @@ export default { invoice: 'Factura', shipped: 'Enviado', landed: 'Entregado', - packages: 'Bultos', consigneePhone: 'Tel. consignatario', consigneeMobile: 'Móv. consignatario', clientPhone: 'Tel. cliente', @@ -245,7 +254,6 @@ export default { description: 'Descripción', price: 'Precio', discount: 'Descuento', - amount: 'Importe', packing: 'Encajado', hasComponentLack: 'Faltan componentes', itemShortage: 'No visible', @@ -338,7 +346,6 @@ export default { assignedTo: 'Asignada a', created: 'Creada', state: 'Estado', - packages: 'Bultos', picked: 'Recogida', returnOfMaterial: 'Autorización de retorno de materiales (RMA)', }, @@ -363,7 +370,6 @@ export default { ref: 'Referencia', issued: 'Fecha emisión', shortIssued: 'F. emisión', - amount: 'Importe', client: 'Cliente', created: 'Fecha creación', shortCreated: 'F. creación', @@ -373,7 +379,6 @@ export default { }, card: { issued: 'Fecha emisión', - amount: 'Importe', client: 'Cliente', company: 'Empresa', customerCard: 'Ficha del cliente', @@ -441,7 +446,7 @@ export default { create: 'Crear', summary: 'Resumen', basicData: 'Datos básicos', - log: 'Registros de auditoría' + log: 'Registros de auditoría', }, list: { parking: 'Parking', @@ -578,6 +583,7 @@ export default { supplier: { pageTitles: { suppliers: 'Proveedores', + supplier: 'Proveedor', list: 'Listado', create: 'Crear', summary: 'Resumen', @@ -598,7 +604,7 @@ export default { payMethod: 'Método de pago', payDeadline: 'Plazo de pago', payDay: 'Día de pago', - account: 'Account', + account: 'Cuenta', fiscalData: 'Data fiscal', sageTaxType: 'Tipo de impuesto Sage', sageTransactionType: 'Tipo de transacción Sage', @@ -619,26 +625,16 @@ export default { }, }, travel: { - shared: { - reference: 'Referencia', - agency: 'Agencia', - wareHouseOut: 'Alm. salida', - wareHouseIn: 'Alm. entrada', - landed: 'F. entrega', - shipped: 'F. envío', - totalEntries: 'Ent. totales', - }, pageTitles: { travel: 'Envíos', list: 'Listado', create: 'Crear', summary: 'Resumen', - extraCommunity: 'ExtraCommunity', + extraCommunity: 'Extra comunitarios', }, summary: { confirmed: 'Confirmado', entryId: 'Id entrada', - supplier: 'Proveedor', freight: 'Porte', package: 'Embalaje', delivered: 'Enviada', @@ -648,6 +644,16 @@ export default { CloneTravelAndEntries: 'Clonar travel y sus entradas', AddEntry: 'Añadir entrada', }, + variables: { + search: 'Id/Referencia', + agencyModeFk: 'Agencia', + warehouseInFk: 'Alm. entrada', + warehouseOutFk: ' Alm. salida', + landedFrom: 'Llegada desde', + landedTo: 'Llegada hasta', + continent: 'Cont. Salida', + totalEntries: 'Ent. totales', + }, }, components: { topbar: {}, diff --git a/src/pages/Claim/Card/ClaimBasicData.vue b/src/pages/Claim/Card/ClaimBasicData.vue index cc9cc2394..ab818704b 100644 --- a/src/pages/Claim/Card/ClaimBasicData.vue +++ b/src/pages/Claim/Card/ClaimBasicData.vue @@ -184,7 +184,7 @@ const statesFilter = {
diff --git a/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue b/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue index d3e38a1fe..9c1bb3649 100644 --- a/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue +++ b/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue @@ -61,14 +61,11 @@ const setData = (entity) => (data.value = useCardDescription(entity.ref, entity. data-key="invoiceOutData" >