diff --git a/src/components/base/BaseNumberInput.vue b/src/components/base/BaseNumberInput.vue new file mode 100644 index 0000000..ac600fb --- /dev/null +++ b/src/components/base/BaseNumberInput.vue @@ -0,0 +1,169 @@ + + + + + + + diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ThermometryForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ThermometryForm.vue index dfac41a..1fa2335 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ThermometryForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ThermometryForm.vue @@ -3,12 +3,11 @@ .thermometry-wrapper.grid.gap-x-20.gap-y-5 .flex.flex-col.gap-y-4.items-start(v-if="isEdit" v-for="(thermometry, key) in protocol[data.key]") span.font-semibold.text-smm {{ data.config.temperature[key].title }} - base-input.w-full( + base-number-input.w-full( v-model="thermometry.temperature", - type="number" - label="Температура" - outlined - text-color="black" + :step="1", + label="Температура", + outlined, shadow-text="º" placeholder="0º" ) @@ -19,7 +18,6 @@ outlined text-color="black" placeholder="Введите диагноз..." - max="40" ) .results-wrapper.flex.flex-col.rounded.w-full.px-4.py-2 .result.flex.w-full.justify-between.items-center.h-9(v-for="result in data.config.results") @@ -54,11 +52,12 @@