* исправление подсчета операций пациентов

* поправил поле выбора даты
* добавил индикатор в контроле
* окно выбора пользователя для сводной
* привязка окна для ввода причины контроля
* добавил привязку историй пациентов для просмотра статистики по дням
* поправил фиксацию фио ответственного, убрал при диапазоне
* отключение ролей адм и зав от реплики
This commit is contained in:
brusnitsyn
2026-01-30 17:26:16 +09:00
parent 87e21f0e08
commit 2805e5e4bc
21 changed files with 836 additions and 156 deletions

View File

@@ -1,10 +1,10 @@
<script setup>
import {NIcon, NText, NDataTable, NButton, NTabs, NTabPane} from "naive-ui";
import {NIcon, NText, NDataTable, NButton, NBadge, NTabs, NTabPane} from "naive-ui";
import {useReportStore} from "../../../Stores/report.js";
import {computed, h, onMounted, ref, watch} from "vue";
import { VueDraggableNext } from 'vue-draggable-next'
import {storeToRefs} from "pinia";
import {TbGripVertical} from "vue-icons-plus/tb";
import {TbGripVertical, TbEye} from "vue-icons-plus/tb";
import MoveModalComment from "./MoveModalComment.vue";
const props = defineProps({
@@ -49,6 +49,7 @@ const data = ref([])
const isLoading = ref(true)
const showMoveModal = ref(false)
const latestDropItem = ref(null)
const activePatient = ref(null)
// Добавляем drag колонку если режим fillable
const columns = computed(() => {
@@ -100,22 +101,40 @@ const columns = computed(() => {
}
const expandColumn = {
type: 'expand',
renderExpand: (rowData) => {
title: '',
width: '30',
render: (rowData) => {
return h(
NText,
NIcon,
{
class: 'max-w-full break-words whitespace-normal'
onClick: () => {
latestDropItem.value = rowData
showMoveModal.value = true
}
},
{
default: rowData.comment ?? 'Причина наблюдения не указана'
default: h(TbEye)
}
)
}
}
const fillableColumn = {
title: '',
key: 'fillable',
width: '20',
render: (row) => h(
NBadge,
{
dot: true,
color: (row.comment && row.comment.trim()) ? '#7fe7c4' : '#e88080'
}
)
}
if (props.status === 'observation') {
newColumns.push(expandColumn)
newColumns.push(fillableColumn)
}
if (props.isDraggable) newColumns.push(dragColumn)