7837-testToMaster_2432 #592
|
@ -7,7 +7,7 @@ defineProps({
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div :class="$q.screen.gt.md ? 'q-pb-lg' : 'q-pb-md'">
|
<div :class="$q.screen.gt.md ? 'q-pb-lg' : 'q-pb-md'">
|
||||||
<div class="header-link">
|
<div class="header-link" :style="{ cursor: url ? 'pointer' : 'default' }">
|
||||||
<a :href="url" :class="url ? 'link' : 'color-vn-text'">
|
<a :href="url" :class="url ? 'link' : 'color-vn-text'">
|
||||||
{{ text }}
|
{{ text }}
|
||||||
<QIcon v-if="url" :name="icon" />
|
<QIcon v-if="url" :name="icon" />
|
||||||
|
|
|
@ -132,7 +132,11 @@ onBeforeMount(async () => {
|
||||||
onBeforeRouteUpdate(async (to, from) => {
|
onBeforeRouteUpdate(async (to, from) => {
|
||||||
invoiceInCorrection.correcting.length = 0;
|
invoiceInCorrection.correcting.length = 0;
|
||||||
invoiceInCorrection.corrected = null;
|
invoiceInCorrection.corrected = null;
|
||||||
if (to.params.id !== from.params.id) await setInvoiceCorrection(to.params.id);
|
if (to.params.id !== from.params.id) {
|
||||||
|
await setInvoiceCorrection(to.params.id);
|
||||||
|
const { data } = await axios.get(`InvoiceIns/${to.params.id}/getTotals`);
|
||||||
|
totalAmount.value = data.totalDueDay;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
async function setInvoiceCorrection(id) {
|
async function setInvoiceCorrection(id) {
|
||||||
|
|
|
@ -287,10 +287,7 @@ const getLink = (param) => `#/invoice-in/${entityId.value}/${param}`;
|
||||||
</QCard>
|
</QCard>
|
||||||
<QCard class="vn-one">
|
<QCard class="vn-one">
|
||||||
<QCardSection class="q-pa-none">
|
<QCardSection class="q-pa-none">
|
||||||
<VnTitle
|
<VnTitle :text="t('invoiceIn.pageTitles.basicData')" />
|
||||||
:url="getLink('basic-data')"
|
|
||||||
:text="t('invoiceIn.pageTitles.basicData')"
|
|
||||||
/>
|
|
||||||
</QCardSection>
|
</QCardSection>
|
||||||
<QCardSection class="q-pa-none">
|
<QCardSection class="q-pa-none">
|
||||||
<VnLv
|
<VnLv
|
||||||
|
@ -423,6 +420,9 @@ const getLink = (param) => `#/invoice-in/${entityId.value}/${param}`;
|
||||||
.bg {
|
.bg {
|
||||||
background-color: var(--vn-accent-color);
|
background-color: var(--vn-accent-color);
|
||||||
}
|
}
|
||||||
|
.q-chip {
|
||||||
|
color: var(--vn-text-color);
|
||||||
|
}
|
||||||
@media (min-width: $breakpoint-md) {
|
@media (min-width: $breakpoint-md) {
|
||||||
.summaryBody {
|
.summaryBody {
|
||||||
.vat {
|
.vat {
|
||||||
|
|
Loading…
Reference in New Issue