diff --git a/components/calcValues.vue b/components/calcValues.vue index 9d08b18..0316223 100644 --- a/components/calcValues.vue +++ b/components/calcValues.vue @@ -9,26 +9,23 @@ const lamelle_color = useState('lamelle_color', () => '1002') const section_count = useState('section_count', () => 1) const extra_section = useState('extra_section', () => 0) -const parametric_state = useState('parametric', () => { - return { - length: { - min: 1000, - max: 2400, - step: 1, - }, - total_length: { - min: 1, - max: undefined, - step: 0.1, - }, - height: { - min: 675, - max: 2400, - step: 115, - } +const parametric = { + length: { + min: 1000, + max: 2400, + step: 1, + }, + total_length: { + min: 1, + max: undefined, + step: 0.1, + }, + height: { + min: 675, + max: 2400, + step: 115, } -}) -const parametric = parametric_state.value +} const form_state = reactive({ length: fence_section.value * 1000, fence_length: 100, @@ -130,17 +127,19 @@ const toggleModal = () => {
-
+
-
-
+
+
+
-
@@ -172,10 +171,32 @@ const toggleModal = () => {
-
- - -
+
+
+

+ Забор общей длиной {{ form_state.total_length }} м, + всего секций {{ section_count }} по {{ form_state.length }}мм + + и 1 дополнительной секцией в {{ form_state.extra_section }}мм + . +

+

+ Всего столбов {{ section_count + ~~(!!form_state.extra_section) + 1 }}. + Всего ламелей {{ section_count * lamelles_count }} по {{ form_state.length }}мм + + и {{ ~~(!!form_state.extra_section) * lamelles_count }} по {{ form_state.extra_section }}мм + +

+

+ Окраска порошковым методом, + ламели: {{ getColorNameFromRal(lamelle_color)?.toLowerCase() }}, + столбы: {{ getColorNameFromRal(pillar_color)?.toLowerCase() }}. +

+

+ Внимание! Дополнительная секция приводит к увеличению стоимости. Рекомендуем вам изменить длину + забора или длину + секции! +