From 810e579ea97e2229e9d9d5eb2f6f68a19b5e6d30 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 5 Aug 2024 12:10:15 +0200 Subject: [PATCH] refactor(customer_recovery): to vnTable --- src/i18n/locale/en.yml | 3 + src/i18n/locale/es.yml | 7 +- .../Customer/Card/CustomerRecoveries.vue | 179 +++++++----------- src/router/modules/customer.js | 32 +--- 4 files changed, 83 insertions(+), 138 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 78c1fa18d..d2cd83560 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -90,6 +90,9 @@ globals: salesPerson: SalesPerson send: Send code: Code + since: Since + from: From + to: To pageTitles: logIn: Login summary: Summary diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 0266bd208..b926bd50b 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -90,6 +90,9 @@ globals: salesPerson: Comercial send: Enviar code: Código + since: Desde + from: Desde + to: Hasta pageTitles: logIn: Inicio de sesión summary: Resumen @@ -697,8 +700,6 @@ invoiceOut: percentageText: '{getPercentage}% {getAddressNumber} de {getNAddresses}' pdfsNumberText: '{nPdfs} de {totalPdfs} PDFs' negativeBases: - from: Desde - to: Hasta company: Empresa country: País clientId: Id cliente @@ -1240,8 +1241,6 @@ components: # LatestBuysFilter salesPersonFk: Comprador supplierFk: Proveedor - from: Desde - to: Hasta active: Activo visible: Visible floramondo: Floramondo diff --git a/src/pages/Customer/Card/CustomerRecoveries.vue b/src/pages/Customer/Card/CustomerRecoveries.vue index 289b4bc0e..8d3d05702 100644 --- a/src/pages/Customer/Card/CustomerRecoveries.vue +++ b/src/pages/Customer/Card/CustomerRecoveries.vue @@ -1,146 +1,107 @@ - - es: - Since: Desde - To: Hasta - Amount: Importe Period: Periodo - New recoverie: Nuevo recobro + New recovery: Nuevo recobro + Finish that recovery period: Terminar recobro diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js index 6d697967b..684b83b0f 100644 --- a/src/router/modules/customer.js +++ b/src/router/modules/customer.js @@ -226,31 +226,13 @@ export default { }, { path: 'recoveries', - name: 'RecoveriesCard', - redirect: { name: 'CustomerRecoveries' }, - children: [ - { - path: '', - name: 'CustomerRecoveries', - meta: { - title: 'recoveries', - icon: 'vn:recovery', - }, - component: () => - import('src/pages/Customer/Card/CustomerRecoveries.vue'), - }, - { - path: 'create', - name: 'CustomerRecoverieCreate', - meta: { - title: 'recoverie-create', - }, - component: () => - import( - 'src/pages/Customer/components/CustomerRecoverieCreate.vue' - ), - }, - ], + name: 'CustomerRecoveries', + meta: { + title: 'recoveries', + icon: 'vn:recovery', + }, + component: () => + import('src/pages/Customer/Card/CustomerRecoveries.vue'), }, { path: 'web-access',