Mejoras en las correcciones de codigo

This commit is contained in:
carlosfonseca 2024-01-04 11:37:46 -05:00
parent fb7a3c208c
commit 6b3bed0085
2 changed files with 11 additions and 14 deletions

View File

@ -14,8 +14,8 @@ const { t } = useI18n();
</script> </script>
<template> <template>
<div class="card_balance"> <div class="card_balance q-px-md q-py-sm q-my-sm">
<h6 class="title_balance">{{ t('Total') }}</h6> <h6 class="title_balance text-center">{{ t('Total') }}</h6>
<div class="row"> <div class="row">
<p class="key_balance">{{ t('Balance due') }}:&ensp;</p> <p class="key_balance">{{ t('Balance due') }}:&ensp;</p>
<b class="value_balance"> <b class="value_balance">
@ -28,21 +28,18 @@ const { t } = useI18n();
<style lang="scss"> <style lang="scss">
.card_balance { .card_balance {
border: 1px solid black; border: 1px solid black;
margin: 7px;
padding: 5px 7px;
} }
.title_balance { .title_balance {
color: white; color: var(--vn-text);
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
text-align: center;
} }
.key_balance { .key_balance {
color: grey; color: var(--vn-label);
margin-bottom: 0; margin-bottom: 0;
} }
.value_balance { .value_balance {
color: white; color: var(--vn-text);
margin-bottom: 0; margin-bottom: 0;
} }
</style> </style>

View File

@ -49,9 +49,9 @@ const tableColumnComponents = {
}, },
isWorker: { isWorker: {
component: QCheckbox, component: QCheckbox,
props: (prop) => ({ props: ({ value }) => ({
disable: true, disable: true,
'model-value': Boolean(prop.value), 'model-value': Boolean(value),
}), }),
event: () => {}, event: () => {},
}, },
@ -136,7 +136,7 @@ const columns = computed(() => {
}, },
{ {
align: 'left', align: 'left',
field: (row) => toCurrency(row.amount), field: ({ amount }) => toCurrency(amount),
label: t('Balance D.'), label: t('Balance D.'),
name: 'balance', name: 'balance',
}, },
@ -154,19 +154,19 @@ const columns = computed(() => {
}, },
{ {
align: 'left', align: 'left',
field: (row) => toDate(row.created), field: ({ created }) => toDate(created),
label: t('L. O. Date'), label: t('L. O. Date'),
name: 'date', name: 'date',
}, },
{ {
align: 'left', align: 'left',
field: (row) => toCurrency(row.creditInsurance), field: ({ creditInsurance }) => toCurrency(creditInsurance),
label: t('Credit I.'), label: t('Credit I.'),
name: 'credit', name: 'credit',
}, },
{ {
align: 'left', align: 'left',
field: (row) => toDate(row.defaulterSinced), field: ({ defaulterSinced }) => toDate(defaulterSinced),
label: t('From'), label: t('From'),
name: 'from', name: 'from',
}, },