Обновление 1.0
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user