diff --git a/web-app/src/components/lens_issues/LensIssueFormModal.jsx b/web-app/src/components/lens_issues/LensIssueFormModal.jsx index fd827aa..45aa3f8 100644 --- a/web-app/src/components/lens_issues/LensIssueFormModal.jsx +++ b/web-app/src/components/lens_issues/LensIssueFormModal.jsx @@ -1,11 +1,10 @@ import {useEffect, useState} from "react"; -import {Modal, Form, Input, Select, Button, notification, Typography, Collapse, Steps} from "antd"; +import {Modal, Input, Button, notification, Typography, Collapse, Steps, Row, Alert, Col} from "antd"; import PropTypes from "prop-types"; import getAllPatients from "../../api/patients/GetAllPatients.jsx"; import getAllLenses from "../../api/lenses/GetAllLenses.jsx"; import {useAuth} from "../../AuthContext.jsx"; -const {Option} = Select; const LensIssueFormModal = ({visible, onCancel, onSubmit}) => { const {user} = useAuth(); @@ -14,6 +13,7 @@ const LensIssueFormModal = ({visible, onCancel, onSubmit}) => { const [searchPatientString, setSearchPatientString] = useState(""); const [searchLensString, setSearchLensString] = useState(""); + const [issueDate, setIssueDate] = useState(null); const [selectedPatient, setSelectedPatient] = useState(null); const [selectedLens, setSelectedLens] = useState(null); @@ -196,15 +196,70 @@ const LensIssueFormModal = ({visible, onCancel, onSubmit}) => { const ConfirmStep = () => { return ( -
Дата рождения: {new Date(selectedPatient.birthday).toLocaleDateString("ru-RU")}
-Email: {selectedPatient.email}
-Телефон: {selectedPatient.phone}
-Линза: {selectedLens.diameter} {selectedLens.tor} {selectedLens.preset_refraction}
-Дата рождения: {new Date(selectedPatient.birthday).toLocaleDateString("ru-RU")}
+Email: {selectedPatient.email}
+Телефон: {selectedPatient.phone}
+Линза: {selectedLens.diameter} {selectedLens.tor} {selectedLens.preset_refraction}
+Диаметр: {selectedLens.diameter}
+Тор: {selectedLens.tor}
+Пресетная рефракция: {selectedLens.preset_refraction}
+Диаметр: {selectedLens.diameter}
+FVC: {selectedLens.fvc}
+Острота зрения (Trial): {selectedLens.trial}
+Периферийная торичность: {selectedLens.periphery_toricity}
+Сторона: {selectedLens.side}
+Esa: {selectedLens.esa}
+