Files
onboard/resources/js/Pages/Report/Index.vue
brusnitsyn cb43c74a72 * добавлены операции и услуги операций
* добавлена выборка и подсчет по датам для роли зав.
* переключатель ролей
* выбор отделений для роли зав.
2026-01-22 17:58:27 +09:00

28 lines
623 B
Vue

<script setup>
import AppLayout from "../../Layouts/AppLayout.vue";
import ReportForm from "./Components/ReportForm.vue";
import {useReportStore} from "../../Stores/report.js";
import {computed, onMounted} from "vue";
import {useAuthStore} from "../../Stores/auth.js";
const reportStore = useReportStore()
const authStore = useAuthStore()
onMounted(async () => {
await reportStore.getReportInfo()
})
const mode = computed(() => {
if (authStore.isHeadOfDepartment)
return 'readonly'
return 'fillable'
})
</script>
<template>
<AppLayout>
<ReportForm :mode />
</AppLayout>
</template>