refs #5509 - entryDms #199

Merged
alexm merged 22 commits from 5509-entryDms into dev 2024-02-27 11:33:45 +00:00
2 changed files with 8 additions and 4 deletions
Showing only changes of commit 00bed4fd61 - Show all commits

View File

@ -79,9 +79,8 @@ onMounted(async () => {
});
// Podemos enviarle al form la estructura de data inicial sin necesidad de fetchearla
if ($props.formInitialData || !$props.autoLoad) {
state.set($props.model, $props.formInitialData ?? {});
} else {
state.set($props.model, $props.formInitialData ?? {});
if ($props.autoLoad && !$props.formInitialData) {
await fetch();
}

View File

@ -174,7 +174,12 @@ async function upsert() {
@on-fetch="(data) => (userConfig = data)"
auto-load
/>
<FormModel v-if="invoiceIn" :url="`InvoiceIns/${route.params.id}`" model="invoiceIn">
<FormModel
v-if="invoiceIn"
:url="`InvoiceIns/${route.params.id}`"
model="invoiceIn"
:auto-load="true"
>
<template #form="{ data }">
<div class="row q-gutter-md q-mb-md">
<div class="col">