* блокировка изменения отчета для врача

* вывод данных из отчетов для ролей адм и зав
* поправил ширину стобцов ввода
* добавил календарь на страницу статистики
* переделал календарь у заведующего на странице отчета
* добавил и привязал метрики в статистику
This commit is contained in:
brusnitsyn
2026-02-03 17:03:37 +09:00
parent 2805e5e4bc
commit 9ee33bc517
20 changed files with 889 additions and 159 deletions

View File

@@ -23,6 +23,9 @@ export const useReportStore = defineStore('reportStore', () => {
const dataOnReport = ref(null)
// Открытие collapse из ReportSectionItem
const openedCollapsible = ref([])
const reportInfo = ref({
userId: null
})
@@ -85,6 +88,7 @@ export const useReportStore = defineStore('reportStore', () => {
unwantedEvents: unwantedEvents.value,
dates: timestampCurrentRange.value,
userId: reportInfo.value.userId,
reportId: reportInfo.value.report.report_id,
...assignForm
}
@@ -122,7 +126,7 @@ export const useReportStore = defineStore('reportStore', () => {
reportForm.value.metrika_item_3 = reportInfo.value.department?.recipientCount
reportForm.value.metrika_item_7 = reportInfo.value.department?.extractCount
reportForm.value.metrika_item_8 = reportInfo.value.department?.currentCounts
reportForm.value.metrika_item_8 = reportInfo.value.department?.currentCount
reportForm.value.metrika_item_9 = reportInfo.value.department?.deadCount
reportForm.value.metrika_item_10 = reportInfo.value.department?.surgicalCount[1]
@@ -143,6 +147,13 @@ export const useReportStore = defineStore('reportStore', () => {
const getDataOnReportDate = async (dateRange) => {
isLoadReportInfo.value = true
timestampCurrentRange.value = dateRange
openedCollapsible.value = []
patientsData.value = {
plan: [],
emergency: [],
observation: [],
outcome: []
}
const queryParams = {
userId: reportInfo.value.userId,
startAt: timestampCurrentRange.value[0],
@@ -185,6 +196,7 @@ export const useReportStore = defineStore('reportStore', () => {
reportForm,
departmentUsers,
unwantedEvents,
openedCollapsible,
getColumnsByKey,
getDataOnReportDate,