Merge pull request 'Correcciones solicitadas' (#58) from branch-PR-2-fixies-3 into branch-PR-2

Reviewed-on: hyervoni/salix-front-mindshore#58
This commit is contained in:
Carlos Fonseca 2024-01-04 18:15:00 +00:00
commit c832ee6ecc
5 changed files with 432 additions and 442 deletions

View File

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

View File

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

View File

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

View File

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

View File

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