From 50d5e38130a5e2ce6b25bb9bfaa242963da23df9 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 29 Nov 2023 16:10:44 -0300 Subject: [PATCH] visual refactors --- src/components/common/VnSelectFilter.vue | 7 ++- src/pages/InvoiceOut/InvoiceOutGlobalForm.vue | 2 +- .../InvoiceOut/InvoiceOutNegativeBases.vue | 61 +++++++++---------- src/pages/Supplier/Card/SupplierSummary.vue | 58 ++++++++---------- src/pages/Supplier/SupplierList.vue | 13 ++-- src/pages/Travel/Card/TravelSummary.vue | 54 +++++++--------- src/pages/Travel/TravelList.vue | 1 - 7 files changed, 91 insertions(+), 105 deletions(-) diff --git a/src/components/common/VnSelectFilter.vue b/src/components/common/VnSelectFilter.vue index 2a3ee6161..04f10ace9 100644 --- a/src/components/common/VnSelectFilter.vue +++ b/src/components/common/VnSelectFilter.vue @@ -89,7 +89,12 @@ const value = computed({ ref="vnSelectRef" > diff --git a/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue b/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue index 8c0692286..96b9ac7f4 100644 --- a/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue +++ b/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue @@ -5,7 +5,7 @@ import CustomerDescriptorProxy from 'src/pages/Customer/Card/CustomerDescriptorP import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue'; import invoiceOutService from 'src/services/invoiceOut.service'; import { toCurrency } from 'src/filters'; -import { QBadge, QBtn } from 'quasar'; +import { QCheckbox, QBtn } from 'quasar'; import { useInvoiceOutGlobalStore } from 'src/stores/invoiceOutGlobal.js'; import { toDate } from 'src/filters'; @@ -39,57 +39,66 @@ const filter = ref({ const tableColumnComponents = { company: { component: 'span', - props: {}, + props: () => {}, event: () => {}, }, country: { component: 'span', - props: {}, + props: () => {}, event: () => {}, }, clientId: { component: QBtn, - props: { flat: true, color: 'blue' }, + props: () => ({ flat: true, color: 'blue' }), event: (prop) => selectCustomerId(prop.value), }, client: { component: 'span', - props: {}, + props: () => {}, event: () => {}, }, amount: { component: 'span', - props: {}, + props: () => {}, event: () => {}, }, base: { component: 'span', - props: {}, + props: () => {}, event: () => {}, }, ticketId: { component: 'span', - props: {}, + props: () => {}, event: () => {}, }, active: { - component: 'span', - props: { type: 'boolean' }, + component: QCheckbox, + props: (prop) => ({ + disable: true, + 'model-value': Boolean(prop.value), + }), event: () => {}, }, hasToInvoice: { - component: 'span', - props: { type: 'boolean' }, + component: QCheckbox, + props: (prop) => ({ + disable: true, + 'model-value': Boolean(prop.value), + }), event: () => {}, }, verifiedData: { - component: 'span', - props: { type: 'boolean' }, + component: QCheckbox, + props: (prop) => ({ + disable: true, + 'model-value': Boolean(prop.value), + }), event: () => {}, }, comercial: { component: QBtn, - props: { flat: true, color: 'blue' }, + props: () => ({ flat: true, color: 'blue' }), event: (prop) => selectWorkerId(prop.row.comercialId), }, }; @@ -351,27 +360,17 @@ onMounted(async () => { - {{ props.value }} - {{ props.value }} - - - - - - - - - - - { {{ supplier.note || '-' }} - - + + + + + + + + + @@ -169,21 +180,4 @@ const isAdministrative = computed(() => { - + diff --git a/src/pages/Supplier/SupplierList.vue b/src/pages/Supplier/SupplierList.vue index 1d2e9126d..3a674a2bc 100644 --- a/src/pages/Supplier/SupplierList.vue +++ b/src/pages/Supplier/SupplierList.vue @@ -50,12 +50,11 @@ const viewSummary = (id) => { diff --git a/src/pages/Travel/Card/TravelSummary.vue b/src/pages/Travel/Card/TravelSummary.vue index 9fe4b8902..08a389423 100644 --- a/src/pages/Travel/Card/TravelSummary.vue +++ b/src/pages/Travel/Card/TravelSummary.vue @@ -226,20 +226,27 @@ const openEntryDescriptor = () => {}; - - + + + + + + + @@ -285,21 +292,4 @@ const openEntryDescriptor = () => {}; - + diff --git a/src/pages/Travel/TravelList.vue b/src/pages/Travel/TravelList.vue index f35db3394..2a4f312a1 100644 --- a/src/pages/Travel/TravelList.vue +++ b/src/pages/Travel/TravelList.vue @@ -67,7 +67,6 @@ onMounted(async () => { :key="row.id" :title="row.ref" :id="row.id" - :showCheckbox="true" @click="navigateToTravelId(row.id)" >