-
สืบสวนข้อเท็จจริง
+
+ รายการสืบสวนข้อเท็จจริง
+
+
+
+
+
+ เพิ่มรายการสืบสวนข้อเท็จจริง
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/investigatefactsAdd.vue b/src/modules/11_discipline/components/2_InvestigateFacts/investigatefactsAdd.vue
new file mode 100644
index 000000000..8ec344347
--- /dev/null
+++ b/src/modules/11_discipline/components/2_InvestigateFacts/investigatefactsAdd.vue
@@ -0,0 +1,350 @@
+
+
+
+
+ เพิ่มรายการสืบสวนข้อเท็จจริง
+
+
+
+
+
+
+
+
+
+
+
+ filterFnOptionsType(inputValue, doneFn, 'faultOp'
+ )"
+ >
+
+
+ ไม่มีข้อมูล
+
+
+
+
+
+
+ filterFnOptionsType(inputValue, doneFn, 'investigationOp'
+ )"
+ >
+
+
+ ไม่มีข้อมูล
+
+
+
+
+
+
+
+ วันที่สืบสวน
+
+
+
+
+
+ {{ year + 543 }}
+ {{
+ parseInt(value + 543)
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+ {{
+ parseInt(value + 543)
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+ filterFnOptionsType(inputValue, doneFn, 'daysExtendOp'
+ )"
+ >
+
+
+ ไม่มีข้อมูล
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ยืนยันผลการสืบสวน
+
+
+
+
+
+
+
+
+
diff --git a/src/modules/11_discipline/router.ts b/src/modules/11_discipline/router.ts
index 0f41d90f9..90a6286b1 100644
--- a/src/modules/11_discipline/router.ts
+++ b/src/modules/11_discipline/router.ts
@@ -1,6 +1,7 @@
const complaintMain = () => import("@/modules/11_discipline/components/1_Complaint/MainPage.vue")
const factsMain = () => import("@/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue")
+const investigatefactsAdd = () => import("@/modules/11_discipline/components/2_InvestigateFacts/investigatefactsAdd.vue")
const disciplinaryMain = () => import("@/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue")
@@ -35,4 +36,14 @@ export default [
Role: "coin",
},
},
+ {
+ path: "/discipline/investigatefacts/add",
+ name: "/discipline-investigatefactsAdd",
+ component: investigatefactsAdd,
+ meta: {
+ Auth: true,
+ Key: [11.2],
+ Role: "coin",
+ },
+ },
]
\ No newline at end of file
diff --git a/src/modules/11_discipline/stroes/InvestigateFactStore.ts b/src/modules/11_discipline/stroes/InvestigateFactStore.ts
new file mode 100644
index 000000000..072fe5ee4
--- /dev/null
+++ b/src/modules/11_discipline/stroes/InvestigateFactStore.ts
@@ -0,0 +1,53 @@
+import { defineStore } from "pinia";
+import { ref } from "vue";
+
+export const useInvestigateFactStore = defineStore("InvestigateFact", () => {
+ const rows = ref
([])
+
+ async function fecthList(data: any) {
+ let datalist = data.map((e: any) => ({
+ subject: e.subject,
+ interrogated: e.interrogated,
+ fault: convertFault(e.fault),
+ status: convertSatatus(e.status),
+ active: activeStatus(e.active)
+
+ }))
+ rows.value = datalist
+ console.log(rows.value)
+ }
+ function convertFault(val: string) {
+ switch (val) {
+ case "0":
+ return "ความผิดวินัยยังไม่ระบุ"
+ case "1":
+ return "ความผิดวินัยไม่ร้ายแรง"
+ case "2":
+ return "ความผิดวินัยร้ายแรง"
+ }
+ }
+ function convertSatatus(val: string) {
+ switch (val) {
+ case "0":
+ return "ยังไม่ระบุ"
+ case "1":
+ return "ร้ายแรง"
+ case "2":
+ return "ไม่ร้ายแรง"
+ case "3":
+ return "ยุติเรื่อง"
+ }
+ }
+ function activeStatus(val: string) {
+ switch (val) {
+ case "0":
+ return "ยังไม่ได้ยืนยันผล"
+ case "1":
+ return "ยืนยันผลเเล้ว"
+ }
+ }
+ return {
+ fecthList,
+ rows,
+ };
+})
\ No newline at end of file