diff --git a/src/pages/newCalendar/components/CalendarBackground.vue b/src/pages/newCalendar/components/CalendarBackground.vue index 858f377..0a89d16 100644 --- a/src/pages/newCalendar/components/CalendarBackground.vue +++ b/src/pages/newCalendar/components/CalendarBackground.vue @@ -17,7 +17,6 @@ export default { workingHours: (state) => state.calendar.workingHours, }), timeCount() { - console.log(this.workingHours); return ( this.workingHours.end.split(":")[0] - this.workingHours.start.split(":")[0] + diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/FormulaFilter.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/FormulaFilter.vue index 2c0784e..10915a0 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/FormulaFilter.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/FormulaFilter.vue @@ -7,7 +7,7 @@ .border-right.width-cell.flex.justify-center.items-center q-checkbox( dense, - v-model="filterResult", + v-model="filterFurmula", @update:model-value="() => updateFilter(value)", :val="value", checked-icon="check_box", @@ -21,7 +21,7 @@ .border-right.flex.items-center.pl-3.w-full(:style="{'minWidth': '190px'}") span.text-smm.font-medium {{toothConditions[value] || value}} .width-cell.flex.w-8.justify-center.items-center - span.text-smm.font-medium {{getCountConditions[value] || "-"}} + span.text-smm.font-medium {{getCountConditions[value] && getCountConditions[value].length || "-"}} diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue index 8fa3cfa..e328fe1 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ToothFormula/ToothFormulaTable.vue @@ -12,6 +12,7 @@ tooth-formula-cell( v-for="cell in config.columns", v-model="data.formula[cell.tooth_number]", + :filtred-tooths="filtredTooths" :is-edit="isEdit", :jaw-position="config.name", :row-key="row.key", @@ -41,6 +42,7 @@ export default { modelValue: Object, isEdit: Boolean, formConfig: Object, + filtredTooths: Array, }, emits: ["update:modelValue"], }; diff --git a/src/pages/newMedicalCard/utils/medicalConfig.js b/src/pages/newMedicalCard/utils/medicalConfig.js index 3b0c6c5..21c2ee7 100644 --- a/src/pages/newMedicalCard/utils/medicalConfig.js +++ b/src/pages/newMedicalCard/utils/medicalConfig.js @@ -1043,103 +1043,103 @@ export const protocolForms = [ columns: [ { type: "molars", - tooth_number: 18, + tooth_number: "18", dental_condition: "", tooth_mobility: "", }, { type: "molars", - tooth_number: 17, + tooth_number: "17", dental_condition: "", tooth_mobility: "", }, { type: "molars", - tooth_number: 16, + tooth_number: "16", dental_condition: "", tooth_mobility: "", }, { position: "left", type: "pre-molars", - tooth_number: 15, + tooth_number: "15", dental_condition: "", tooth_mobility: "", }, { position: "left", type: "pre-molars", - tooth_number: 14, + tooth_number: "14", dental_condition: "", tooth_mobility: "", }, { position: "left", type: "fangs", - tooth_number: 13, + tooth_number: "13", dental_condition: "", tooth_mobility: "", }, { type: "incisors", - tooth_number: 12, + tooth_number: "12", dental_condition: "", tooth_mobility: "", }, { type: "incisors", - tooth_number: 11, + tooth_number: "11", dental_condition: "", tooth_mobility: "", }, { type: "incisors", - tooth_number: 21, + tooth_number: "21", dental_condition: "", tooth_mobility: "", }, { type: "incisors", - tooth_number: 22, + tooth_number: "22", dental_condition: "", tooth_mobility: "", }, { position: "right", type: "fangs", - tooth_number: 23, + tooth_number: "23", dental_condition: "", tooth_mobility: "", }, { position: "right", type: "pre-molars", - tooth_number: 24, + tooth_number: "24", dental_condition: "", tooth_mobility: "", }, { position: "right", type: "pre-molars", - tooth_number: 25, + tooth_number: "25", dental_condition: "", tooth_mobility: "", }, { type: "molars", - tooth_number: 26, + tooth_number: "26", dental_condition: "", tooth_mobility: "", }, { type: "molars", - tooth_number: 27, + tooth_number: "27", dental_condition: "", tooth_mobility: "", }, { type: "molars", - tooth_number: 28, + tooth_number: "28", dental_condition: "", tooth_mobility: "", },