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