This commit is contained in:
brusnitsyn
2026-02-20 17:28:16 +09:00
parent 94e374c32b
commit 52a80ccd3b
41 changed files with 2555 additions and 206 deletions

View File

@@ -5,6 +5,7 @@ import {router} from "@inertiajs/vue3";
export const useReportStore = defineStore('reportStore', () => {
const timestampNow = useTimestamp()
const reportFormRef = ref(null)
const _timestampCurrent = ref(null)
const timestampCurrent = computed({
@@ -93,7 +94,7 @@ export const useReportStore = defineStore('reportStore', () => {
return result
}
const sendReportForm = (assignForm) => {
const sendReportForm = (assignForm = null) => {
const form = {
metrics: reportForm.value,
observationPatients: patientsData.value['observation'],
@@ -103,6 +104,7 @@ export const useReportStore = defineStore('reportStore', () => {
timestampCurrentRange.value[1]
],
userId: reportInfo.value.report.userId,
departmentId: reportInfo.value.department.department_id,
reportId: reportInfo.value.report.report_id,
...assignForm
}
@@ -206,6 +208,7 @@ export const useReportStore = defineStore('reportStore', () => {
}
return {
reportFormRef,
timestampNow,
timestampCurrent,
timestampCurrentRange,