From 5729204a3b39c5f2e56f33cdd6742ffdd990b897 Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Thu, 28 Dec 2023 10:25:23 -0500 Subject: [PATCH] Se crea tabla y filtros de morosos en clientes --- src/i18n/en/index.js | 9 +- src/i18n/es/index.js | 9 +- .../Customer/Defaulter/CustomerDefaulter.vue | 253 ++++++++++++++++++ .../Defaulter/CustomerDefaulterFilter.vue | 238 ++++++++++++++++ .../CustomerExtendedList.vue | 0 .../CustomerExtendedListActions.vue | 2 +- .../CustomerExtendedListFilter.vue | 17 +- .../CustomerNotifications.vue | 2 +- .../CustomerNotificationsFilter.vue | 50 ++-- .../{ => Payments}/CustomerPayments.vue | 2 +- .../{ => Payments}/CustomerPaymentsFilter.vue | 0 src/router/modules/customer.js | 22 +- .../pages/Customer/CustomerPayments.spec.js | 8 +- 13 files changed, 552 insertions(+), 60 deletions(-) create mode 100644 src/pages/Customer/Defaulter/CustomerDefaulter.vue create mode 100644 src/pages/Customer/Defaulter/CustomerDefaulterFilter.vue rename src/pages/Customer/{ => ExtendedList}/CustomerExtendedList.vue (100%) rename src/pages/Customer/{ => ExtendedList}/CustomerExtendedListActions.vue (94%) rename src/pages/Customer/{ => ExtendedList}/CustomerExtendedListFilter.vue (91%) rename src/pages/Customer/{ => Notifications}/CustomerNotifications.vue (98%) rename src/pages/Customer/{ => Notifications}/CustomerNotificationsFilter.vue (94%) rename src/pages/Customer/{ => Payments}/CustomerPayments.vue (99%) rename src/pages/Customer/{ => Payments}/CustomerPaymentsFilter.vue (100%) diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index f7234ba57..18a2e4ecf 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -113,6 +113,7 @@ export default { webPayments: 'Web Payments', extendedList: 'Extended list', notifications: 'Notifications', + defaulter: 'Defaulter', createCustomer: 'Create customer', summary: 'Summary', basicData: 'Basic Data', @@ -568,7 +569,7 @@ export default { landed: 'Landed', hour: 'Hour', agency: 'Agency', - total: 'Total' + total: 'Total', }, form: { clientFk: 'Client', @@ -577,7 +578,7 @@ export default { agencyModeFk: 'Agency', }, list: { - newOrder: 'New Order' + newOrder: 'New Order', }, summary: { basket: 'Basket', @@ -603,8 +604,8 @@ export default { description: 'Description', quantity: 'Quantity', price: 'Price', - amount: 'Amount' - } + amount: 'Amount', + }, }, worker: { pageTitles: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index f96add139..af8191052 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -113,6 +113,7 @@ export default { webPayments: 'Pagos Web', extendedList: 'Listado extendido', notifications: 'Notificaciones', + defaulter: 'Morosos', createCustomer: 'Crear cliente', basicData: 'Datos básicos', summary: 'Resumen', @@ -477,7 +478,7 @@ export default { landed: 'F. entrega', hour: 'Hora', agency: 'Agencia', - total: 'Total' + total: 'Total', }, form: { clientFk: 'Cliente', @@ -486,7 +487,7 @@ export default { agencyModeFk: 'Agencia', }, list: { - newOrder: 'Nuevo Pedido' + newOrder: 'Nuevo Pedido', }, summary: { basket: 'Cesta', @@ -512,8 +513,8 @@ export default { description: 'Descripción', quantity: 'Cantidad', price: 'Precio', - amount: 'Monto' - } + amount: 'Monto', + }, }, shelving: { pageTitles: { diff --git a/src/pages/Customer/Defaulter/CustomerDefaulter.vue b/src/pages/Customer/Defaulter/CustomerDefaulter.vue new file mode 100644 index 000000000..b35980416 --- /dev/null +++ b/src/pages/Customer/Defaulter/CustomerDefaulter.vue @@ -0,0 +1,253 @@ + + + + + + + +es: + Client: Cliente + Is worker: Es trabajador + Salesperson: Comercial + Country: País + P. Method: F. Pago + Balance D.: Saldo V. + Author: Autor + Last observation: Última observación + L. O. Date: Fecha Ú. O. + Credit I.: Crédito A. + From: Desde + diff --git a/src/pages/Customer/Defaulter/CustomerDefaulterFilter.vue b/src/pages/Customer/Defaulter/CustomerDefaulterFilter.vue new file mode 100644 index 000000000..43ceb1bac --- /dev/null +++ b/src/pages/Customer/Defaulter/CustomerDefaulterFilter.vue @@ -0,0 +1,238 @@ + + + + + + + +en: + params: + clientFk: Client + salesPersonFk: Salesperson + countryFk: Country + paymentMethod: P. Method + balance: Balance D. + workerFk: Author + date: L. O. Date + credit: Credit I. + defaulterSinced: From +es: + params: + clientFk: Cliente + salesPersonFk: Comercial + countryFk: País + paymentMethod: F. Pago + balance: Saldo V. + workerFk: Autor + date: Fecha Ú. O. + credit: Crédito A. + defaulterSinced: Desde + Client: Cliente + Salesperson: Comercial + Country: País + P. Method: F. Pago + Balance D.: Saldo V. + Author: Autor + L. O. Date: Fecha Ú. O. + Credit I.: Crédito A. + From: Desde + diff --git a/src/pages/Customer/CustomerExtendedList.vue b/src/pages/Customer/ExtendedList/CustomerExtendedList.vue similarity index 100% rename from src/pages/Customer/CustomerExtendedList.vue rename to src/pages/Customer/ExtendedList/CustomerExtendedList.vue diff --git a/src/pages/Customer/CustomerExtendedListActions.vue b/src/pages/Customer/ExtendedList/CustomerExtendedListActions.vue similarity index 94% rename from src/pages/Customer/CustomerExtendedListActions.vue rename to src/pages/Customer/ExtendedList/CustomerExtendedListActions.vue index 1fec71ffe..7e3639522 100644 --- a/src/pages/Customer/CustomerExtendedListActions.vue +++ b/src/pages/Customer/ExtendedList/CustomerExtendedListActions.vue @@ -4,7 +4,7 @@ import { useRouter } from 'vue-router'; import { useQuasar } from 'quasar'; -import CustomerSummaryDialog from './Card/CustomerSummaryDialog.vue'; +import CustomerSummaryDialog from '../Card/CustomerSummaryDialog.vue'; const { t } = useI18n(); const quasar = useQuasar(); diff --git a/src/pages/Customer/CustomerExtendedListFilter.vue b/src/pages/Customer/ExtendedList/CustomerExtendedListFilter.vue similarity index 91% rename from src/pages/Customer/CustomerExtendedListFilter.vue rename to src/pages/Customer/ExtendedList/CustomerExtendedListFilter.vue index ba1c966dc..dbed3141d 100644 --- a/src/pages/Customer/CustomerExtendedListFilter.vue +++ b/src/pages/Customer/ExtendedList/CustomerExtendedListFilter.vue @@ -80,7 +80,7 @@ const workers = ref(); -en: - params: - identifier: Identifier - socialName: Social name - salesPerson: Salesperson - phone: Phone - city: City - email: Email es: - params: - identifier: Identificador - socialName: Razón social - salesPerson: Comercial - phone: Teléfono - city: Población - email: Email Identifier: Identificador Social name: Razón social Salesperson: Comercial diff --git a/src/pages/Customer/CustomerNotifications.vue b/src/pages/Customer/Notifications/CustomerNotifications.vue similarity index 98% rename from src/pages/Customer/CustomerNotifications.vue rename to src/pages/Customer/Notifications/CustomerNotifications.vue index 91d137763..f9ff66a7b 100644 --- a/src/pages/Customer/CustomerNotifications.vue +++ b/src/pages/Customer/Notifications/CustomerNotifications.vue @@ -8,7 +8,7 @@ import { useArrayData } from 'composables/useArrayData'; import { useStateStore } from 'stores/useStateStore'; import CustomerNotificationsFilter from './CustomerNotificationsFilter.vue'; -import CustomerDescriptorProxy from './Card/CustomerDescriptorProxy.vue'; +import CustomerDescriptorProxy from '../Card/CustomerDescriptorProxy.vue'; const { t } = useI18n(); const stateStore = useStateStore(); diff --git a/src/pages/Customer/CustomerNotificationsFilter.vue b/src/pages/Customer/Notifications/CustomerNotificationsFilter.vue similarity index 94% rename from src/pages/Customer/CustomerNotificationsFilter.vue rename to src/pages/Customer/Notifications/CustomerNotificationsFilter.vue index 1c4c8f3e2..650158278 100644 --- a/src/pages/Customer/CustomerNotificationsFilter.vue +++ b/src/pages/Customer/Notifications/CustomerNotificationsFilter.vue @@ -4,8 +4,8 @@ import { useI18n } from 'vue-i18n'; import FetchData from 'components/FetchData.vue'; import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; -import VnSelectFilter from 'components/common/VnSelectFilter.vue'; import VnInput from 'src/components/common/VnInput.vue'; +import VnSelectFilter from 'components/common/VnSelectFilter.vue'; const { t } = useI18n(); const props = defineProps({ @@ -15,18 +15,18 @@ const props = defineProps({ }, }); -const clients = ref(); const cities = ref(); +const clients = ref();