diff --git a/components/calcValues.vue b/components/calcValues.vue index 2890cb2..3c971ec 100644 --- a/components/calcValues.vue +++ b/components/calcValues.vue @@ -8,6 +8,7 @@ const pillar_color = useState('pillar_color', () => '3009') const lamelle_color = useState('lamelle_color', () => '3004') const section_count = useState('section_count', () => 1) const extra_section = useState('extra_section', () => 0) +const total_length = useState('total_length', () => 2000 * 0.001 * 2) const parametric = { length: { @@ -79,6 +80,7 @@ const changeParametres = () => { } else { form_state.extra_section = 0 } + extra_section.value = form_state.extra_section form_refs.total_length.value.setCustomValidity('') if (form_state.extra_section && form_state.extra_section < parametric.length.min) { @@ -90,6 +92,8 @@ const changeParametres = () => { form_state.length = parametric.length.min } }, 300) + + total_length.value = form_state.total_length } } @@ -164,25 +168,26 @@ const toggleModal = () => {
-
+ +

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

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

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

diff --git a/components/modal.vue b/components/modal.vue index 5e12c5f..ef74957 100644 --- a/components/modal.vue +++ b/components/modal.vue @@ -1,5 +1,7 @@