total
This commit is contained in:
parent
745444dafc
commit
c472787c8f
|
@ -91,7 +91,6 @@ const roubleSign = new Intl.NumberFormat('ru-RU', {
|
||||||
style: 'currency',
|
style: 'currency',
|
||||||
currency: 'RUB',
|
currency: 'RUB',
|
||||||
});
|
});
|
||||||
const total = computed(() => {
|
|
||||||
const { mortgage, pillar, lamella, rivets, bar, guide } = calculatorData.value
|
const { mortgage, pillar, lamella, rivets, bar, guide } = calculatorData.value
|
||||||
const pillar_count = (section_count.value + 1)
|
const pillar_count = (section_count.value + 1)
|
||||||
const pil = (parseFloat(mortgage) + parseFloat(pillar)) * pillar_count
|
const pil = (parseFloat(mortgage) + parseFloat(pillar)) * pillar_count
|
||||||
|
@ -108,6 +107,7 @@ const total = computed(() => {
|
||||||
const guides = guides_count * parseFloat(guide) * lam_count * 0.115
|
const guides = guides_count * parseFloat(guide) * lam_count * 0.115
|
||||||
|
|
||||||
const total = (!remove_pillar.value ? pil : 0) + lam + guides + top
|
const total = (!remove_pillar.value ? pil : 0) + lam + guides + top
|
||||||
|
const total_txt = computed(() => {
|
||||||
return [
|
return [
|
||||||
!remove_pillar.value && `Столб, ${pillar_count}: (${parseFloat(mortgage)} + ${parseFloat(pillar)}) x ${pillar_count} = ${roubleSign.format(pil)}`,
|
!remove_pillar.value && `Столб, ${pillar_count}: (${parseFloat(mortgage)} + ${parseFloat(pillar)}) x ${pillar_count} = ${roubleSign.format(pil)}`,
|
||||||
`Ламели, ${lam_count}: (${lam_count} x ${length} x ${lamella}) + ${rivets} = ${roubleSign.format(lam)}`,
|
`Ламели, ${lam_count}: (${lam_count} x ${length} x ${lamella}) + ${rivets} = ${roubleSign.format(lam)}`,
|
||||||
|
@ -144,7 +144,7 @@ const total = computed(() => {
|
||||||
Цвет столба: {{ getColorNameFromRal(pillar_color) }}<br />
|
Цвет столба: {{ getColorNameFromRal(pillar_color) }}<br />
|
||||||
Цвет ламелей: {{ getColorNameFromRal(lamelle_color) }}</p>
|
Цвет ламелей: {{ getColorNameFromRal(lamelle_color) }}</p>
|
||||||
<p>
|
<p>
|
||||||
<template v-for="i in total">{{ i }}<br /></template>
|
<template v-for="i in total_txt">{{ i }}<br /></template>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-4">
|
<div class="flex gap-4">
|
||||||
|
|
Loading…
Reference in New Issue