[WIP] Добавил отображение отсутствующих зубов

This commit is contained in:
DwCay
2023-06-15 18:28:26 +03:00
parent 7006bc344b
commit 1304a1d425
8 changed files with 395 additions and 279 deletions

View File

@@ -7,7 +7,7 @@
:tooth-config="cellConfig", :tooth-config="cellConfig",
:jaw-position="jawPosition", :jaw-position="jawPosition",
:oversized="20", :oversized="20",
:view="data.general === 'ИЗ' ? 'artificial': 'native'", :view="data.general === 'И' ? 'artificial': 'native'",
:data="data", :data="data",
editable editable
) )
@@ -15,7 +15,7 @@
part-tooth="crown", part-tooth="crown",
:click-part="clickPart", :click-part="clickPart",
:oversized="10", :oversized="10",
:view="data.general === 'ИЗ' ? 'artificial': 'native'", :view="data.general === 'И' ? 'artificial': 'native'",
:data="data", :data="data",
editable editable
) )

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
svg.flex.items-center( svg(
v-if="partTooth === 'crown'", v-if="partTooth === 'crown'",
:width="getSizeSvg.width", :width="getSizeSvg.width",
:height="getSizeSvg.height", :height="getSizeSvg.height",
@@ -19,6 +19,27 @@
r="7.5", r="7.5",
fill="#D3D4DC" fill="#D3D4DC"
) )
g(v-else)
g(v-if="data.general === 'О'")
path(
d="M31.1435 31.1174C29.5183 32.7413 27.5889 34.0294 25.4654 34.9082C23.342 35.787 21.066 36.2394 18.7676 36.2394C16.4691 36.2394 14.1932 35.787 12.0697 34.9082C9.94627 34.0294 8.01687 32.7413 6.39168 31.1174C4.7665 29.4936 3.47735 27.5659 2.59783 25.4443C1.71831 23.3227 1.26562 21.0488 1.26562 18.7525C1.26562 16.4561 1.7183 14.1823 2.59783 12.0607C3.47735 9.93912 4.7665 8.01138 6.39169 6.38756C8.01687 4.76373 9.94628 3.47562 12.0697 2.59679C14.1932 1.71796 16.4691 1.26562 18.7676 1.26562C21.066 1.26563 23.342 1.71796 25.4654 2.59679C27.5889 3.47562 29.5183 4.76373 31.1435 6.38756C32.7687 8.01138 34.0578 9.93912 34.9374 12.0607C35.8169 14.1823 36.2696 16.4561 36.2696 18.7525C36.2696 21.0488 35.8169 23.3227 34.9374 25.4443C34.0578 27.5659 32.7687 29.4936 31.1435 31.1174Z",
stroke="#9294A7"
)
g(v-else-if="['ИЗ','В','ИК'].includes(data.general)")
path(d="M31.4796 31.4713C29.8079 33.1415 27.8234 34.4664 25.6393 35.3704C23.4552 36.2743 21.1143 36.7395 18.7503 36.7395C16.3862 36.7395 14.0453 36.2743 11.8612 35.3704C9.6771 34.4665 7.69258 33.1415 6.02095 31.4713C4.34931 29.8011 3.02329 27.8182 2.11861 25.636C1.21393 23.4537 0.748291 21.1147 0.748291 18.7527C0.748291 16.3906 1.21393 14.0517 2.11861 11.8694C3.02329 9.68713 4.34931 7.70427 6.02095 6.03404C7.69258 4.3638 9.67711 3.0389 11.8612 2.13498C14.0453 1.23105 16.3862 0.765808 18.7503 0.765808C21.1143 0.765809 23.4552 1.23105 25.6393 2.13498C27.8234 3.0389 29.8079 4.3638 31.4796 6.03404C33.1512 7.70427 34.4772 9.68713 35.3819 11.8694C36.2866 14.0517 36.7522 16.3906 36.7522 18.7527C36.7522 21.1147 36.2866 23.4537 35.3819 25.636C34.4772 27.8182 33.1512 29.8011 31.4796 31.4713Z" fill="#252850")
mask(id="mask0_4460_279697" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="37" height="37")
path(d="M31.4796 31.4711C29.8079 33.1414 27.8234 34.4663 25.6393 35.3702C23.4552 36.2741 21.1143 36.7394 18.7503 36.7394C16.3862 36.7394 14.0453 36.2741 11.8612 35.3702C9.6771 34.4663 7.69258 33.1414 6.02095 31.4711C4.34931 29.8009 3.02329 27.818 2.11861 25.6358C1.21393 23.4535 0.748291 21.1146 0.748291 18.7525C0.748291 16.3904 1.21393 14.0515 2.11861 11.8692C3.02329 9.68695 4.34931 7.70409 6.02095 6.03386C7.69258 4.36362 9.67711 3.03872 11.8612 2.13479C14.0453 1.23087 16.3862 0.765625 18.7503 0.765625C21.1143 0.765625 23.4552 1.23087 25.6393 2.13479C27.8234 3.03872 29.8079 4.36362 31.4796 6.03386C33.1512 7.70409 34.4772 9.68695 35.3819 11.8692C36.2866 14.0515 36.7522 16.3904 36.7522 18.7525C36.7522 21.1146 36.2866 23.4535 35.3819 25.6358C34.4772 27.818 33.1512 29.8009 31.4796 31.4711Z" fill="#252850")
g(mask="url(#mask0_4460_279697)")
rect(x="20.9553" y="48.1551" width="2" height="49" transform="rotate(-150 20.9553 48.1551)" fill="white" fill-opacity="0.3")
rect(x="17.9912" y="45.2891" width="2" height="48" transform="rotate(-150 17.9912 45.2891)" fill="white" fill-opacity="0.3")
rect(x="14.0271" y="44.1551" width="2" height="49" transform="rotate(-150 14.0271 44.1551)" fill="white" fill-opacity="0.3")
rect(x="11.063" y="41.2891" width="2" height="48" transform="rotate(-150 11.063 41.2891)" fill="white" fill-opacity="0.3")
rect(x="7.59888" y="39.2891" width="2" height="48" transform="rotate(-150 7.59888 39.2891)" fill="white" fill-opacity="0.3")
rect(x="4.13477" y="37.2891" width="2" height="48" transform="rotate(-150 4.13477 37.2891)" fill="white" fill-opacity="0.3")
rect(x="0.670654" y="35.2891" width="2" height="48" transform="rotate(-150 0.670654 35.2891)" fill="white" fill-opacity="0.3")
rect(x="-2.79346" y="33.2891" width="2" height="48" transform="rotate(-150 -2.79346 33.2891)" fill="white" fill-opacity="0.3")
rect(x="-6.25757" y="31.2891" width="2" height="48" transform="rotate(-150 -6.25757 31.2891)" fill="white" fill-opacity="0.3")
path(d="M31.1262 31.1174C29.501 32.7413 27.5716 34.0294 25.4481 34.9082C23.3246 35.787 21.0487 36.2394 18.7503 36.2394C16.4518 36.2394 14.1759 35.787 12.0524 34.9082C9.92894 34.0294 7.99954 32.7413 6.37435 31.1174C4.74916 29.4936 3.46001 27.5659 2.58049 25.4443C1.70097 23.3227 1.24829 21.0488 1.24829 18.7525C1.24829 16.4561 1.70097 14.1823 2.58049 12.0607C3.46001 9.93912 4.74916 8.01138 6.37435 6.38756C7.99954 4.76373 9.92894 3.47562 12.0524 2.59679C14.1759 1.71796 16.4518 1.26562 18.7503 1.26562C21.0487 1.26563 23.3246 1.71796 25.4481 2.59679C27.5716 3.47562 29.501 4.76373 31.1262 6.38756C32.7514 8.01138 34.0405 9.93912 34.92 12.0607C35.7995 14.1823 36.2522 16.4561 36.2522 18.7525C36.2522 21.0488 35.7995 23.3227 34.92 25.4443C34.0405 27.5659 32.7514 29.4936 31.1262 31.1174Z" stroke="#252850")
g(v-else) g(v-else)
g g
path( path(
@@ -153,11 +174,18 @@ export default {
if (this.partTooth === "general" && this.view === "native") { if (this.partTooth === "general" && this.view === "native") {
size = size[this.toothConfig?.type]; size = size[this.toothConfig?.type];
} }
return { let resultSize = {
width: `${size.width + this.oversized}`, width: size.width + this.oversized,
height: `${size.height + this.oversized}`, height: size.height + this.oversized,
viewBox: `0 0 ${size.width} ${size.height}`, viewBox: `0 0 ${size.width} ${size.height}`,
}; };
if (
this.partTooth === "general" &&
["ИК", "ИЗ"].includes(this.data.general)
) {
resultSize.width += 20;
}
return resultSize;
}, },
}, },
}; };

