nothing
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user