diff --git a/components/calcValues.vue b/components/calcValues.vue index d7af960..782368d 100644 --- a/components/calcValues.vue +++ b/components/calcValues.vue @@ -51,12 +51,7 @@ const form_refs = { } const changeParametres = () => { - console.log(form_state.total_length * 1000, copy_form_state.total_length * 1000) - - if ((form_state.total_length * 1000) <= (parametric.length.min + parametric.height.step)) { - form_state.total_length = (parametric.length.min + parametric.height.step) / 1000 - // return - } + // console.log(form_state.total_length * 1000, copy_form_state.total_length * 1000) const lamelles = Math.floor(form_state.height / parametric.height.step) @@ -79,6 +74,7 @@ const changeParametres = () => { let { fence_length, total_length_mm, auto_length, length, full_sections } = form_state length = parseFloat(length.toString()) + if (total_length_mm < parametric.length.min) total_length_mm = parametric.length.min if (auto_length) { let w = parametric.length.min @@ -152,13 +148,13 @@ const goal = (target: string, params: object) => {
+ Длина забора слишком мала +
Внимание! Дополнительная секция приводит к увеличению стоимости. Рекомендуем вам изменить длину забора или длину секции!