แก้ไขขยายเวลา สอบสวน สืบสวน
This commit is contained in:
parent
cc7e98184a
commit
b7ff33b40f
4 changed files with 42 additions and 5 deletions
|
|
@ -10,6 +10,7 @@ import timeGridPlugin from "@fullcalendar/timegrid";
|
||||||
import interactionPlugin from "@fullcalendar/interaction";
|
import interactionPlugin from "@fullcalendar/interaction";
|
||||||
import allLocales from "@fullcalendar/core/locales-all";
|
import allLocales from "@fullcalendar/core/locales-all";
|
||||||
import listPlugin from "@fullcalendar/list";
|
import listPlugin from "@fullcalendar/list";
|
||||||
|
import moment from "moment";
|
||||||
|
|
||||||
import type { DataDateMonthObject } from "@/modules/09_leave/interface/response/leave";
|
import type { DataDateMonthObject } from "@/modules/09_leave/interface/response/leave";
|
||||||
import type { ExtendHistoryObject } from "@/modules/11_discipline/interface/response/Main";
|
import type { ExtendHistoryObject } from "@/modules/11_discipline/interface/response/Main";
|
||||||
|
|
@ -98,7 +99,7 @@ async function fetchCalendar() {
|
||||||
id: index.toString(),
|
id: index.toString(),
|
||||||
title: e.name,
|
title: e.name,
|
||||||
start: e.dateStart,
|
start: e.dateStart,
|
||||||
end: e.dateEnd,
|
end: moment(e.dateEnd).format("YYYY-MM-DD")+ " 23:59:59",
|
||||||
allDay: false,
|
allDay: false,
|
||||||
color:
|
color:
|
||||||
props.lists.length > 1 && index > 0
|
props.lists.length > 1 && index > 0
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
import { useRouter, useRoute } from "vue-router";
|
import { useRouter, useRoute } from "vue-router";
|
||||||
import { onMounted, ref, watch, reactive, computed } from "vue";
|
import { onMounted, ref, watch, reactive, computed } from "vue";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
|
import moment from "moment";
|
||||||
|
|
||||||
import DialogDirector from "@/modules/11_discipline/components/DialogDirector.vue";
|
import DialogDirector from "@/modules/11_discipline/components/DialogDirector.vue";
|
||||||
import DialogAddPersonal from "@/components/Dialogs/AddPersonal.vue";
|
import DialogAddPersonal from "@/components/Dialogs/AddPersonal.vue";
|
||||||
import Table from "@/modules/11_discipline/components/DirectorTable.vue";
|
import Table from "@/modules/11_discipline/components/DirectorTable.vue";
|
||||||
|
|
@ -176,6 +178,22 @@ function onSubmit() {
|
||||||
dialogConfirm(
|
dialogConfirm(
|
||||||
$q,
|
$q,
|
||||||
async () => {
|
async () => {
|
||||||
|
if (
|
||||||
|
formData.investigationDateStart !== null &&
|
||||||
|
formData.investigationDateEnd !== null
|
||||||
|
) {
|
||||||
|
const investigationDateStart = new Date(
|
||||||
|
formData.investigationDateStart
|
||||||
|
);
|
||||||
|
const investigationDateEnd = new Date(formData.investigationDateEnd);
|
||||||
|
|
||||||
|
formData.investigationDateStart = moment(investigationDateStart).format(
|
||||||
|
"YYYY-MM-DD"
|
||||||
|
);
|
||||||
|
formData.investigationDateEnd =
|
||||||
|
moment(investigationDateEnd).format("YYYY-MM-DD");
|
||||||
|
}
|
||||||
|
|
||||||
if (mainStore.rowsAdd) {
|
if (mainStore.rowsAdd) {
|
||||||
formData.persons = mainStore.rowsAdd;
|
formData.persons = mainStore.rowsAdd;
|
||||||
}
|
}
|
||||||
|
|
@ -196,7 +214,7 @@ async function calEndDate(val: string) {
|
||||||
changeFormData();
|
changeFormData();
|
||||||
const date = await new Date(props.data.investigationDateEnd);
|
const date = await new Date(props.data.investigationDateEnd);
|
||||||
formData.investigationDateEnd = await new Date(
|
formData.investigationDateEnd = await new Date(
|
||||||
date.setDate(date.getDate() + Number(val))
|
date.setDate(date.getDate() + (Number(val) + 1))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import timeGridPlugin from "@fullcalendar/timegrid";
|
||||||
import interactionPlugin from "@fullcalendar/interaction";
|
import interactionPlugin from "@fullcalendar/interaction";
|
||||||
import allLocales from "@fullcalendar/core/locales-all";
|
import allLocales from "@fullcalendar/core/locales-all";
|
||||||
import listPlugin from "@fullcalendar/list";
|
import listPlugin from "@fullcalendar/list";
|
||||||
|
import moment from "moment";
|
||||||
|
|
||||||
import type { DataDateMonthObject } from "@/modules/09_leave/interface/response/leave";
|
import type { DataDateMonthObject } from "@/modules/09_leave/interface/response/leave";
|
||||||
import type { ExtendHistoryObject } from "@/modules/11_discipline/interface/response/Main";
|
import type { ExtendHistoryObject } from "@/modules/11_discipline/interface/response/Main";
|
||||||
|
|
@ -98,7 +99,7 @@ async function fetchCalendar() {
|
||||||
id: index.toString(),
|
id: index.toString(),
|
||||||
title: e.name,
|
title: e.name,
|
||||||
start: e.dateStart,
|
start: e.dateStart,
|
||||||
end: e.dateEnd,
|
end: moment(e.dateEnd).format("YYYY-MM-DD")+ " 23:59:59",
|
||||||
allDay: false,
|
allDay: false,
|
||||||
color:
|
color:
|
||||||
props.lists.length > 1 && index > 0
|
props.lists.length > 1 && index > 0
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@ import { useQuasar } from "quasar";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import CalandarDialog from "@/modules/11_discipline/components/3_InvestigateDisciplinary/CalandarDialog.vue";
|
import CalandarDialog from "@/modules/11_discipline/components/3_InvestigateDisciplinary/CalandarDialog.vue";
|
||||||
/**import type*/
|
/**import type*/
|
||||||
import type { QTableProps } from "quasar";
|
import moment from "moment";
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
FormData,
|
FormData,
|
||||||
DisciplinaryRef,
|
DisciplinaryRef,
|
||||||
|
|
@ -201,7 +202,7 @@ async function calEndDate(val: string) {
|
||||||
changeFormData();
|
changeFormData();
|
||||||
const date = await new Date(props.data.disciplinaryDateEnd);
|
const date = await new Date(props.data.disciplinaryDateEnd);
|
||||||
formData.disciplinaryDateEnd = await new Date(
|
formData.disciplinaryDateEnd = await new Date(
|
||||||
date.setDate(date.getDate() + Number(val))
|
date.setDate(date.getDate() + (Number(val) + 1))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -214,6 +215,22 @@ function onSubmit() {
|
||||||
dialogConfirm(
|
dialogConfirm(
|
||||||
$q,
|
$q,
|
||||||
async () => {
|
async () => {
|
||||||
|
if (
|
||||||
|
formData.disciplinaryDateStart !== null &&
|
||||||
|
formData.disciplinaryDateEnd !== null
|
||||||
|
) {
|
||||||
|
const disciplinaryDateStart = new Date(
|
||||||
|
formData.disciplinaryDateStart
|
||||||
|
);
|
||||||
|
const disciplinaryDateEnd = new Date(formData.disciplinaryDateEnd);
|
||||||
|
|
||||||
|
formData.disciplinaryDateStart = moment(disciplinaryDateStart).format(
|
||||||
|
"YYYY-MM-DD"
|
||||||
|
);
|
||||||
|
formData.disciplinaryDateEnd =
|
||||||
|
moment(disciplinaryDateEnd).format("YYYY-MM-DD");
|
||||||
|
}
|
||||||
|
|
||||||
if (mainStore.rowsAdd) {
|
if (mainStore.rowsAdd) {
|
||||||
formData.persons = mainStore.rowsAdd;
|
formData.persons = mainStore.rowsAdd;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue