From 364d2a776a0748052382a21810db8b6b261346fc Mon Sep 17 00:00:00 2001 From: DwCay Date: Fri, 26 May 2023 18:10:15 +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=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D1=83=20=D0=B7?= =?UTF-8?q?=D1=83=D0=B1=D0=BD=D0=BE=D0=B9=20=D1=84=D0=BE=D1=80=D0=BC=D1=83?= =?UTF-8?q?=D0=BB=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{ => ToothFormula}/ToothFormulaForm.vue | 20 +- .../Forms/ToothFormula/ToothFormulaTable.vue | 55 ++++ .../Forms/ToothFormula/ToothLowSvg.vue | 81 ++++++ .../MedicalProtocolsInspection.vue | 2 +- .../newMedicalCard/utils/medicalConfig.js | 244 ++++++++++++++++++ tailwind.config.js | 1 + 6 files changed, 395 insertions(+), 8 deletions(-) rename src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/{ => ToothFormula}/ToothFormulaForm.vue (69%) create mode 100644 src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue create mode 100644 src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothLowSvg.vue diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormulaForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaForm.vue similarity index 69% rename from src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormulaForm.vue rename to src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaForm.vue index 1b8b201..489c1be 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormulaForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaForm.vue @@ -1,41 +1,46 @@ + + diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothLowSvg.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothLowSvg.vue new file mode 100644 index 0000000..9869493 --- /dev/null +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothLowSvg.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue index 5982fc2..ec0e610 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue @@ -41,7 +41,7 @@ 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 ToothFormulaForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaForm.vue"; import { protocolForms } from "@/pages/newMedicalCard/utils/medicalConfig.js"; export default { name: "MedicalProtocolsInspection", diff --git a/src/pages/newMedicalCard/utils/medicalConfig.js b/src/pages/newMedicalCard/utils/medicalConfig.js index 5334fc9..8b3faf4 100644 --- a/src/pages/newMedicalCard/utils/medicalConfig.js +++ b/src/pages/newMedicalCard/utils/medicalConfig.js @@ -933,6 +933,250 @@ export const protocolForms = [ component: "ToothFormulaForm", key: "toothFormula", state: "toothFormula", + formulaConfig: [ + { + name: "upper", + rowMap: [ + { + label: "Подвижность", + key: "tooth_mobility", + }, + { + label: "Cостояние зубов", + key: "dental_condition", + }, + { + label: "Верхняя челюсть", + key: "tooth_number", + }, + ], + columns: [ + { + type: "molars", + tooth_number: 18, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "molars", + tooth_number: 17, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "molars", + tooth_number: 16, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "left", + type: "pre-molars", + tooth_number: 15, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "left", + type: "pre-molars", + tooth_number: 14, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "left", + type: "fangs", + tooth_number: 13, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "incisors", + tooth_number: 12, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "incisors", + tooth_number: 11, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "incisors", + tooth_number: 21, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "incisors", + tooth_number: 22, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "right", + type: "fangs", + tooth_number: 23, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "right", + type: "pre-molars", + tooth_number: 24, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "right", + type: "pre-molars", + tooth_number: 25, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "molars", + tooth_number: 26, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "molars", + tooth_number: 27, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "molars", + tooth_number: 28, + dental_condition: "", + tooth_mobility: "", + }, + ], + }, + { + name: "lower", + rowMap: [ + { + label: "Нижняя челюсть", + key: "tooth_number", + }, + { + label: "Cостояние зубов", + key: "dental_condition", + }, + { + label: "Подвижность", + key: "tooth_mobility", + }, + ], + columns: [ + { + type: "molars", + tooth_number: 48, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "molars", + tooth_number: 47, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "molars", + tooth_number: 46, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "left", + type: "pre-molars", + tooth_number: 45, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "left", + type: "pre-molars", + tooth_number: 44, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "left", + type: "fangs", + tooth_number: 43, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "incisors", + tooth_number: 42, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "incisors", + tooth_number: 41, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "incisors", + tooth_number: 31, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "incisors", + tooth_number: 32, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "right", + type: "fangs", + tooth_number: 33, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "right", + type: "pre-molars", + tooth_number: 34, + dental_condition: "", + tooth_mobility: "", + }, + { + position: "right", + type: "pre-molars", + tooth_number: 35, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "molars", + tooth_number: 36, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "molars", + tooth_number: 37, + dental_condition: "", + tooth_mobility: "", + }, + { + type: "molars", + tooth_number: 38, + dental_condition: "", + tooth_mobility: "", + }, + ], + }, + ], }, { title: "План обследования", diff --git a/tailwind.config.js b/tailwind.config.js index 2b01caa..be3f5ea 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -30,6 +30,7 @@ module.exports = { "7xl": ["40px", { lineHeight: "54px" }], }, gap: { + "5px": "5px", "6px": "6px", "7px": "7px", "10px": "10px",