[WIP] Добавил форму зубной формулы
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<template lang="pug">
|
||||
medical-form-wrapper(:title="data.title")
|
||||
.flex.flex-col.gap-y-4
|
||||
.flex.gap-x-7px.rounded.py-7px.px-3.w-fit(:style="{'backgroundColor': isEdit ? none: 'var(--bg-light-grey)'}")
|
||||
q-checkbox.font-medium.text-smm(
|
||||
v-model="protocol[data.key].lacticBite",
|
||||
dense,
|
||||
checked-icon="check_box",
|
||||
unchecked-icon="check_box_outline_blank",
|
||||
:disable="!isEdit",
|
||||
label="Молочный прикус",
|
||||
:color="isEdit ? 'primary' : 'grey'"
|
||||
)
|
||||
template(v-slot:right-corner)
|
||||
.flex.flex-toogle.h-10.p-1.rounded(:style="{'backgroundColor': 'var(--bg-light-grey)'}")
|
||||
q-btn.w-12.h-full.rounded(
|
||||
size="12px",
|
||||
:style="{'backgroundColor': viewToothFormula ? 'var(--bg-aqua-blue)' : none}",
|
||||
@click="()=>{ viewToothFormula=true }",
|
||||
)
|
||||
q-btn.w-12.h-full.rounded(
|
||||
size="12px",
|
||||
:style="{'backgroundColor': !viewToothFormula ? 'var(--bg-aqua-blue)' : none}",
|
||||
@click="()=>{ viewToothFormula=false }",
|
||||
)
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWrapper.vue";
|
||||
import teeth from "@/assets/icons/teeth.svg";
|
||||
import { mapState } from "vuex";
|
||||
|
||||
export default {
|
||||
name: "ToothFormulaForm",
|
||||
components: { MedicalFormWrapper },
|
||||
data() {
|
||||
return {
|
||||
teeth: teeth,
|
||||
isEdit: false,
|
||||
component: false,
|
||||
viewToothFormula: true,
|
||||
};
|
||||
},
|
||||
props: {
|
||||
data: Object,
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
protocol: (state) => state.medical.protocolData,
|
||||
}),
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -41,8 +41,8 @@ import DiseaseForm from "@/pages/newMedicalCard/components/InitialInspectionProt
|
||||
import BaseButton from "@/components/base/BaseButton.vue";
|
||||
import IndexForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/IndexForm.vue";
|
||||
import MainFactorsForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MainFactorsForm.vue";
|
||||
import ToothFormulaForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormulaForm.vue";
|
||||
import { protocolForms } from "@/pages/newMedicalCard/utils/medicalConfig.js";
|
||||
|
||||
export default {
|
||||
name: "MedicalProtocolsInspection",
|
||||
components: {
|
||||
@@ -52,6 +52,7 @@ export default {
|
||||
BaseButton,
|
||||
IndexForm,
|
||||
MainFactorsForm,
|
||||
ToothFormulaForm,
|
||||
},
|
||||
props: { inspection: Boolean, fillInspection: Boolean },
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user