From b06e5b9252d9eae235e7410cc829c9b5c84f66e1 Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Fri, 2 Feb 2024 08:21:23 -0500 Subject: [PATCH] Correcciones comentarios pr --- src/pages/Customer/Card/CustomerBalance.vue | 26 +++--- .../Customer/Card/CustomerCreditContracts.vue | 5 +- src/pages/Customer/Card/CustomerCredits.vue | 64 ++++++--------- src/pages/Customer/Card/CustomerGreuges.vue | 82 ++++++++----------- .../Customer/Card/CustomerRecoveries.vue | 39 ++++----- src/pages/Customer/Card/CustomerSamples.vue | 62 ++++++-------- .../Customer/Defaulter/CustomerDefaulter.vue | 43 ++++------ .../ExtendedList/CustomerExtendedList.vue | 40 ++++----- .../Notifications/CustomerNotifications.vue | 30 +++---- .../CustomerCreditContractsInsurance.vue | 37 ++++----- .../components/CustomerSamplesCreate.vue | 8 -- src/router/modules/customer.js | 27 ++++++ 12 files changed, 208 insertions(+), 255 deletions(-) diff --git a/src/pages/Customer/Card/CustomerBalance.vue b/src/pages/Customer/Card/CustomerBalance.vue index db514fab0..e74933477 100644 --- a/src/pages/Customer/Card/CustomerBalance.vue +++ b/src/pages/Customer/Card/CustomerBalance.vue @@ -22,12 +22,12 @@ const state = useState(); const user = state.getUser(); const clientRisks = ref(null); +const clientRisksRef = ref(null); const companiesOptions = ref([]); const companyId = ref(null); -const rows = ref(null); -const workerId = ref(0); const receiptsRef = ref(null); -const clientRisksRef = ref(null); +const rows = ref([]); +const workerId = ref(null); const filterCompanies = { order: ['code'] }; const params = { @@ -44,44 +44,42 @@ const tableColumnComponents = { payed: { component: 'span', props: () => {}, - event: () => {}, + event: () => (workerId.value = null), }, created: { component: 'span', props: () => {}, - event: () => {}, + event: () => (workerId.value = null), }, userName: { component: QBtn, props: () => ({ flat: true, color: 'blue' }), - event: (prop) => { - workerId.value = prop.row.clientFk; - }, + event: ({ row }) => (workerId.value = row.clientFk), }, description: { component: 'span', props: () => {}, - event: () => {}, + event: () => (workerId.value = null), }, bankFk: { component: 'span', props: () => {}, - event: () => {}, + event: () => (workerId.value = null), }, debit: { component: 'span', props: () => {}, - event: () => {}, + event: () => (workerId.value = null), }, credit: { component: 'span', props: () => {}, - event: () => {}, + event: () => (workerId.value = null), }, balance: { component: 'span', props: () => {}, - event: () => {}, + event: () => (workerId.value = null), }, isConciliate: { component: QCheckbox, @@ -89,7 +87,7 @@ const tableColumnComponents = { disable: true, 'model-value': Boolean(prop.value), }), - event: () => {}, + event: () => (workerId.value = null), }, }; diff --git a/src/pages/Customer/Card/CustomerCreditContracts.vue b/src/pages/Customer/Card/CustomerCreditContracts.vue index 04e8eccef..71bf42fd4 100644 --- a/src/pages/Customer/Card/CustomerCreditContracts.vue +++ b/src/pages/Customer/Card/CustomerCreditContracts.vue @@ -88,6 +88,7 @@ const updateData = () => { :class="{ 'customer-card': true, 'q-mb-md': index < rows.length - 1, + 'is-active': !item.finished, }" > @@ -192,12 +193,14 @@ const updateData = () => { } .customer-card { border: 2px solid var(--vn-light-gray); - background-color: var(--vn-light-gray); border-radius: 10px; padding: 10px; display: flex; justify-content: space-between; } +.is-active { + background-color: var(--vn-light-gray); +} diff --git a/src/pages/Customer/Card/CustomerCredits.vue b/src/pages/Customer/Card/CustomerCredits.vue index 077312f1b..6852b42eb 100644 --- a/src/pages/Customer/Card/CustomerCredits.vue +++ b/src/pages/Customer/Card/CustomerCredits.vue @@ -1,65 +1,52 @@