From 37377e74106668807f268bda8f6d045b65c01298 Mon Sep 17 00:00:00 2001 From: DwCay Date: Fri, 9 Jun 2023 20:31:06 +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=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B8=D1=81=D0=BA=D1=83=D1=81=D1=81=D1=82=D0=B2?= =?UTF-8?q?=D0=B5=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=B7=D1=83=D0=B1=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ToothFormula/DentalConditionForm.vue | 17 + .../Forms/ToothFormula/DetailedToothSvg.vue | 442 ++++++++++++------ .../Forms/ToothFormula/ToothFormulaForm.vue | 11 +- .../Forms/ToothFormula/ToothFormulaTable.vue | 18 +- .../newMedicalCard/utils/medicalConfig.js | 37 ++ 5 files changed, 368 insertions(+), 157 deletions(-) diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/DentalConditionForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/DentalConditionForm.vue index 8d967ed..d1bde58 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/DentalConditionForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/DentalConditionForm.vue @@ -1,6 +1,21 @@ @@ -66,7 +66,7 @@ export default { filtredTooths: [], isEdit: false, component: false, - isShowSecondView: true, + isShowSecondView: false, }; }, props: { @@ -81,6 +81,7 @@ export default { methods: { openEdit() { this.isEdit = true; + this.isShowSecondView = false; }, cancelEdit() { this.isEdit = false; diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue index 2739ccd..7fb60de 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue @@ -3,7 +3,7 @@ :class="{'rounded-t': config.name === 'upper', 'rounded-b': config.name === 'lower','border-botton-none': config.name === 'upper',}", ) .row.flex.w-full( - v-if="viewType" + v-if="!viewType" v-for="row in config.rowMap", :key="`${config.name}_${row.key}`", :style="{'height': heightRow[row.key]}" @@ -27,17 +27,19 @@ :style="{'width': '6.25%', 'minWidth': '55px'}", ) span.text-smm.font-medium {{cell.tooth_number}} - detailed-tooth-svg( - part-tooth="crown", - :data="data.formula[cell.tooth_number].dental_condition", - :is-edit="isEdit" - ) + .flex.items-center.justify-center( + :style="{'width': '35px', 'height': '35px'}" + ) + detailed-tooth-svg( + part-tooth="crown", + :tooth-config="cell", + :view="data.formula[cell.tooth_number].dental_condition.general === 'ИЗ' ? 'artificial': 'native'", + ) detailed-tooth-svg( part-tooth="general", + :view="data.formula[cell.tooth_number].dental_condition.general === 'ИЗ' ? 'artificial': 'native'", :tooth-config="cell", :jaw-position="config.name", - :data="data.formula[cell.tooth_number].dental_condition", - :is-edit="isEdit" ) diff --git a/src/pages/newMedicalCard/utils/medicalConfig.js b/src/pages/newMedicalCard/utils/medicalConfig.js index 21c2ee7..0ba52ac 100644 --- a/src/pages/newMedicalCard/utils/medicalConfig.js +++ b/src/pages/newMedicalCard/utils/medicalConfig.js @@ -1309,3 +1309,40 @@ export const thermometryResultsMap = [ colorWarning: "var(--border-red-color)", }, ]; + +export const sizesDetailedSvg = { + general: { + native: { + molars: { + width: 37, + height: 56, + }, + "pre-molars": { + width: 38, + height: 59, + }, + incisors: { + width: 43, + height: 63, + }, + fangs: { + width: 38, + height: 59, + }, + }, + artificial: { + width: 43, + height: 63, + }, + }, + crown: { + native: { + width: 41, + height: 40, + }, + artificial: { + width: 20, + height: 20, + }, + }, +};