* добавил объединение изменений движений
* добавил автоматическое создание движения при редактировании * добавил функционал для сохранения отчета и пациентов * изменил форматирование дат * добавил частичную перезагрузку при сохранении изменений
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user