* добавил объединение изменений движений

* добавил автоматическое создание движения при редактировании
* добавил функционал для сохранения отчета и пациентов
* изменил форматирование дат
* добавил частичную перезагрузку при сохранении изменений
This commit is contained in:
brusnitsyn
2026-05-05 17:06:15 +09:00
parent 51a4b5b9de
commit 717641e4bb
18 changed files with 712 additions and 60 deletions

View File

@@ -10,6 +10,7 @@ import {TbCirclePlus, TbPencil} from 'vue-icons-plus/tb'
import {useAuthStore} from "../../../Stores/auth.js";
import AddMedicalHistoryModal from "../Components/AddMedicalHistoryModal.vue";
import EditMedicalHistoryModal from "../Components/EditMedicalHistoryModal.vue";
import {router} from "@inertiajs/vue3";
const props = defineProps({
inDepartmentHistories: {
@@ -85,7 +86,11 @@ const onClickEditButton = (historyId) => {
}
const submit = () => {
// TODO: сохранение отчета и пациентов
router.post('/nurse/report/save', {}, {
onSuccess: () => {
alert('Сохранено')
}
})
}
const formattedLabel = (word, count) => {
@@ -158,7 +163,7 @@ const formattedLabel = (word, count) => {
</NTabPane>
</NTabs>
</AppPanel>
<NButton secondary size="large">
<NButton secondary size="large" @click="submit">
Сохранить отчет
</NButton>
</AppContainer>