* закрытие пациентов если сменилась дата
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user