This commit is contained in:
Kseninia Mikhaylova 2024-06-20 09:18:50 +03:00
parent 8648e7e4ab
commit a7c0ad75f0
2 changed files with 6 additions and 12 deletions

View File

@ -131,7 +131,7 @@ label {
} }
input { input {
@apply bg-neutral-200 border border-gray-300 text-gray-900 rounded focus:ring-blue-500 focus:border-blue-500 text-lg p-2.5 disabled:cursor-not-allowed invalid:border-pink-500 invalid:text-pink-600 focus:invalid:border-pink-500 focus:invalid:ring-pink-500; @apply bg-neutral-200 border border-gray-300 text-gray-900 rounded focus:ring-blue-500 focus:border-blue-500 text-lg p-2.5 disabled:cursor-not-allowed;
} }
textarea { textarea {

View File

@ -97,11 +97,6 @@ const changeParametres = () => {
form_state.extra_section = 0 form_state.extra_section = 0
} }
form_refs.total_length.value.setCustomValidity('')
if (form_state.extra_section && form_state.extra_section < parametric.length.min) {
form_refs.total_length.value.setCustomValidity('Расчет невозможен')
}
total_length.value = form_state.total_length total_length.value = form_state.total_length
lamelles_count.value = lamelles lamelles_count.value = lamelles
fence_section.value = form_state.length * 0.001 fence_section.value = form_state.length * 0.001
@ -195,10 +190,9 @@ const plurals = {
Забор общей длиной {{ form_state.total_length }}{{ '\xa0' }}м, Забор общей длиной {{ form_state.total_length }}{{ '\xa0' }}м,
{{ section_count }} {{ section_count }}
<Plural :n="section_count" :forms="plurals.section" /> по <Plural :n="section_count" :forms="plurals.section" /> по
{{ parseInt(form_state.length).toFixed(2) }}{{ '\xa0' }}мм<template {{ `${parseInt(form_state.length).toFixed(2)}\xa0мм` }}{{
v-if="form_state.extra_section"> form_state.extra_section ? `и 1 дополнительная секция
и 1 дополнительная секция длиной {{ form_state.extra_section.toFixed(2) }}{{ '\xa0' длиной ${form_state.extra_section.toFixed(2)}\xa0мм` : '' }}
}}мм</template>.
</p> </p>
<p v-if="parametric.length.min <= form_state.total_length * 1000"> <p v-if="parametric.length.min <= form_state.total_length * 1000">
Всего <template v-if="!form_state.remove_pillar"> Всего <template v-if="!form_state.remove_pillar">