forked from verdnatura/salix-front
para que no de el fallo de muchos registros
This commit is contained in:
parent
efc7df5a60
commit
fb0ed9c4ce
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue