Обновлен стартовый экран
Переписаны запросы для статистики, отчетов Добавлена интеграция отчета сестры
This commit is contained in:
@@ -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 />
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user