From 09f8c70f68ae770eabe425924a784561bac6a07a Mon Sep 17 00:00:00 2001 From: vicent Date: Mon, 21 Nov 2022 13:45:48 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20a=C3=B1adido=20modulo=20invoiceOut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/en/index.js | 44 ++++ src/i18n/es/index.js | 44 ++++ src/pages/InvoiceOut/Card/InvoiceOutCard.vue | 18 ++ .../InvoiceOut/Card/InvoiceOutDescriptor.vue | 104 +++++++++ .../Card/InvoiceOutDescriptorPopover.vue | 15 ++ .../InvoiceOut/Card/InvoiceOutSummary.vue | 200 ++++++++++++++++++ .../Card/InvoiceOutSummaryDialog.vue | 21 ++ src/pages/InvoiceOut/InvoiceOutList.vue | 83 ++++++++ src/pages/InvoiceOut/InvoiceOutMain.vue | 17 ++ src/router/modules/invoiceOut.js | 47 ++++ src/router/routes.js | 4 +- 11 files changed, 596 insertions(+), 1 deletion(-) create mode 100644 src/pages/InvoiceOut/Card/InvoiceOutCard.vue create mode 100644 src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue create mode 100644 src/pages/InvoiceOut/Card/InvoiceOutDescriptorPopover.vue create mode 100644 src/pages/InvoiceOut/Card/InvoiceOutSummary.vue create mode 100644 src/pages/InvoiceOut/Card/InvoiceOutSummaryDialog.vue create mode 100644 src/pages/InvoiceOut/InvoiceOutList.vue create mode 100644 src/pages/InvoiceOut/InvoiceOutMain.vue create mode 100644 src/router/modules/invoiceOut.js diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 88fae5bb7..5d483c6fc 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -251,6 +251,50 @@ export default { returnOfMaterial: 'Return of material authorization (RMA)', }, }, + invoiceOut: { + pageTitles: { + invoiceOuts: 'InvoiceOuts', + list: 'List', + createInvoiceOut: 'Create invoice out', + summary: 'Summary', + basicData: 'Basic Data' + }, + list: { + ref: 'Reference', + issued: 'Issued', + amount: 'Amount', + client: 'Client', + created: 'Created', + company: 'Company', + dued: 'Due date' + }, + card: { + issued: 'Issued', + amount: 'Amount', + client: 'Client', + company: 'Company', + customerCard: 'Customer card', + ticketList: 'Ticket List' + }, + summary: { + issued: 'Issued', + created: 'Created', + dued: 'Due', + booked: 'Booked', + company: 'Company', + taxBreakdown: 'Tax breakdown', + type: 'Type', + taxableBase: 'Taxable base', + rate: 'Rate', + fee: 'Fee', + tickets: 'Tickets', + ticketId: 'Ticket id', + nickname: 'Alias', + shipped: 'Shipped', + totalWithVat: 'Amount', + + } + }, components: { topbar: {}, userPanel: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 0103b1a92..bbe30970e 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -250,6 +250,50 @@ export default { returnOfMaterial: 'Autorización de retorno de materiales (RMA)', }, }, + invoiceOut: { + pageTitles: { + invoiceOuts: 'Fact. emitidas', + list: 'Listado', + createInvoiceOut: 'Crear fact. emitida', + summary: 'Resumen', + basicData: 'Datos básicos' + }, + list: { + ref: 'Referencia', + issued: 'Fecha emisión', + amount: 'Importe', + client: 'Cliente', + created: 'Fecha creación', + company: 'Empresa', + dued: 'Fecha vencimineto' + }, + card: { + issued: 'Fecha emisión', + amount: 'Importe', + client: 'Cliente', + company: 'Empresa', + customerCard: 'Ficha del cliente', + ticketList: 'Listado de tickets' + }, + summary: { + issued: 'Fecha', + created: 'Fecha creación', + dued: 'Vencimiento', + booked: 'Contabilizada', + company: 'Empresa', + taxBreakdown: 'Desglose impositivo', + type: 'Tipo', + taxableBase: 'Base imp.', + rate: 'Tarifa', + fee: 'Cuota', + tickets: 'Tickets', + ticketId: 'Id ticket', + nickname: 'Alias', + shipped: 'F. envío', + totalWithVat: 'Importe', + + } + }, components: { topbar: {}, userPanel: { diff --git a/src/pages/InvoiceOut/Card/InvoiceOutCard.vue b/src/pages/InvoiceOut/Card/InvoiceOutCard.vue new file mode 100644 index 000000000..00e603d20 --- /dev/null +++ b/src/pages/InvoiceOut/Card/InvoiceOutCard.vue @@ -0,0 +1,18 @@ + + diff --git a/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue b/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue new file mode 100644 index 000000000..ece6b2053 --- /dev/null +++ b/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue @@ -0,0 +1,104 @@ + + + diff --git a/src/pages/InvoiceOut/Card/InvoiceOutDescriptorPopover.vue b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorPopover.vue new file mode 100644 index 000000000..30d27669d --- /dev/null +++ b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorPopover.vue @@ -0,0 +1,15 @@ + + diff --git a/src/pages/InvoiceOut/Card/InvoiceOutSummary.vue b/src/pages/InvoiceOut/Card/InvoiceOutSummary.vue new file mode 100644 index 000000000..3db0a7299 --- /dev/null +++ b/src/pages/InvoiceOut/Card/InvoiceOutSummary.vue @@ -0,0 +1,200 @@ + + + + + diff --git a/src/pages/InvoiceOut/Card/InvoiceOutSummaryDialog.vue b/src/pages/InvoiceOut/Card/InvoiceOutSummaryDialog.vue new file mode 100644 index 000000000..0e5b3127a --- /dev/null +++ b/src/pages/InvoiceOut/Card/InvoiceOutSummaryDialog.vue @@ -0,0 +1,21 @@ + + + diff --git a/src/pages/InvoiceOut/InvoiceOutList.vue b/src/pages/InvoiceOut/InvoiceOutList.vue new file mode 100644 index 000000000..f5eebd2a3 --- /dev/null +++ b/src/pages/InvoiceOut/InvoiceOutList.vue @@ -0,0 +1,83 @@ + + + diff --git a/src/pages/InvoiceOut/InvoiceOutMain.vue b/src/pages/InvoiceOut/InvoiceOutMain.vue new file mode 100644 index 000000000..099e82879 --- /dev/null +++ b/src/pages/InvoiceOut/InvoiceOutMain.vue @@ -0,0 +1,17 @@ + + + diff --git a/src/router/modules/invoiceOut.js b/src/router/modules/invoiceOut.js new file mode 100644 index 000000000..7f30de62f --- /dev/null +++ b/src/router/modules/invoiceOut.js @@ -0,0 +1,47 @@ +import { RouterView } from 'vue-router'; + +export default { + path: '/invoiceOut', + name: 'InvoiceOut2', + meta: { + title: 'invoiceOuts', + icon: 'vn:invoice-out' + }, + component: RouterView, + redirect: { name: 'InvoiceOutMain' }, + children: [ + { + path: '', + name: 'InvoiceOutMain', + component: () => import('src/pages/InvoiceOut/InvoiceOutMain.vue'), + redirect: { name: 'InvoiceOutList' }, + children: [ + { + path: 'list', + name: 'InvoiceOutList', + meta: { + title: 'list', + icon: 'view_list', + }, + component: () => import('src/pages/InvoiceOut/InvoiceOutList.vue'), + } + ] + }, + { + name: 'InvoiceOutCard', + path: ':id', + component: () => import('src/pages/InvoiceOut/Card/InvoiceOutCard.vue'), + redirect: { name: 'InvoiceOutSummary' }, + children: [ + { + name: 'InvoiceOutSummary', + path: 'summary', + meta: { + title: 'summary' + }, + component: () => import('src/pages/InvoiceOut/Card/InvoiceOutSummary.vue'), + } + ] + }, + ] +}; diff --git a/src/router/routes.js b/src/router/routes.js index a7261379f..8fc355e64 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -1,6 +1,7 @@ import customer from './modules/customer'; import ticket from './modules/ticket'; import claim from './modules/claim'; +import invoiceOut from './modules/invoiceOut'; const routes = [ { @@ -25,6 +26,7 @@ const routes = [ customer, ticket, claim, + invoiceOut, { path: '/:pathMatch(.*)*', name: 'NotFound', @@ -34,4 +36,4 @@ const routes = [ } ]; -export default routes; \ No newline at end of file +export default routes;