Обновлен стартовый экран

Переписаны запросы для статистики, отчетов
Добавлена интеграция отчета сестры
This commit is contained in:
brusnitsyn
2026-05-28 22:10:00 +09:00
parent 90e0d04dfd
commit 739168d427
96 changed files with 6663 additions and 1465 deletions

View File

@@ -22,6 +22,7 @@ import ModalUnwantedEvents from "./Components/ModalUnwantedEvents.vue";
import ModalObservablePatients from "./Components/ModalObservablePatients.vue";
import StatisticRecipientPlanOfYear from "../../Layouts/Components/Statistic/StatisticRecipientPlanOfYear.vue";
import {percentType} from "../../Utils/numbers.js";
import OutcomeColumn from "./Components/OutcomeColumn.vue";
const props = defineProps({
data: {
@@ -175,20 +176,13 @@ const columns = ref([
titleAlign: 'center',
align: 'center',
render(row) {
console.log(row)
return h(
'div',
OutcomeColumn,
{
class: 'relative'
},
[
h('div', {}, row.outcome),
!row.isTotalRow ? h('div', {
class: 'absolute -right-1.5 bottom-2.5 text-xs',
}, [
h(NTag, {size: 'tiny', round: true, bordered: false, type: percentType(row.percentPlanOfYear)}, `${row.percentPlanOfYear}%`)
]) : null
]
isTotalRow: row.isTotalRow,
progressCompletedToPlan: row.percentPlanOfYear,
value: row.outcome
}
)
}
},
@@ -312,8 +306,8 @@ const downloadReport = async () => {
a.click()
window.URL.revokeObjectURL(url)
document.body.removeChild(a)
} catch (error) {
console.error('Ошибка скачивания:', error)
} catch {
// silent
}
}
@@ -359,6 +353,7 @@ const buildReportHref = (departmentId, startAt, endAt) => {
size="small"
:single-line="false"
striped
table-layout="fixed"
min-height="calc(100vh - 48px - 70px)"
max-height="calc(100vh - 48px - 70px)"
:row-props="rowProps"