Изменение компонента выбора даты
This commit is contained in:
@@ -14,6 +14,8 @@ import EditMedicalHistoryModal from "../Components/EditMedicalHistoryModal.vue";
|
|||||||
import {router} from "@inertiajs/vue3";
|
import {router} from "@inertiajs/vue3";
|
||||||
import ActionsColumnDataTable from "../Components/ActionsColumnDataTable.vue";
|
import ActionsColumnDataTable from "../Components/ActionsColumnDataTable.vue";
|
||||||
import {useAppDialog} from "../../../Composables/useAppDialog.js";
|
import {useAppDialog} from "../../../Composables/useAppDialog.js";
|
||||||
|
import {format} from "date-fns";
|
||||||
|
import DatePickerQuery from "../../../Components/DatePickerQuery.vue";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
patients: {
|
patients: {
|
||||||
@@ -92,7 +94,8 @@ const columns = [
|
|||||||
minWidth: 180,
|
minWidth: 180,
|
||||||
maxWidth: 180,
|
maxWidth: 180,
|
||||||
width: 180,
|
width: 180,
|
||||||
resizable: false
|
resizable: false,
|
||||||
|
render: (row) => format(new Date(row.migrations[0].ingoing_date), 'dd.MM.yyyy HH:mm')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Срочность',
|
title: 'Срочность',
|
||||||
@@ -168,7 +171,7 @@ const formattedLabel = (word, count) => {
|
|||||||
<NTag type="info" :bordered="false">
|
<NTag type="info" :bordered="false">
|
||||||
{{ department?.name_full ?? userDepartment.name_full }}
|
{{ department?.name_full ?? userDepartment.name_full }}
|
||||||
</NTag>
|
</NTag>
|
||||||
<ShiftPickerQuery :date="dates" class="text-lg!" />
|
<DatePickerQuery :date="dates" :is-head-or-admin="true" class="text-lg!" hint />
|
||||||
</NFlex>
|
</NFlex>
|
||||||
</AppPanel>
|
</AppPanel>
|
||||||
<AppPanel header="Журнал пациентов" header-include-body>
|
<AppPanel header="Журнал пациентов" header-include-body>
|
||||||
@@ -231,7 +234,7 @@ const formattedLabel = (word, count) => {
|
|||||||
</NTabs>
|
</NTabs>
|
||||||
</AppPanel>
|
</AppPanel>
|
||||||
<NButton v-if="canSaveReport" secondary size="large" @click="submit" :loading="loading">
|
<NButton v-if="canSaveReport" secondary size="large" @click="submit" :loading="loading">
|
||||||
Сохранить отчет
|
Сохранить введенные данные
|
||||||
</NButton>
|
</NButton>
|
||||||
</AppContainer>
|
</AppContainer>
|
||||||
<AddMedicalHistoryModal v-model:show="showAddMedicalHistoryModal" />
|
<AddMedicalHistoryModal v-model:show="showAddMedicalHistoryModal" />
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ watch(() => props, (newProps) => {
|
|||||||
Нежелательные события ({{ latestReportObj.unwanted_events?.length ?? 0 }})
|
Нежелательные события ({{ latestReportObj.unwanted_events?.length ?? 0 }})
|
||||||
</NButton>
|
</NButton>
|
||||||
<NButton v-if="props.canSaveReport" secondary @click="submit" :loading="loading">
|
<NButton v-if="props.canSaveReport" secondary @click="submit" :loading="loading">
|
||||||
Сохранить отчет
|
Сохранить введенные данные
|
||||||
</NButton>
|
</NButton>
|
||||||
</NFlex>
|
</NFlex>
|
||||||
</AppPanel>
|
</AppPanel>
|
||||||
|
|||||||
Reference in New Issue
Block a user