This commit is contained in:
parent
e2fa5a87eb
commit
1c48a6d504
|
@ -5,7 +5,7 @@ import { useRoute } from 'vue-router';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { getClientRisk } from '../composables/getClientRisk';
|
import { getClientRisk } from '../composables/getClientRisk';
|
||||||
import { useDialogPluginComponent } from 'quasar';
|
import { useDialogPluginComponent } from 'quasar';
|
||||||
|
import FormModelPopup from 'components/FormModelPopup.vue';
|
||||||
import { usePrintService } from 'composables/usePrintService';
|
import { usePrintService } from 'composables/usePrintService';
|
||||||
import useNotify from 'src/composables/useNotify.js';
|
import useNotify from 'src/composables/useNotify.js';
|
||||||
import FetchData from 'components/FetchData.vue';
|
import FetchData from 'components/FetchData.vue';
|
||||||
|
@ -183,7 +183,7 @@ async function getAmountPaid() {
|
||||||
auto-load
|
auto-load
|
||||||
url="Clients/findOne"
|
url="Clients/findOne"
|
||||||
/>
|
/>
|
||||||
<FormModel
|
<FormModelPopup
|
||||||
ref="formModelRef"
|
ref="formModelRef"
|
||||||
:form-initial-data="initialData"
|
:form-initial-data="initialData"
|
||||||
:url-create="urlCreate"
|
:url-create="urlCreate"
|
||||||
|
@ -191,11 +191,7 @@ async function getAmountPaid() {
|
||||||
@on-data-saved="onDataSaved"
|
@on-data-saved="onDataSaved"
|
||||||
:prevent-submit="true"
|
:prevent-submit="true"
|
||||||
>
|
>
|
||||||
<template #form="{ data, validate }">
|
<template #form-inputs="{ data, validate }">
|
||||||
<span ref="closeButton" class="row justify-end close-icon" v-close-popup>
|
|
||||||
<QIcon name="close" size="sm" />
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<h5 class="q-mt-none">{{ t('New payment') }}</h5>
|
<h5 class="q-mt-none">{{ t('New payment') }}</h5>
|
||||||
<VnRow>
|
<VnRow>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
|
@ -287,27 +283,8 @@ async function getAmountPaid() {
|
||||||
<QCheckbox v-model="shouldSendEmail" :label="t('Send email')" />
|
<QCheckbox v-model="shouldSendEmail" :label="t('Send email')" />
|
||||||
</VnRow>
|
</VnRow>
|
||||||
</div>
|
</div>
|
||||||
<div class="q-mt-lg row justify-end">
|
|
||||||
<QBtn
|
|
||||||
:disabled="formModelRef.isLoading"
|
|
||||||
:label="t('globals.cancel')"
|
|
||||||
:loading="formModelRef.isLoading"
|
|
||||||
class="q-ml-sm"
|
|
||||||
color="primary"
|
|
||||||
flat
|
|
||||||
type="reset"
|
|
||||||
v-close-popup
|
|
||||||
/>
|
|
||||||
<QBtn
|
|
||||||
:disabled="formModelRef.isLoading"
|
|
||||||
:label="t('globals.save')"
|
|
||||||
:loading="formModelRef.isLoading"
|
|
||||||
color="primary"
|
|
||||||
@click="formModelRef.save()"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</FormModel>
|
</FormModelPopup>
|
||||||
</QDialog>
|
</QDialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue