0
0
Fork 0

Solucion a comentarios 22

This commit is contained in:
carlosfonseca 2024-02-26 06:59:33 -05:00
parent b12968f982
commit efb676e4a4
9 changed files with 9 additions and 50 deletions

View File

@ -33,11 +33,6 @@ const filter = {
limit: 20,
};
const initialData = reactive({
rating: null,
recommendedCredit: null,
});
const tableColumnComponents = {
since: {
component: 'span',
@ -100,7 +95,7 @@ const columns = computed(() => [
/>
<FormModel
:form-initial-data="initialData"
:form-initial-data="{}"
:observe-form-changes="false"
:url-create="`Clients/${route.params.id}/setRating`"
>

View File

@ -11,20 +11,8 @@ import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
const { t } = useI18n();
const newClientForm = reactive({
const initialData = reactive({
active: true,
name: null,
salesPersonFk: null,
businessTypeFk: null,
fi: null,
socialName: null,
street: null,
postcode: null,
city: null,
provinceFk: null,
countryFk: null,
userName: null,
email: null,
isEqualizated: false,
});
@ -55,7 +43,7 @@ function handleLocation(data, location) {
<QPage>
<VnSubToolbar />
<FormModel
:form-initial-data="newClientForm"
:form-initial-data="initialData"
model="client"
url-create="Clients/createWithUser"
>
@ -147,7 +135,7 @@ function handleLocation(data, location) {
</VnRow>
<QCheckbox
:label="t('Is equalizated')"
v-model="newClientForm.isEqualizated"
v-model="initialData.isEqualizated"
/>
</template>
</FormModel>

View File

@ -19,7 +19,6 @@ const quasar = useQuasar();
const balanceDueTotal = ref(0);
const selected = ref([]);
const workerId = ref(0);
const rows = ref([]);
const tableColumnComponents = {

View File

@ -10,10 +10,6 @@ const { t } = useI18n();
const route = useRoute();
const router = useRouter();
const initialData = reactive({
credit: null,
});
const toCustomerCredits = () => {
router.push({
name: 'CustomerCredits',
@ -26,7 +22,7 @@ const toCustomerCredits = () => {
<template>
<FormModel
:form-initial-data="initialData"
:form-initial-data="{}"
:observe-form-changes="false"
:url-update="`/Clients/${route.params.id}`"
@on-data-saved="toCustomerCredits()"

View File

@ -15,9 +15,6 @@ const route = useRoute();
const router = useRouter();
const initialData = reactive({
amount: null,
description: null,
greugeTypeFk: null,
shipped: '2001-01-01T11:00:00.000Z',
});

View File

@ -10,13 +10,6 @@ const emit = defineEmits(['onDataSaved']);
const { t } = useI18n();
const initialData = reactive({
nif: null,
fiscalName: null,
street: null,
phone: null,
});
const onDataSaved = (dataSaved) => {
emit('onDataSaved', dataSaved);
};
@ -24,11 +17,11 @@ const onDataSaved = (dataSaved) => {
<template>
<FormModelPopup
:form-initial-data="{}"
:title="t('New customs agent')"
url-create="CustomsAgents"
model="customer"
:form-initial-data="initialData"
@on-data-saved="onDataSaved($event)"
model="customer"
url-create="CustomsAgents"
>
<template #form-inputs="{ data }">
<VnRow class="row q-gutter-md q-mb-md">

View File

@ -58,13 +58,9 @@ const filterClientFindOne = {
const initialData = reactive({
amountPaid: $props.totalCredit,
bankFk: null,
clientFk: route.params.id,
companyFk: $props.companyId,
compensationAccount: null,
description: null,
email: clientFindOne.value.email,
payed: null,
});
onBeforeMount(() => {

View File

@ -10,9 +10,7 @@ const { t } = useI18n();
const route = useRoute();
const router = useRouter();
const initialData = reactive({
text: null,
});
const initialData = reactive({});
onMounted(() => {
initialData.clientFk = `${route.params.id}`;

View File

@ -14,9 +14,6 @@ const router = useRouter();
const initialData = reactive({
started: '2001-01-01T11:00:00.000Z',
finished: null,
amount: null,
period: null,
});
onMounted(() => {