diff --git a/api/views.py b/api/views.py index 3f94593953..f6fa5f5f39 100644 --- a/api/views.py +++ b/api/views.py @@ -1439,6 +1439,8 @@ def user_view(request): "sendPassword": False, "external_access": False, "date_stop_external_access": None, + "date_extract_employee": None, + "date_stop_certificate": None, "resource_schedule": resource_researches, "notControlAnketa": False, } @@ -1491,6 +1493,8 @@ def user_view(request): "sendPassword": False, "external_access": doc.external_access, "date_stop_external_access": doc.date_stop_external_access, + "date_stop_certificate": doc.date_stop_certificate, + "date_extract_employee": doc.date_extract_employee, "resource_schedule": resource_researches, "notControlAnketa": doc.not_control_anketa, } @@ -1526,8 +1530,16 @@ def user_save_view(request): external_access = ud.get("external_access", False) not_control_anketa = ud.get("notControlAnketa", False) date_stop_external_access = ud.get("date_stop_external_access") + if date_stop_external_access == "": date_stop_external_access = None + date_extract_employee = ud.get("date_extract_employee") + if date_extract_employee == "": + date_extract_employee = None + date_stop_certificate = ud.get("date_stop_certificate") + if date_stop_certificate == "": + date_stop_certificate = None + if position == -1: position = None if district == -1: @@ -1628,6 +1640,8 @@ def user_save_view(request): doc.external_access = external_access doc.not_control_anketa = not_control_anketa doc.date_stop_external_access = date_stop_external_access + doc.date_extract_employee = date_extract_employee + doc.date_stop_certificate = date_stop_certificate if rmis_login: doc.rmis_login = rmis_login if rmis_password: diff --git a/l2-frontend/src/pages/Profiles.vue b/l2-frontend/src/pages/Profiles.vue index 8c8cd9af68..798d79ccdc 100644 --- a/l2-frontend/src/pages/Profiles.vue +++ b/l2-frontend/src/pages/Profiles.vue @@ -732,65 +732,109 @@ -
- Анализаторы: - -
- Анализаторы - + + + +
- Кабинеты - + Анализаторы + +
+
+
+
+
+ Кабинеты + +
+
+
+
+
+
+ Дата выписки из кадров + +
+
+
+
+ Срок сертификата + +
@@ -925,6 +969,8 @@ export default { date_stop_external_access: '', resource_schedule: [], notControlAnketa: false, + date_extract_employee: '', + date_stop_certificate: '', }, selected_hospital: -1, open_pk: -2, @@ -1442,4 +1488,7 @@ li.selected { .right-padding { padding-right: 0 } +.left-padding-10 { + padding-left: 10px +} diff --git a/users/models.py b/users/models.py index b8454eabe8..3e646df5c2 100644 --- a/users/models.py +++ b/users/models.py @@ -105,8 +105,9 @@ class DoctorProfile(models.Model): max_age_patient_registration = models.SmallIntegerField(help_text='Ограничения возраста записи указать в месяцах', default=-1) available_quotas_time = models.TextField(default='', blank=True, help_text='Доступная запись для подразделений по времени {"id-подразделения": "10:00-15:00"}') is_system_user = models.BooleanField(default=False, blank=True) - room_access = models.ManyToManyField('podrazdeleniya.Room', blank=True, help_text='Доступ к кабинетам') + date_extract_employee = models.DateField(help_text='Дата выписки запрошена', db_index=True, default=None, blank=True, null=True) + date_stop_certificate = models.DateField(help_text='Дата окончания сертификата', db_index=True, default=None, blank=True, null=True) @staticmethod def get_system_profile():