From 64777bb80467fcf7f117f6b718a4ca2153e6d1c7 Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Thu, 4 Jan 2024 10:23:55 -0500 Subject: [PATCH 1/3] Se hacen correcciones en base a comentarios en el PR --- .../Customer/Defaulter/CustomerDefaulter.vue | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/pages/Customer/Defaulter/CustomerDefaulter.vue b/src/pages/Customer/Defaulter/CustomerDefaulter.vue index 0331acfc0..b9c863e56 100644 --- a/src/pages/Customer/Defaulter/CustomerDefaulter.vue +++ b/src/pages/Customer/Defaulter/CustomerDefaulter.vue @@ -38,14 +38,14 @@ onBeforeMount(async () => { const rows = computed(() => arrayData.value.store.data); const selected = ref([]); -const worderId = ref(0); +const workerId = ref(0); const customerId = ref(0); const tableColumnComponents = { client: { component: QBtn, props: () => ({ flat: true, color: 'blue' }), - event: (prop) => selectClientId(prop.row.clientFk), + event: ({ row }) => selectCustomerId(row.clientFk), }, isWorker: { component: QCheckbox, @@ -58,7 +58,7 @@ const tableColumnComponents = { salesperson: { component: QBtn, props: () => ({ flat: true, color: 'blue' }), - event: (prop) => selectSalespersonId(prop.row.salesPersonFk), + event: ({ row }) => selectWorkerId(row.salesPersonFk), }, country: { component: 'span', @@ -78,7 +78,7 @@ const tableColumnComponents = { author: { component: QBtn, props: () => ({ flat: true, color: 'blue' }), - event: (prop) => selectAuthorId(prop.row.workerFk), + event: ({ row }) => selectWorkerId(row.workerFk), }, lastObservation: { component: 'span', @@ -173,19 +173,14 @@ const columns = computed(() => { ]; }); -const selectClientId = (id) => { - worderId.value = 0; +const selectCustomerId = (id) => { + workerId.value = 0; customerId.value = id; }; -const selectSalespersonId = (id) => { +const selectWorkerId = (id) => { customerId.value = 0; - worderId.value = id; -}; - -const selectAuthorId = (id) => { - customerId.value = 0; - worderId.value = id; + workerId.value = id; }; @@ -226,7 +221,7 @@ const selectAuthorId = (id) => { > {{ props.value }} - + From 6b3bed008537ac531f6fe3fb267f2c8f3c4b8d47 Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Thu, 4 Jan 2024 11:37:46 -0500 Subject: [PATCH 2/3] Mejoras en las correcciones de codigo --- .../Customer/Defaulter/CustomerBalanceDueTotal.vue | 13 +++++-------- src/pages/Customer/Defaulter/CustomerDefaulter.vue | 12 ++++++------ 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/pages/Customer/Defaulter/CustomerBalanceDueTotal.vue b/src/pages/Customer/Defaulter/CustomerBalanceDueTotal.vue index c2bfbc2f5..c4a50a10f 100644 --- a/src/pages/Customer/Defaulter/CustomerBalanceDueTotal.vue +++ b/src/pages/Customer/Defaulter/CustomerBalanceDueTotal.vue @@ -14,8 +14,8 @@ const { t } = useI18n();