0
0
Fork 0

para que no de el fallo de muchos registros

This commit is contained in:
Javi Gallego 2024-08-23 13:52:46 +02:00
parent efc7df5a60
commit fb0ed9c4ce
1 changed files with 1 additions and 4 deletions

View File

@ -22,7 +22,6 @@ const { makeInvoice, setStatusValue } = invoiceOutGlobalStore;
const clientsToInvoice = ref('all');
const companiesOptions = ref([]);
const printersOptions = ref([]);
const clientsOptions = ref([]);
const serialTypesOptions = ref([]);
const handleInvoiceOutSerialsFetch = (data) => {
@ -37,7 +36,6 @@ const optionsInitialData = computed(() => {
const optionsArrays = [
companiesOptions.value,
printersOptions.value,
clientsOptions.value,
serialTypesOptions.value,
];
return optionsArrays.every((arr) => arr.length > 0);
@ -65,7 +63,6 @@ onMounted(async () => {
auto-load
/>
<FetchData url="Printers" @on-fetch="(data) => (printersOptions = data)" auto-load />
<FetchData url="Clients" @on-fetch="(data) => (clientsOptions = data)" auto-load />
<FetchData
url="invoiceOutSerials"
@on-fetch="handleInvoiceOutSerialsFetch"
@ -97,7 +94,7 @@ onMounted(async () => {
v-if="clientsToInvoice === 'one'"
:label="t('client')"
v-model="formData.clientId"
:options="clientsOptions"
url="Clients"
option-value="id"
option-label="name"
hide-selected