0
0
Fork 0

Correcciones solicitadas

This commit is contained in:
carlosfonseca 2024-01-04 13:12:58 -05:00
parent 083094b25d
commit bd8acbe084
5 changed files with 432 additions and 442 deletions

View File

@ -102,8 +102,7 @@ const tableColumnComponents = {
},
};
const columns = computed(() => {
return [
const columns = computed(() => [
{
align: 'left',
field: 'clientName',
@ -170,8 +169,7 @@ const columns = computed(() => {
label: t('From'),
name: 'from',
},
];
});
]);
const selectCustomerId = (id) => {
workerId.value = 0;

View File

@ -262,8 +262,7 @@ const tableColumnComponents = {
},
};
const columns = computed(() => {
return [
const columns = computed(() => [
{
align: 'left',
field: '',
@ -469,8 +468,7 @@ const columns = computed(() => {
label: '',
name: 'actions',
},
];
});
]);
const stopEventPropagation = (event, col) => {
if (!['id', 'salesPersonFk'].includes(col.name)) return;

View File

@ -57,8 +57,7 @@ const tableColumnComponents = {
},
};
const columns = computed(() => {
return [
const columns = computed(() => [
{
align: 'left',
field: 'id',
@ -89,8 +88,7 @@ const columns = computed(() => {
label: t('Email'),
name: 'email',
},
];
});
]);
const selectCustomerId = (id) => {
selectedCustomerId.value = id;

View File

@ -49,8 +49,7 @@ const tableColumnComponents = {
},
};
const columns = computed(() => {
return [
const columns = computed(() => [
{ label: 'Id', field: 'clientId', name: 'clientId', align: 'left' },
{
label: t('invoiceOut.globalInvoices.table.client'),
@ -71,8 +70,7 @@ const columns = computed(() => {
align: 'left',
},
{ label: 'Error', field: 'message', name: 'message', align: 'left' },
];
});
]);
const rows = computed(() => {
if (!errors && !errors.length > 0) return [];

View File

@ -103,8 +103,7 @@ const tableColumnComponents = {
},
};
const columns = computed(() => {
return [
const columns = computed(() => [
{
label: 'id',
field: 'id',
@ -206,8 +205,7 @@ const columns = computed(() => {
format: (value) => toDate(value.substring(0, 10)),
showValue: true,
},
];
});
]);
async function getData() {
await arrayData.fetch({ append: false });