View File

@@ -34,10 +34,11 @@
part-tooth="crown", part-tooth="crown",
:tooth-config="cell", :tooth-config="cell",
:data="data.formula[cell.tooth_number].dental_condition" :data="data.formula[cell.tooth_number].dental_condition"
:view="data.formula[cell.tooth_number].dental_condition.general === 'И' ? 'artificial': 'native'",
) )
detailed-tooth-svg( detailed-tooth-svg(
part-tooth="general", part-tooth="general",
:view="data.formula[cell.tooth_number].dental_condition.general === 'ИЗ' ? 'artificial': 'native'", :view="data.formula[cell.tooth_number].dental_condition.general === 'И' ? 'artificial': 'native'",
:tooth-config="cell", :tooth-config="cell",
:jaw-position="config.name", :jaw-position="config.name",
:data="data.formula[cell.tooth_number].dental_condition" :data="data.formula[cell.tooth_number].dental_condition"

View File

@@ -43,6 +43,28 @@
fill="#D3D4DC", fill="#D3D4DC",
stroke="#252850" stroke="#252850"
) )
g(v-else)
g(v-if="data.general === 'О'")
mask(
id="path-1-inside-1_4460_281688",
fill="white"
)
path(
fill-rule="evenodd",
clip-rule="evenodd",
d="M4.87696 24.081C4.11687 22.5765 3.70294 20.9772 3.70294 19.3594C3.70294 10.9652 2.90905 6.78006 4.64197 4.69424C6.43147 2.54031 10.9155 2.625 21.7507 2.625C32.5846 2.625 37.0685 2.45567 38.8582 4.5685C40.5917 6.61501 39.7973 10.8027 39.7973 19.3594C39.7973 20.9776 39.3832 22.5772 38.6229 24.082C37.166 36.0398 27.6466 60.7031 21.75 60.7031C15.8532 60.7031 6.33345 36.0384 4.87696 24.081Z"
)
path(
fill-rule="evenodd",
clip-rule="evenodd",
d="M4.87696 24.081C4.11687 22.5765 3.70294 20.9772 3.70294 19.3594C3.70294 10.9652 2.90905 6.78006 4.64197 4.69424C6.43147 2.54031 10.9155 2.625 21.7507 2.625C32.5846 2.625 37.0685 2.45567 38.8582 4.5685C40.5917 6.61501 39.7973 10.8027 39.7973 19.3594C39.7973 20.9776 39.3832 22.5772 38.6229 24.082C37.166 36.0398 27.6466 60.7031 21.75 60.7031C15.8532 60.7031 6.33345 36.0384 4.87696 24.081Z",
fill="white"
)
path(
d="M4.87701 24.081L5.76956 23.63L5.8485 23.7863L5.86967 23.96L4.87701 24.081ZM4.64202 4.69424L5.41119 5.33328H5.41119L4.64202 4.69424ZM38.8582 4.5685L39.6213 3.92216L38.8582 4.5685ZM38.623 24.082L37.6303 23.961L37.6515 23.7872L37.7304 23.631L38.623 24.082ZM4.70298 19.3594C4.70298 20.8042 5.07237 22.25 5.76956 23.63L3.98445 24.5319C3.16147 22.9029 2.70298 21.1502 2.70298 19.3594H4.70298ZM5.41119 5.33328C4.79693 6.07263 4.54091 7.29491 4.52263 9.66886C4.51374 10.8236 4.55795 12.1756 4.60558 13.7905C4.65298 15.3977 4.70298 17.2453 4.70298 19.3594H2.70298C2.70298 17.2763 2.65375 15.453 2.60645 13.8494C2.55938 12.2535 2.51343 10.855 2.52269 9.65346C2.54069 7.31485 2.75419 5.40167 3.87284 4.0552L5.41119 5.33328ZM21.7507 3.625C16.3043 3.625 12.5364 3.605 9.89575 3.8477C7.21224 4.09434 6.02501 4.59446 5.41119 5.33328L3.87284 4.0552C5.04852 2.6401 6.99804 2.10559 9.71271 1.85609C12.4702 1.60266 16.362 1.625 21.7507 1.625V3.625ZM38.0952 5.21483C37.4875 4.49737 36.3072 4.02236 33.6142 3.80108C30.9685 3.58369 27.2004 3.625 21.7507 3.625V1.625C27.1349 1.625 31.0258 1.58165 33.778 1.8078C36.4829 2.03006 38.4394 2.52679 39.6213 3.92216L38.0952 5.21483ZM38.7974 19.3594C38.7974 17.205 38.8474 15.3269 38.8948 13.6971C38.9425 12.0598 38.9867 10.6933 38.9779 9.53025C38.9596 7.13581 38.702 5.93121 38.0952 5.21483L39.6213 3.92216C40.748 5.2523 40.9599 7.16479 40.9778 9.515C40.987 10.7243 40.9411 12.137 40.894 13.7553C40.8466 15.3813 40.7974 17.2354 40.7974 19.3594H38.7974ZM37.7304 23.631C38.4279 22.2507 38.7974 20.8046 38.7974 19.3594H40.7974C40.7974 21.1506 40.3387 22.9037 39.5155 24.5329L37.7304 23.631ZM39.6156 24.2029C38.8719 30.3075 36.0918 39.5585 32.7699 47.2723C31.1075 51.1324 29.2883 54.6577 27.4892 57.235C26.5911 58.5216 25.6727 59.6089 24.7529 60.3845C23.8489 61.1468 22.8303 61.7031 21.75 61.7031V59.7031C22.1439 59.7031 22.7127 59.4887 23.4636 58.8555C24.1988 58.2357 25.0029 57.3027 25.8492 56.0903C27.539 53.6695 29.2963 50.2816 30.933 46.4812C34.2091 38.8738 36.9172 29.8143 37.6303 23.961L39.6156 24.2029ZM21.75 61.7031C20.6697 61.7031 19.6511 61.1468 18.7471 60.3844C17.8273 59.6088 16.9089 58.5215 16.0108 57.2348C14.2116 54.6573 12.3924 51.1319 10.73 47.2716C7.40797 39.5576 4.6279 30.3063 3.88434 24.2019L5.86967 23.96C6.5826 29.8131 9.29066 38.8729 12.5669 46.4806C14.2036 50.2811 15.9609 53.6692 17.6507 56.0901C18.4971 57.3025 19.3013 58.2356 20.0364 58.8555C20.7873 59.4887 21.3562 59.7031 21.75 59.7031V61.7031Z",
fill="#9294A7",
mask="url(#path-1-inside-1_4460_281688)"
)
g(v-else) g(v-else)
path( path(
d="M37.8045 21.8282C37.7267 24.3241 37.089 27.8166 36.0628 31.7134C34.9686 35.8679 33.4425 40.4466 31.7173 44.7036C29.9906 48.9641 28.072 52.8836 26.1978 55.7292C25.2598 57.1533 24.3453 58.2893 23.4856 59.0636C22.615 59.8478 21.8654 60.2031 21.25 60.2031C20.6346 60.2031 19.885 59.8478 19.0144 59.0636C18.1547 58.2892 17.2402 57.1533 16.3022 55.7291C14.428 52.8836 12.5094 48.9641 10.7827 44.7036C9.05748 40.4465 7.53135 35.8678 6.43725 31.7133C5.41102 27.8165 4.77328 24.3241 4.69554 21.8282L5.52833 21.8282L9.18497 21.8284L21.25 21.8286L33.315 21.8284L36.9717 21.8282L37.8045 21.8282Z", d="M37.8045 21.8282C37.7267 24.3241 37.089 27.8166 36.0628 31.7134C34.9686 35.8679 33.4425 40.4466 31.7173 44.7036C29.9906 48.9641 28.072 52.8836 26.1978 55.7292C25.2598 57.1533 24.3453 58.2893 23.4856 59.0636C22.615 59.8478 21.8654 60.2031 21.25 60.2031C20.6346 60.2031 19.885 59.8478 19.0144 59.0636C18.1547 58.2892 17.2402 57.1533 16.3022 55.7291C14.428 52.8836 12.5094 48.9641 10.7827 44.7036C9.05748 40.4465 7.53135 35.8678 6.43725 31.7133C5.41102 27.8165 4.77328 24.3241 4.69554 21.8282L5.52833 21.8282L9.18497 21.8284L21.25 21.8286L33.315 21.8284L36.9717 21.8282L37.8045 21.8282Z",

View File

@@ -43,6 +43,23 @@
fill="#D3D4DC", fill="#D3D4DC",
stroke="#252850" stroke="#252850"
) )
g(v-else)
g(v-if="data.general === 'О'")
path(
d="M36.7806 11.7305C37.2939 24.8374 36.3406 55.1414 33.041 55.1426C28.0636 55.1444 31.0617 27.6442 26.0023 27.6424C20.8481 27.6406 22.9227 41.5053 19.1831 41.5053C15.4436 41.5053 17.5178 27.6372 12.3637 27.6389C7.3043 27.6407 10.302 55.1426 5.32454 55.1408C2.02509 55.1396 1.07175 24.8384 1.58487 11.7305H19.1827H36.7806Z",
fill="white"
)
path(
d="M1.585 11.7287C1.07173 24.8357 2.02495 55.1396 5.32454 55.1408M5.32454 55.1408C10.302 55.1426 7.3043 27.6407 12.3637 27.6389C17.5178 27.6372 15.4436 41.5053 19.1831 41.5053C22.9227 41.5053 20.8481 27.6406 26.0023 27.6424C31.0617 27.6442 28.0636 55.1444 33.041 55.1426C36.3406 55.1414 37.2939 24.8374 36.7806 11.7305H19.1827H1.58487C1.07175 24.8384 2.02509 55.1396 5.32454 55.1408Z",
stroke="#9294A7",
stroke-linecap="square"
)
path(
d="M19.5714 4.25231L19.1827 4.73265L18.7941 4.25231C17.0099 2.04738 14.2835 0.63904 11.2278 0.63904C5.85529 0.63904 1.5 4.9944 1.5 10.367V13.5491C1.5 15.8375 3.32085 18.0367 6.55365 19.6935C9.75995 21.3368 14.2242 22.3679 19.1827 22.3679C24.1412 22.3679 28.6055 21.3368 31.8118 19.6935C35.0446 18.0367 36.8655 15.8375 36.8655 13.5491V10.367C36.8655 4.9944 32.5102 0.63904 27.1377 0.63904C24.082 0.63904 21.3556 2.04738 19.5714 4.25231Z",
fill="white",
stroke="#9294A7"
)
rect(x="1.9" y="12.5" width="34" height="11.418" fill="white")
g(v-else) g(v-else)
path( path(
d="M36.2801 11.7305C36.7934 24.8374 35.8401 55.1414 32.5406 55.1426C27.5631 55.1444 30.5612 27.6442 25.5018 27.6424C20.3477 27.6406 22.4222 41.5053 18.6826 41.5053C14.9431 41.5053 17.0173 27.6372 11.8632 27.6389C6.80382 27.6407 9.80148 55.1426 4.82406 55.1408C1.5246 55.1396 0.571265 24.8384 1.08438 11.7305H18.6822H36.2801Z", d="M36.2801 11.7305C36.7934 24.8374 35.8401 55.1414 32.5406 55.1426C27.5631 55.1444 30.5612 27.6442 25.5018 27.6424C20.3477 27.6406 22.4222 41.5053 18.6826 41.5053C14.9431 41.5053 17.0173 27.6372 11.8632 27.6389C6.80382 27.6407 9.80148 55.1426 4.82406 55.1408C1.5246 55.1396 0.571265 24.8384 1.08438 11.7305H18.6822H36.2801Z",
@@ -53,6 +70,40 @@
stroke="#252850", stroke="#252850",
stroke-linecap="square" stroke-linecap="square"
) )
g(v-if="['ИЗ','ИК'].includes(data.general)" transform="translate(-9 -4)")
rect(y="14" width="56" height="4" rx="2" fill="#252850")
mask(id="mask0_4460_278655" style="mask-type:alpha" maskUnits="userSpaceOnUse" y="14" width="56" height="4")
rect(y="14" width="56" height="4" rx="2" fill="#252850")
g(mask="url(#mask0_4460_278655)")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 9.42188 43.8603)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 12.8855 41.8605)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 16.3503 39.8605)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 19.8135 37.8589)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 23.2771 35.8591)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 26.7419 33.859)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 30.2056 31.8593)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 33.6702 29.8592)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 37.1333 27.8577)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 40.5974 25.8577)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 44.0615 23.8577)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 47.5254 21.8577)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 50.9895 19.8577)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 54.4536 17.8577)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 57.9177 15.8577)" fill="white" fill-opacity="0.3")
path(d="M28.5714 8.25231L28.1827 8.73265L27.7941 8.25231C26.0099 6.04738 23.2835 4.63904 20.2278 4.63904C14.8553 4.63904 10.5 8.9944 10.5 14.367V17.5491C10.5 19.8375 12.3208 22.0367 15.5537 23.6935C18.76 25.3368 23.2242 26.3679 28.1827 26.3679C33.1412 26.3679 37.6055 25.3368 40.8118 23.6935C44.0446 22.0367 45.8655 19.8375 45.8655 17.5491V14.367C45.8655 8.9944 41.5102 4.63904 36.1377 4.63904C33.082 4.63904 30.3556 6.04738 28.5714 8.25231Z" fill="#252850" stroke="#252850")
mask(id="mask1_4460_278655" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="11" y="5" width="35" height="21")
path(d="M28.9601 8.56612L28.1827 9.52681L27.4054 8.56612C25.712 6.47347 23.1262 5.13834 20.2278 5.13834C15.1314 5.13834 11 9.26983 11 14.3663V17.5484C11 19.5518 12.6065 21.6205 15.7817 23.2478C18.9039 24.848 23.2868 25.8672 28.1827 25.8672C33.0787 25.8672 37.4616 24.848 40.5838 23.2478C43.759 21.6205 45.3655 19.5518 45.3655 17.5484V14.3663C45.3655 9.26983 41.234 5.13834 36.1377 5.13834C33.2393 5.13834 30.6535 6.47347 28.9601 8.56612Z" fill="#252850")
g(mask="url(#mask1_4460_278655)")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 21.2781 37.3571)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 24.7417 35.3573)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 28.2065 33.3573)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 31.6697 31.3556)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 35.1333 29.3558)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 38.5981 27.3558)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 42.0618 25.356)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 45.5264 23.356)" fill="white" fill-opacity="0.3")
rect(width="2" height="32" transform="matrix(0.866025 -0.5 -0.5 -0.866025 48.9902 21.3562)" fill="white" fill-opacity="0.3")
g(v-else)
path( path(
d="M19.0714 4.25161L18.6827 4.73195L18.2941 4.25161C16.5099 2.04667 13.7835 0.638338 10.7278 0.638338C5.35529 0.638338 1 4.9937 1 10.3663V13.5484C1 15.8368 2.82085 18.036 6.05365 19.6928C9.25995 21.3361 13.7242 22.3672 18.6827 22.3672C23.6412 22.3672 28.1055 21.3361 31.3118 19.6928C34.5446 18.036 36.3655 15.8368 36.3655 13.5484V10.3663C36.3655 4.9937 32.0102 0.638338 26.6377 0.638338C23.582 0.638338 20.8556 2.04667 19.0714 4.25161Z", d="M19.0714 4.25161L18.6827 4.73195L18.2941 4.25161C16.5099 2.04667 13.7835 0.638338 10.7278 0.638338C5.35529 0.638338 1 4.9937 1 10.3663V13.5484C1 15.8368 2.82085 18.036 6.05365 19.6928C9.25995 21.3361 13.7242 22.3672 18.6827 22.3672C23.6412 22.3672 28.1055 21.3361 31.3118 19.6928C34.5446 18.036 36.3655 15.8368 36.3655 13.5484V10.3663C36.3655 4.9937 32.0102 0.638338 26.6377 0.638338C23.582 0.638338 20.8556 2.04667 19.0714 4.25161Z",
fill="white", fill="white",
@@ -134,14 +185,6 @@ export default {
editable: Boolean, editable: Boolean,
data: Object, data: Object,
}, },
// computed: {
// getDefectsCrown() {
// return this.data
// .filter((el) => el.type === "crown")
// .map((el) => el.value)
// .flat();
// },
// },
}; };
</script> </script>

