[WIP] Добавил форму изменения состояния зубов

This commit is contained in:
DwCay
2023-05-31 17:47:29 +03:00
parent 89adf5489f
commit c7aedc53d6
8 changed files with 205 additions and 607 deletions

View File

@@ -565,6 +565,27 @@ export const mapEventStatus = {
},
};
export const toothConditions = {
К: "Кариес",
П: "Пульпит",
Пт: "Периодонтит",
Д: "Дефект",
Пл: "Пломба",
ИК: "Искусственная коронка",
ИЗ: "Искусственный зуб",
В: "Вкладка",
И: "Имплантат",
КЗ: "Корень зуба",
О: "Отсутствующий зуб",
};
export const toothMobility = [
{ id: 1, label: "I" },
{ id: 2, label: "II" },
{ id: 3, label: "III" },
{ id: 4, label: "IV" },
];
export const protocolForms = [
{
title: "Жалобы",
@@ -933,26 +954,67 @@ export const protocolForms = [
component: "ToothFormulaForm",
key: "toothFormula",
state: "toothFormula",
toothConfig: {
conditionsForm: {
conditions: {
К: "Кариес",
П: "Пульпит",
Пт: "Периодонтит",
Д: "Дефект",
Пл: "Пломба",
ИК: "Искусственная коронка",
ИЗ: "Искусственный зуб",
В: "Вкладка",
И: "Имплантат",
КЗ: "Корень зуба",
О: "Отсутствующий зуб",
general: {
options: (() => {
let arrayOptions = ["ИЗ", "И", "О", "П"];
return arrayOptions.map((item) => ({
value: item,
label: toothConditions[item],
}));
})(),
label: "Общее",
},
crown: {
options: (() => {
let arrayOptions = ["К", "П", "Д", "Пл"];
return arrayOptions.map((item) => ({
value: item,
label: toothConditions[item],
}));
})(),
label: "Коронка",
partsTooth: {
central: {
label: "Центральная часть",
},
upper: {
label: "Верхняя часть",
},
lower: {
label: "Нижняя часть",
},
left: {
label: "Левая часть",
},
right: {
label: "Правая часть",
},
},
},
root: {
options: (() => {
let arrayOptions = ["К", "П", "Д", "Пл"];
return arrayOptions.map((item) => ({
value: item,
label: toothConditions[item],
}));
})(),
label: "Корень",
partsTooth: {
central: {
label: "Центральная часть",
},
left: {
label: "Левая часть",
},
right: {
label: "Правая часть",
},
},
},
},
mobility: [
{ id: 1, label: "I" },
{ id: 2, label: "II" },
{ id: 3, label: "III" },
{ id: 4, label: "IV" },
],
},
formulaConfig: [
{