Обновление 1.0
Some checks failed
Build and Push Docker Image / test (push) Has been cancelled
Build and Push Docker Image / build (push) Has been cancelled

This commit is contained in:
brusnitsyn
2026-01-13 18:54:48 +09:00
parent bb36ef3a40
commit 76c5f6705e
7 changed files with 164 additions and 19 deletions

View File

@@ -4,6 +4,7 @@ import ArchiveHistoryMoveModal from '../ArchiveHistoryMoveModal/Index.vue'
import {computed, ref, watch} from "vue";
import {useMedicalHistoryFilter} from "../../../Composables/useMedicalHistoryFilter.js";
import {useNotification} from "../../../Composables/useNotification.js";
import {useArchiveCard} from "../../../Stores/ArchiveCard.js";
const open = defineModel('open')
const props = defineProps({
@@ -12,6 +13,7 @@ const props = defineProps({
}
})
const archiveCardStore = useArchiveCard()
const {filtersRef} = useMedicalHistoryFilter()
const {errorApi} = useNotification()
const loading = ref(true)
@@ -96,17 +98,26 @@ const columns = [
{
title: 'Организация',
key: 'org',
width: 220
width: 220,
ellipsis: {
tooltip: true
}
},
{
title: 'ФИО',
key: 'employee_name',
width: 180
width: 180,
ellipsis: {
tooltip: true
}
},
{
title: 'Должность',
key: 'employee_post',
width: 120
width: 120,
ellipsis: {
tooltip: true
}
},
]
const rowProps = (row) => ({
@@ -154,6 +165,7 @@ const onSubmit = async () => {
watch(() => props.patientInfo, async (newId) => {
if (newId) {
await loadPatientData()
archiveCardStore.isOpenArchiveCard = false
}
}, { immediate: true })
</script>
@@ -187,7 +199,7 @@ watch(() => props.patientInfo, async (newId) => {
<NButton @click="onShowArchiveHistoryModal(null)" :disabled="!patientData.can_be_issued">
Добавить
</NButton>
<NDataTable :row-props="rowProps" min-height="420px" max-height="420px" :columns="columns" :data="patient?.journal" />
<NDataTable :row-props="rowProps" min-height="300px" size="small" max-height="300px" :columns="columns" :data="patient?.journal" />
</NSpace>
<template #action>
<NFlex justify="end" align="center">