* изменил таблицы в основном отчете

* изменил метод сохранения пациентов основного отчета
This commit is contained in:
brusnitsyn
2026-05-07 18:00:43 +09:00
parent 723ccee8d3
commit bb9e67ab3d
25 changed files with 1438 additions and 52 deletions

View File

@@ -0,0 +1,69 @@
<script setup>
import {NSpace, NDropdown, NButton, NIcon} from 'naive-ui'
import {TbExternalLink, TbEyePlus, TbClick} from "vue-icons-plus/tb"
import {computed, h} from "vue";
const props = defineProps({
row: Object,
isMis: Boolean,
isAddObservable: Boolean
})
const renderIcon = (icon) => {
return () => h(
NIcon,
{},
{
default: () => h(icon)
}
)
}
const actions = computed(() => ([
{
label: 'Просмотреть в МИС',
key: 'mis',
icon: renderIcon(TbExternalLink),
show: props.isMis
},
{
type: 'divider',
key: 'd1',
show: props.isMis && props.isAddObservable
},
{
label: 'Добавить в наблюдение',
key: 'add-observable',
icon: renderIcon(TbEyePlus),
show: props.isAddObservable
},
]))
const onOpenMis = () => {
const id = props.row.id
window.open(`https://stationar.amurzdrav.ru/prod/statist/edit/card/${id}`, '_blank')
}
const onSelectOption = (key, option) => {
switch (key) {
case 'mis': onOpenMis()
break
}
}
</script>
<template>
<NSpace size="small" justify="end">
<NDropdown size="small" trigger="click" placement="bottom-end" :options="actions" @select="onSelectOption">
<NButton secondary size="tiny">
<template #icon>
<TbClick />
</template>
Действия
</NButton>
</NDropdown>
</NSpace>
</template>
<style scoped>
</style>

View File

@@ -0,0 +1,16 @@
<script setup>
const props = defineProps({
index: {
type: [String, Number],
default: null
}
})
</script>
<template>
<div>{{index}}</div>
</template>
<style scoped>
</style>

View File

@@ -0,0 +1,24 @@
<script setup>
import { NTooltip } from 'naive-ui'
import {computed} from "vue";
const props = defineProps({
operations: Array
})
const firstOperation = computed(() => props.operations[0])
</script>
<template>
<NTooltip v-if="operations.length" :arrow="false">
<template #trigger>
<div class="absolute inset-0 p-2 pt-2.5">
{{ firstOperation?.code_service }}
</div>
</template>
{{ firstOperation?.name_service }}
</NTooltip>
</template>
<style scoped>
</style>

View File

@@ -0,0 +1,22 @@
<script setup>
import {NTooltip} from 'naive-ui'
const props = defineProps({
triggerText: String,
contentText: String
})
</script>
<template>
<NTooltip trigger="hover" :arrow="false">
<template #trigger>
<div>
{{ triggerText }}
</div>
</template>
{{ contentText }}
</NTooltip>
</template>
<style scoped>
</style>