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 @@