From 6a2c5e87e1d9c43dad62fc660196462d8f0aa22e Mon Sep 17 00:00:00 2001 From: DwCay Date: Tue, 16 May 2023 17:44:36 +0300 Subject: [PATCH] =?UTF-8?q?WIP=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B1=D0=B0=D0=B7=D0=BE=D0=B2=D1=8B=D0=B9=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D1=87=D0=B8=D1=81=D0=BB=D0=BE=D0=B2=D0=BE=D0=B3=D0=BE?= =?UTF-8?q?=20=D0=B8=D0=BD=D0=BF=D1=83=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/base/BaseNumberInput.vue | 169 ++++++++++++++++++ .../Forms/ThermometryForm.vue | 13 +- 2 files changed, 175 insertions(+), 7 deletions(-) create mode 100644 src/components/base/BaseNumberInput.vue 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 @@