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

Переписаны запросы для статистики, отчетов
Добавлена интеграция отчета сестры
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

@@ -5,6 +5,10 @@ import {computed} from "vue";
const props = defineProps({
row: {
type: Object
},
canEdit: {
type: Boolean,
default: false
}
})
const emits = defineEmits(['clickEdit', 'clickDelete'])
@@ -21,7 +25,7 @@ const isManualType = computed(() => props.row.source_type === 'manual')
</script>
<template>
<NFlex align="center" justify="end">
<NFlex v-if="canEdit" align="center" justify="end">
<NButton v-if="isManualType" type="error" secondary size="tiny" @click="onClickDelete">
<template #icon>
<TbTrash />

View File

@@ -23,6 +23,10 @@ const show = defineModel('show', { default: false })
const props = defineProps({
historyId: {
type: Number
},
reportNurseId: {
type: Number,
default: null
}
})
@@ -105,16 +109,11 @@ const visitResultOptions = [
const submit = async () => {
buttonLoading.value = true
await axios.post(`/api/nurse/patients/${form.value.patient_id}/correction`, {
...form.value
...form.value,
report_nurse_id: props.reportNurseId,
}).then(res => {
router.reload({
only: [
'inDepartmentHistories',
'recipientHistories',
'dischargedHistories',
'deceasedHistories',
'transferredHistories'
],
only: ['patients'],
onSuccess: () => {
show.value = false
},