* закрытие пациентов если сменилась дата

This commit is contained in:
brusnitsyn
2026-02-09 09:40:57 +09:00
parent 741781dcb3
commit ea007e782b

View File

@@ -4,6 +4,8 @@ import {computed, onMounted, ref, watch} from "vue";
import {router} from "@inertiajs/vue3";
import {TbCalendar} from 'vue-icons-plus/tb'
import {formatRussianDate, formatRussianDateRange} from "../Utils/dateFormatter.js";
import {useReportStore} from "../Stores/report.js";
const props = defineProps({
// Пользователь с ролью админ или зав
isHeadOrAdmin: {
@@ -18,6 +20,7 @@ const props = defineProps({
}
})
const reportStore = useReportStore()
const isUseDateRange = computed(() => props.isHeadOrAdmin)
const datePicker = ref()
const showCalendar = ref(false)
@@ -30,11 +33,12 @@ const queryDate = ref([null, null])
const modelValue = defineModel('date')
const setQueryDate = () => {
reportStore.openedCollapsible = []
router.reload({
data: {
startAt: queryDate.value[0],
endAt: queryDate.value[1]
}
},
})
}
@@ -76,8 +80,6 @@ const formattedValue = computed(() => {
})
const handleDateUpdate = (value) => {
console.log('Получено значение:', value)
// Устанавливаем новое значение
modelValue.value = value