forked from verdnatura/salix-front
Solucion a comentarios 22
This commit is contained in:
parent
b12968f982
commit
efb676e4a4
|
@ -33,11 +33,6 @@ const filter = {
|
||||||
limit: 20,
|
limit: 20,
|
||||||
};
|
};
|
||||||
|
|
||||||
const initialData = reactive({
|
|
||||||
rating: null,
|
|
||||||
recommendedCredit: null,
|
|
||||||
});
|
|
||||||
|
|
||||||
const tableColumnComponents = {
|
const tableColumnComponents = {
|
||||||
since: {
|
since: {
|
||||||
component: 'span',
|
component: 'span',
|
||||||
|
@ -100,7 +95,7 @@ const columns = computed(() => [
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FormModel
|
<FormModel
|
||||||
:form-initial-data="initialData"
|
:form-initial-data="{}"
|
||||||
:observe-form-changes="false"
|
:observe-form-changes="false"
|
||||||
:url-create="`Clients/${route.params.id}/setRating`"
|
:url-create="`Clients/${route.params.id}/setRating`"
|
||||||
>
|
>
|
||||||
|
|
|
@ -11,20 +11,8 @@ import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
const newClientForm = reactive({
|
const initialData = reactive({
|
||||||
active: true,
|
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,
|
isEqualizated: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -55,7 +43,7 @@ function handleLocation(data, location) {
|
||||||
<QPage>
|
<QPage>
|
||||||
<VnSubToolbar />
|
<VnSubToolbar />
|
||||||
<FormModel
|
<FormModel
|
||||||
:form-initial-data="newClientForm"
|
:form-initial-data="initialData"
|
||||||
model="client"
|
model="client"
|
||||||
url-create="Clients/createWithUser"
|
url-create="Clients/createWithUser"
|
||||||
>
|
>
|
||||||
|
@ -147,7 +135,7 @@ function handleLocation(data, location) {
|
||||||
</VnRow>
|
</VnRow>
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
:label="t('Is equalizated')"
|
:label="t('Is equalizated')"
|
||||||
v-model="newClientForm.isEqualizated"
|
v-model="initialData.isEqualizated"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</FormModel>
|
</FormModel>
|
||||||
|
|
|
@ -19,7 +19,6 @@ const quasar = useQuasar();
|
||||||
|
|
||||||
const balanceDueTotal = ref(0);
|
const balanceDueTotal = ref(0);
|
||||||
const selected = ref([]);
|
const selected = ref([]);
|
||||||
const workerId = ref(0);
|
|
||||||
const rows = ref([]);
|
const rows = ref([]);
|
||||||
|
|
||||||
const tableColumnComponents = {
|
const tableColumnComponents = {
|
||||||
|
|
|
@ -10,10 +10,6 @@ const { t } = useI18n();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const initialData = reactive({
|
|
||||||
credit: null,
|
|
||||||
});
|
|
||||||
|
|
||||||
const toCustomerCredits = () => {
|
const toCustomerCredits = () => {
|
||||||
router.push({
|
router.push({
|
||||||
name: 'CustomerCredits',
|
name: 'CustomerCredits',
|
||||||
|
@ -26,7 +22,7 @@ const toCustomerCredits = () => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<FormModel
|
<FormModel
|
||||||
:form-initial-data="initialData"
|
:form-initial-data="{}"
|
||||||
:observe-form-changes="false"
|
:observe-form-changes="false"
|
||||||
:url-update="`/Clients/${route.params.id}`"
|
:url-update="`/Clients/${route.params.id}`"
|
||||||
@on-data-saved="toCustomerCredits()"
|
@on-data-saved="toCustomerCredits()"
|
||||||
|
|
|
@ -15,9 +15,6 @@ const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const initialData = reactive({
|
const initialData = reactive({
|
||||||
amount: null,
|
|
||||||
description: null,
|
|
||||||
greugeTypeFk: null,
|
|
||||||
shipped: '2001-01-01T11:00:00.000Z',
|
shipped: '2001-01-01T11:00:00.000Z',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -10,13 +10,6 @@ const emit = defineEmits(['onDataSaved']);
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
const initialData = reactive({
|
|
||||||
nif: null,
|
|
||||||
fiscalName: null,
|
|
||||||
street: null,
|
|
||||||
phone: null,
|
|
||||||
});
|
|
||||||
|
|
||||||
const onDataSaved = (dataSaved) => {
|
const onDataSaved = (dataSaved) => {
|
||||||
emit('onDataSaved', dataSaved);
|
emit('onDataSaved', dataSaved);
|
||||||
};
|
};
|
||||||
|
@ -24,11 +17,11 @@ const onDataSaved = (dataSaved) => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<FormModelPopup
|
<FormModelPopup
|
||||||
|
:form-initial-data="{}"
|
||||||
:title="t('New customs agent')"
|
:title="t('New customs agent')"
|
||||||
url-create="CustomsAgents"
|
|
||||||
model="customer"
|
|
||||||
:form-initial-data="initialData"
|
|
||||||
@on-data-saved="onDataSaved($event)"
|
@on-data-saved="onDataSaved($event)"
|
||||||
|
model="customer"
|
||||||
|
url-create="CustomsAgents"
|
||||||
>
|
>
|
||||||
<template #form-inputs="{ data }">
|
<template #form-inputs="{ data }">
|
||||||
<VnRow class="row q-gutter-md q-mb-md">
|
<VnRow class="row q-gutter-md q-mb-md">
|
||||||
|
|
|
@ -58,13 +58,9 @@ const filterClientFindOne = {
|
||||||
|
|
||||||
const initialData = reactive({
|
const initialData = reactive({
|
||||||
amountPaid: $props.totalCredit,
|
amountPaid: $props.totalCredit,
|
||||||
bankFk: null,
|
|
||||||
clientFk: route.params.id,
|
clientFk: route.params.id,
|
||||||
companyFk: $props.companyId,
|
companyFk: $props.companyId,
|
||||||
compensationAccount: null,
|
|
||||||
description: null,
|
|
||||||
email: clientFindOne.value.email,
|
email: clientFindOne.value.email,
|
||||||
payed: null,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
|
|
|
@ -10,9 +10,7 @@ const { t } = useI18n();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const initialData = reactive({
|
const initialData = reactive({});
|
||||||
text: null,
|
|
||||||
});
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
initialData.clientFk = `${route.params.id}`;
|
initialData.clientFk = `${route.params.id}`;
|
||||||
|
|
|
@ -14,9 +14,6 @@ const router = useRouter();
|
||||||
|
|
||||||
const initialData = reactive({
|
const initialData = reactive({
|
||||||
started: '2001-01-01T11:00:00.000Z',
|
started: '2001-01-01T11:00:00.000Z',
|
||||||
finished: null,
|
|
||||||
amount: null,
|
|
||||||
period: null,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
Loading…
Reference in New Issue