@@ -317,84 +342,6 @@ function updateDateMonth(date: Date) {
-
-
-
-
-
-
- รายละเอียดของ{{ title }}
-
- ขอยกเลิก{{ title }}
-
-
-
-
-
-
-
-
เขียนที่
-
{{ location }}
-
เรื่องและเหตุผลการลา
-
{{ subject }}
-
วัน เดือน ปีเริ่มต้น
-
{{ dateStart }}
-
วัน เดือน ปีสิ้นสุด
-
{{ dateEnd }}
-
จำนวนวันที่ลา
-
{{ numDate }}
-
สถานที่ติดต่อขณะลา
-
{{ place }}
-
หมายเลขโทรศัพท์
-
{{ phone }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-@/modules/11_discipline/store/store
diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/CalandarDialog.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/CalandarDialog.vue
index a3feed25d..0abc68764 100644
--- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/CalandarDialog.vue
+++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/CalandarDialog.vue
@@ -96,14 +96,15 @@ async function fetchCalendar() {
const events = data.map((e: CaledarDisciplinary, index: number) => ({
id: e.id,
title: e.title,
- start: e.disciplinaryDateEnd,
- end: e.disciplinaryDateStart,
+ start: e.disciplinaryDateStart,
+ end: e.disciplinaryDateEnd,
allDay: true,
color:
data.length > 1 && index > 0 ? gradientColors[index] : defaultColor,
}));
calendarOptions.value.events = events;
+ console.log("events===>",events)
})
.catch((err) => {
messageError($q, err);
diff --git a/src/modules/11_discipline/interface/request/investigateFact.ts b/src/modules/11_discipline/interface/request/investigateFact.ts
index 93309b343..02aafc9fb 100644
--- a/src/modules/11_discipline/interface/request/investigateFact.ts
+++ b/src/modules/11_discipline/interface/request/investigateFact.ts
@@ -1,6 +1,6 @@
interface FormData {
- id:string
- idComplaint:string
+ id: string;
+ idComplaint: string;
investigationDetail: string;
complaint: string;
complaintdetail: string;
@@ -11,27 +11,37 @@ interface FormData {
fileComplaint: File | null;
investigationExtendStatus: boolean | null;
investigationDateStart: Date | null;
- investigationDateEnd: Date|null;
+ investigationDateEnd: Date | null;
investigationDaysExtend: number | null;
investigationStatusResult: string;
investigationCauseText: string;
- complaintStatus:string
- result: string
- directors:object|null
- status:string
- disciplineInvestigateDocs:any
- disciplineInvestigateRelevantDocs:any
- documentFile:any|null
- respondentType:string
- organizationId:string
- persons:object|null
+ complaintStatus: string;
+ result: string;
+ directors: object | null;
+ status: string;
+ disciplineInvestigateDocs: any;
+ disciplineInvestigateRelevantDocs: any;
+ documentFile: any | null;
+ respondentType: string;
+ organizationId: string;
+ persons: object | null;
+ investigationExtendHistory: ExtendHistoryObject[];
}
-interface ArrayPerson{
- id:string
- name:string
- position:string
- email:string
- phone:string
+
+interface ExtendHistoryObject {
+ name: string;
+ num: number;
+ daysExtend: number | null;
+ dateStart: Date;
+ dateEnd: Date;
+}
+
+interface ArrayPerson {
+ id: string;
+ name: string;
+ position: string;
+ email: string;
+ phone: string;
}
interface MyObjectInvestigateRef {
complaint: object | null;
@@ -49,5 +59,4 @@ interface MyObjectInvestigateRef {
[key: string]: any;
}
-
export type { FormData, MyObjectInvestigateRef };
diff --git a/src/modules/11_discipline/interface/response/Main.ts b/src/modules/11_discipline/interface/response/Main.ts
index 37ebe3441..30f3fa71b 100644
--- a/src/modules/11_discipline/interface/response/Main.ts
+++ b/src/modules/11_discipline/interface/response/Main.ts
@@ -2,12 +2,14 @@ interface DataOptionRes {
organizationId: string;
organizationName: string;
}
+
interface CaledarInvestigatefacts {
id: string;
title: string;
investigationDateStart: Date;
investigationDateEnd: Date;
}
+
interface CaledarDisciplinary {
id: string;
title: string;
@@ -15,4 +17,10 @@ interface CaledarDisciplinary {
disciplinaryDateStart: Date;
}
-export type { DataOptionRes, CaledarInvestigatefacts, CaledarDisciplinary };
+interface ExtendHistoryObject {
+ name: string;
+ dateStart: Date;
+ dateEnd: Date;
+}
+
+export type { DataOptionRes, CaledarInvestigatefacts, CaledarDisciplinary, ExtendHistoryObject };