* восстановление окна наблюдения
* добавил получение выбывших * фильтрация выбывших по результатам лечения * добавил подсказку при наведении на операции * добавил вывод причины наблюдения * добавил вкладки для выбывших * изменил связь и сохранение пациентов на контроле * добавил возможность редактирования причины контроля * полное изменение окна с нежелательными событиями * исправил просмотр причины контроля * работа над окном редактирования причины контроля в таблице * визуальное выделение умерших и проведенных операций * добавил выбор даты для роли врач * центрирование блоков статистики * разделение выполненных операций на срочность * поправил метод определения текущего дня для роли врач * функция блокировки при выборе другой даты для роли врач
This commit is contained in:
@@ -55,11 +55,14 @@ export const useReportStore = defineStore('reportStore', () => {
|
||||
plan: [],
|
||||
emergency: [],
|
||||
observation: [],
|
||||
deceased: []
|
||||
outcome: []
|
||||
})
|
||||
|
||||
const reportForm = ref({})
|
||||
|
||||
// Нежелательные события
|
||||
const unwantedEvents = ref([])
|
||||
|
||||
const getColumnsByKey = (keys) => {
|
||||
const result = []
|
||||
for (const key of keys) {
|
||||
@@ -74,9 +77,8 @@ export const useReportStore = defineStore('reportStore', () => {
|
||||
const form = {
|
||||
metrics: reportForm.value,
|
||||
observationPatients: patientsData.value['observation'],
|
||||
unwantedEvent: {
|
||||
comment: reportForm.comment
|
||||
},
|
||||
unwantedEvents: unwantedEvents.value,
|
||||
dates: timestampCurrentRange.value,
|
||||
...assignForm
|
||||
}
|
||||
|
||||
@@ -90,6 +92,7 @@ export const useReportStore = defineStore('reportStore', () => {
|
||||
|
||||
const resetReportForm = () => {
|
||||
reportForm.value = {}
|
||||
unwantedEvents.value = []
|
||||
patientsData.value.observation = []
|
||||
}
|
||||
|
||||
@@ -107,6 +110,8 @@ export const useReportStore = defineStore('reportStore', () => {
|
||||
reportForm.value.metrika_item_7 = reportInfo.value.department?.extractCount
|
||||
reportForm.value.metrika_item_8 = reportInfo.value.department?.currentCount
|
||||
|
||||
unwantedEvents.value = reportInfo.value.report.unwantedEvents
|
||||
|
||||
timestampCurrentRange.value = [
|
||||
reportInfo.value.dates.startAt,
|
||||
reportInfo.value.dates.endAt,
|
||||
@@ -128,6 +133,8 @@ export const useReportStore = defineStore('reportStore', () => {
|
||||
reportForm.value.metrika_item_7 = reportInfo.value.department?.extractCount
|
||||
reportForm.value.metrika_item_8 = reportInfo.value.department?.currentCount
|
||||
|
||||
unwantedEvents.value = reportInfo.value.report.unwantedEvents
|
||||
|
||||
timestampCurrentRange.value = [
|
||||
reportInfo.value.dates.startAt,
|
||||
reportInfo.value.dates.endAt,
|
||||
@@ -148,6 +155,7 @@ export const useReportStore = defineStore('reportStore', () => {
|
||||
patientsData,
|
||||
reportInfo,
|
||||
reportForm,
|
||||
unwantedEvents,
|
||||
|
||||
getColumnsByKey,
|
||||
getDataOnReportDate,
|
||||
|
||||
Reference in New Issue
Block a user