View File

@@ -43,6 +43,28 @@
fill="#D3D4DC", fill="#D3D4DC",
stroke="#252850" stroke="#252850"
) )
g(v-else)
g(v-if="data.general === 'О'")
mask(
id="path-1-inside-1_4460_280116",
fill="white"
)
path(
fill-rule="evenodd",
clip-rule="evenodd",
d="M18.75 58.7031C25.6378 58.7031 37.1156 29.6872 37.125 19.3408C37.125 19.3365 37.125 19.3323 37.125 19.328C37.125 12.2605 25.6406 0.624889 18.75 0.624889C11.8594 0.624889 0.375 12.2605 0.375 19.328C0.375 29.6633 11.8594 58.7031 18.75 58.7031Z"
)
path(
fill-rule="evenodd",
clip-rule="evenodd",
d="M18.75 58.7031C25.6378 58.7031 37.1156 29.6872 37.125 19.3408C37.125 19.3365 37.125 19.3323 37.125 19.328C37.125 12.2605 25.6406 0.624889 18.75 0.624889C11.8594 0.624889 0.375 12.2605 0.375 19.328C0.375 29.6633 11.8594 58.7031 18.75 58.7031Z",
fill="white"
)
path(
d="M37.125 19.3408L36.125 19.3399V19.339L37.125 19.3408ZM38.125 19.3417C38.1225 22.0694 37.3723 25.9301 36.1805 30.1291C34.9827 34.3495 33.3164 38.9889 31.4334 43.302C29.5533 47.6082 27.441 51.6269 25.3411 54.5864C24.2927 56.064 23.2225 57.3134 22.1582 58.2033C21.1112 59.0787 19.954 59.7031 18.75 59.7031V57.7031C19.2679 57.7031 19.9761 57.4208 20.8753 56.669C21.7571 55.9317 22.7136 54.8333 23.71 53.4291C25.6997 50.6247 27.7488 46.7428 29.6004 42.5017C31.449 38.2675 33.0844 33.7129 34.2565 29.583C35.4347 25.4316 36.1228 21.7853 36.125 19.3399L38.125 19.3417ZM36.125 19.339C36.125 19.3353 36.125 19.3317 36.125 19.328H38.125C38.125 19.3329 38.125 19.3377 38.125 19.3426L36.125 19.339ZM36.125 19.328C36.125 17.8074 35.4975 15.9319 34.3534 13.918C33.2192 11.9215 31.6249 9.87289 29.8088 8.02759C27.9925 6.18216 25.9789 4.56501 24.0217 3.4157C22.0456 2.25529 20.2175 1.62489 18.75 1.62489V-0.375111C20.7278 -0.375111 22.9192 0.448936 25.0345 1.69107C27.1686 2.94429 29.318 4.67776 31.2342 6.62468C33.1505 8.57172 34.8579 10.7572 36.0924 12.9301C37.3169 15.0856 38.125 17.3149 38.125 19.328H36.125ZM18.75 1.62489C17.2825 1.62489 15.4544 2.25529 13.4783 3.4157C11.5211 4.56501 9.5075 6.18216 7.69123 8.02759C5.87508 9.87289 4.2808 11.9215 3.14659 13.918C2.0025 15.9319 1.375 17.8074 1.375 19.328H-0.625C-0.625 17.3149 0.183051 15.0856 1.40761 12.9301C2.64206 10.7572 4.34953 8.57172 6.2658 6.62468C8.18195 4.67776 10.3314 2.94429 12.4655 1.69107C14.5808 0.448936 16.7722 -0.375111 18.75 -0.375111V1.62489ZM18.75 59.7031C17.5455 59.7031 16.3878 59.0782 15.3405 58.2022C14.2758 57.3116 13.2051 56.0614 12.1563 54.5827C10.0556 51.6212 7.94243 47.5998 6.062 43.2913C4.17859 38.976 2.51222 34.3346 1.31504 30.1134C0.12399 25.9138 -0.625 22.0534 -0.625 19.328H1.375C1.375 21.7702 2.06156 25.4156 3.23916 29.5677C4.41063 33.6983 6.04602 38.2548 7.89503 42.4913C9.74702 46.7347 11.7969 50.6192 13.7876 53.4256C14.7844 54.8309 15.7414 55.9301 16.6237 56.6681C17.5233 57.4206 18.2319 57.7031 18.75 57.7031V59.7031Z",
fill="#9294A7",
mask="url(#path-1-inside-1_4460_280116)"
)
g(v-else) g(v-else)
path( path(
d="M36.6163 19.8282C36.5326 22.3195 35.8468 25.8084 34.7419 29.7043C33.564 33.8575 31.9208 38.4352 30.0632 42.6914C28.2041 46.9511 26.1384 50.8698 24.1203 53.715C23.1104 55.1386 22.125 56.2756 21.1971 57.0517C20.2606 57.8351 19.4397 58.2032 18.75 58.2032C18.0603 58.2032 17.2394 57.8351 16.3029 57.0517C15.375 56.2756 14.3896 55.1386 13.3797 53.715C11.3616 50.8698 9.29587 46.9511 7.43677 42.6914C5.57916 38.4352 3.93603 33.8575 2.75813 29.7043C1.65321 25.8084 0.967415 22.3195 0.883675 19.8282L1.81897 19.8282L5.75689 19.8284L18.75 19.8286L31.7431 19.8284L35.681 19.8282L36.6163 19.8282Z", d="M36.6163 19.8282C36.5326 22.3195 35.8468 25.8084 34.7419 29.7043C33.564 33.8575 31.9208 38.4352 30.0632 42.6914C28.2041 46.9511 26.1384 50.8698 24.1203 53.715C23.1104 55.1386 22.125 56.2756 21.1971 57.0517C20.2606 57.8351 19.4397 58.2032 18.75 58.2032C18.0603 58.2032 17.2394 57.8351 16.3029 57.0517C15.375 56.2756 14.3896 55.1386 13.3797 53.715C11.3616 50.8698 9.29587 46.9511 7.43677 42.6914C5.57916 38.4352 3.93603 33.8575 2.75813 29.7043C1.65321 25.8084 0.967415 22.3195 0.883675 19.8282L1.81897 19.8282L5.75689 19.8284L18.75 19.8286L31.7431 19.8284L35.681 19.8282L36.6163 19.8282Z",

View File

@@ -965,7 +965,7 @@ export const protocolForms = [
conditions: { conditions: {
general: { general: {
options: (() => { options: (() => {
let arrayOptions = ["ИЗ", "И", "О", "П"]; let arrayOptions = ["ИЗ", "И", "О", "П", "ИК", "В"];
return arrayOptions.map((item) => ({ return arrayOptions.map((item) => ({
value: item, value: item,
label: toothConditions[item], label: toothConditions[item],