* работа над функционалом автоматического заполнения

* исправил фантомный сдвиг даты
* переделал получение ФИО врачей из отделений
* добавил возможность поиска врача
* переписал сохранение отчета
This commit is contained in:
brusnitsyn
2026-02-05 17:11:43 +09:00
parent eab78a0291
commit 10fb138c30
22 changed files with 1192 additions and 654 deletions

View File

@@ -86,18 +86,27 @@ export const useReportStore = defineStore('reportStore', () => {
metrics: reportForm.value,
observationPatients: patientsData.value['observation'],
unwantedEvents: unwantedEvents.value,
dates: timestampCurrentRange.value,
userId: reportInfo.value.userId,
dates: [
timestampCurrentRange.value[0],
timestampCurrentRange.value[1]
],
userId: reportInfo.value.report.userId,
reportId: reportInfo.value.report.report_id,
...assignForm
}
axios.post('/api/report', form)
.then(r => {
router.post('/report', form, {
onSuccess: () => {
window.$message.success('Отчет сохранен')
resetReportForm()
router.visit('/')
})
}
})
// axios.post('/api/report', form)
// .then(r => {
// window.$message.success('Отчет сохранен')
// resetReportForm()
// router.visit('/')
// })
}
const resetReportForm = () => {