diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index fa3a8e852..823f4a2e1 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -431,7 +431,7 @@ const menuList = readonly([ { key: 11.4, label: "ออกคำสั่ง", - path: "/discipline-order", + path: "/disciplineorder", role: "coin", }, { diff --git a/src/modules/07_insignia/components/3_result/fileUpload.vue b/src/modules/07_insignia/components/3_result/fileUpload.vue index 14cfb4e48..eb7307d4f 100644 --- a/src/modules/07_insignia/components/3_result/fileUpload.vue +++ b/src/modules/07_insignia/components/3_result/fileUpload.vue @@ -152,7 +152,7 @@ const pagination = ref({
- +
@@ -167,20 +167,12 @@ const pagination = ref({
-
- + +
- -
- -
-
- - -
-
diff --git a/src/modules/07_insignia/components/5_Borrow/Main.vue b/src/modules/07_insignia/components/5_Borrow/Main.vue index f0930fed2..e3ce435a5 100644 --- a/src/modules/07_insignia/components/5_Borrow/Main.vue +++ b/src/modules/07_insignia/components/5_Borrow/Main.vue @@ -537,7 +537,6 @@ const clearInsigniaFilters = (name: string) => { -
เพิ่ม diff --git a/src/modules/07_insignia/views/ResultPage.vue b/src/modules/07_insignia/views/ResultPage.vue index 79d622382..4f1f561f3 100644 --- a/src/modules/07_insignia/views/ResultPage.vue +++ b/src/modules/07_insignia/views/ResultPage.vue @@ -544,71 +544,72 @@ const clearInsigniaFilters = (name: string) => { class="q-pa-none" >
-
-
- - - อัพโหลดไฟล์บันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์ +
+
+ - -
-
- - อัพโหลดไฟล์บันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์ + + + อัพโหลดไฟล์บันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์ + +
+ + อัพโหลดไฟล์บันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์ + +
+
+
+ - + + อัพโหลดไฟล์บันทึกผลการจ่ายใบกำกับ + +
+ + อัพโหลดไฟล์บันทึกผลการจ่ายใบกำกับ + +
+
-
- - - อัพโหลดไฟล์บันทึกผลการจ่ายใบกำกับ - -
-
- - อัพโหลดไฟล์บันทึกผลการจ่ายใบกำกับ - -
-
-
+ +
{ option-value="id" :readonly="false" :borderless="false" - style="min-width: 150px" + style="width: 280px" @update:model-value="selectorInsignia" @filter="(inputValue:any, doneFn:Function) => filterSelector(inputValue, doneFn,'insigniaTypeFilter' @@ -645,122 +646,8 @@ const clearInsigniaFilters = (name: string) => { - - - - - -
- - - - -
- -
- - เพิ่ม - -
- + -
{ class="gt-xs q-ml-sm" />
+ +
+
+ + + + + + + + +
+ + เพิ่ม + +
import { ref, onMounted } from "vue"; +import { useQuasar } from "quasar"; import { useRoute, useRouter } from "vue-router"; import type { DataOption } from "../../interface/index/Main"; @@ -9,33 +10,64 @@ import { useCounterMixin } from "@/stores/mixin"; import { useComplainstDataStore } from "../../stroes/ComplaintsStore"; const route = useRoute(); +const $q = useQuasar(); const router = useRouter(); const mixin = useCounterMixin(); -const { date2Thai } = mixin; +const { date2Thai, dialogConfirm } = mixin; const complainstStore = useComplainstDataStore(); -const { selectComplainantTpye } = complainstStore; +const { selectComplainantTpye, filterSelector, fectOptioin } = complainstStore; -const complainantType = ref(""); const complainantoptions = ref([ { id: "0", name: "บุคคล" }, { id: "1", name: "หน่ายงาน" }, { id: "2", name: "กรุงเทพหมานคร" }, ]); -const complainant = ref(""); -const office = ref(""); -const agency = ref(""); const agencytoptions = ref([ { id: "0", name: "หน่ายงานเอ" }, { id: "1", name: "หน่ายงานบี" }, { id: "2", name: "หน่ายงานชี" }, ]); +const offenseDescriptiontoptions = ref([ + { id: "0", name: "ยังไม่ระบุ" }, + { id: "1", name: "ไม่ร้ายแรง" }, + { id: "2", name: "ร้ายแรง" }, +]); +const considerationLeveltoptions = ref([ + { id: "0", name: "ปกติ" }, + { id: "1", name: "ด่วน" }, + { id: "2", name: "ด่วนมาก" }, +]); +const receivecomplaintstoptions = ref([ + { id: "0", name: "สตง" }, + { id: "1", name: "ปปช" }, + { id: "2", name: "ปปท" }, + { id: "3", name: "จดหมาย" }, + { id: "4", name: "อีเมล" }, + { id: "5", name: "โทรศัพท์" }, + { id: "6", name: "บอกกล่าว" }, +]); +// ข้อมูล form +const complainantType = ref(""); +const complainant = ref(""); // รายชื่อจากทะเบียน +const office = ref(""); // สำนักงาน +const agency = ref(""); const topicComplaint = ref(""); const detail = ref(""); const datereceive = ref(); +const dateconsideration = ref(); +const offenseDescription = ref(""); +const considerationLevel = ref(""); +const datewarn = ref(); +const receivecomplaints = ref(""); +const petitioner = ref(""); const files = ref(); const fileDocDataUpload = ref([]); +onMounted(() => { + fectOptioin(complainantoptions.value, agencytoptions.value); +}); + async function selectComplainant(val: string) { complainant.value = ""; office.value = ""; @@ -85,6 +117,15 @@ const fileUploadDoc = async (files: any) => { fileDocDataUpload.value.push(file); }); }; + +function onSubmit() { + dialogConfirm( + $q, + async () => {}, + "ยืนยันการบันทึกข้อมูล", + "ต้องการยืนยันการบันทึกข้อมูลนี้หรือไม่ ?" + ); +} diff --git a/src/modules/11_discipline/components/1_Complaint/MainPage.vue b/src/modules/11_discipline/components/1_Complaint/MainPage.vue index 209bdcb7d..c1d165519 100644 --- a/src/modules/11_discipline/components/1_Complaint/MainPage.vue +++ b/src/modules/11_discipline/components/1_Complaint/MainPage.vue @@ -162,7 +162,7 @@ const paginationLabel = (start: string, end: string, total: string) => { color="primary" icon="mdi-plus" @click="redirectToPageadd()" - >เพิ่มเพิ่มเรื่องร้องเรียน
diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/investigatefactsAdd.vue b/src/modules/11_discipline/components/2_InvestigateFacts/investigatefactsAdd.vue index 87904f1b2..0fabed5b6 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/investigatefactsAdd.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/investigatefactsAdd.vue @@ -16,6 +16,7 @@ const complaintdetail = ref(""); const detail = ref(""); const fault = ref(""); const results = ref(""); +const other = ref(""); const evidenceFiles = ref(null); const fileComplaint = ref(null); const clickTime = ref(false); @@ -23,19 +24,23 @@ const date = ref(null); const dateEnd = ref(null); const investigation = ref(""); const faultOps = ref([ - { id: "000-000", value: "test1" }, - { id: "000-001", value: "test2" }, + { id: "001", value: "ยังไม่ระบุ" }, + { id: "002", value: "ไม่ร้ายเเรง" }, + { id: "003", value: "ร้ายเเรง" }, ]); const faultOp = ref(); const investigationOps = ref([ - { id: "000-000", value: "test1" }, - { id: "000-001", value: "test2" }, + { id: "001", value: "เเต่งตั้งการสืบสวน" }, + { id: "002", value: "สืบสวนทางลับ" }, + { id: "003", value: "อื่นๆ" }, ]); const daysExtend = ref(""); const daysExtendOp = ref(); const daysExtendOps = ref([ - { id: "000-000", value: "test1" }, - { id: "000-001", value: "test2" }, + { id: "000", value: "15 วัน" }, + { id: "001", value: "30 วัน" }, + { id: "002", value: "45 วัน" }, + { id: "003", value: "60 วัน" }, ]); const investigationOp = ref(); @@ -92,54 +97,69 @@ function filterFnOptionsType(val: string, update: any, type: string) { type="textarea" />
-
- +
+ - -
-
- + ไม่มีข้อมูล + + + + +
+
+ - + > + +
+
+ +
+

-
- - บับทึกข้อมูล -
+
+ + บับทึกข้อมูล +
diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue new file mode 100644 index 000000000..20b02789c --- /dev/null +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue @@ -0,0 +1,268 @@ + + diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue index 86b199249..dbf4d12c3 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue @@ -1,9 +1,259 @@ - + - \ No newline at end of file + diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Table.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Table.vue new file mode 100644 index 000000000..ec5dfc0de --- /dev/null +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Table.vue @@ -0,0 +1,214 @@ + + + diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/addInvestigate.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/addInvestigate.vue new file mode 100644 index 000000000..8a3fa7802 --- /dev/null +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/addInvestigate.vue @@ -0,0 +1,701 @@ + + diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/director.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/director.vue new file mode 100644 index 000000000..f12a5d8fb --- /dev/null +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/director.vue @@ -0,0 +1,166 @@ + + + diff --git a/src/modules/11_discipline/components/4_Order/MainPage.vue b/src/modules/11_discipline/components/4_Order/MainPage.vue index 12505b8fb..1285c2868 100644 --- a/src/modules/11_discipline/components/4_Order/MainPage.vue +++ b/src/modules/11_discipline/components/4_Order/MainPage.vue @@ -1,9 +1,232 @@ - + - \ No newline at end of file + diff --git a/src/modules/11_discipline/components/4_Order/OrderPage.vue b/src/modules/11_discipline/components/4_Order/OrderPage.vue new file mode 100644 index 000000000..3c8cbc24d --- /dev/null +++ b/src/modules/11_discipline/components/4_Order/OrderPage.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/src/modules/11_discipline/components/4_Order/Step01.vue b/src/modules/11_discipline/components/4_Order/Step01.vue new file mode 100644 index 000000000..e9be1de39 --- /dev/null +++ b/src/modules/11_discipline/components/4_Order/Step01.vue @@ -0,0 +1,221 @@ + + + + + diff --git a/src/modules/11_discipline/components/4_Order/Step02.vue b/src/modules/11_discipline/components/4_Order/Step02.vue new file mode 100644 index 000000000..8424b5991 --- /dev/null +++ b/src/modules/11_discipline/components/4_Order/Step02.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/src/modules/11_discipline/components/4_Order/Step03.vue b/src/modules/11_discipline/components/4_Order/Step03.vue new file mode 100644 index 000000000..f3daddd87 --- /dev/null +++ b/src/modules/11_discipline/components/4_Order/Step03.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/modules/11_discipline/components/5_Report/MainPage.vue b/src/modules/11_discipline/components/5_Report/MainPage.vue index 29f73a485..142233bc7 100644 --- a/src/modules/11_discipline/components/5_Report/MainPage.vue +++ b/src/modules/11_discipline/components/5_Report/MainPage.vue @@ -1,9 +1,148 @@ - + - + diff --git a/src/modules/11_discipline/components/5_Report/reportDetail.vue b/src/modules/11_discipline/components/5_Report/reportDetail.vue new file mode 100644 index 000000000..4f36355c0 --- /dev/null +++ b/src/modules/11_discipline/components/5_Report/reportDetail.vue @@ -0,0 +1,355 @@ + + diff --git a/src/modules/11_discipline/components/ุ6_Information/Channel/MainPage.vue b/src/modules/11_discipline/components/ุ6_Information/Channel/MainPage.vue index 87ddd73fb..22e83bc1f 100644 --- a/src/modules/11_discipline/components/ุ6_Information/Channel/MainPage.vue +++ b/src/modules/11_discipline/components/ุ6_Information/Channel/MainPage.vue @@ -1,9 +1,285 @@ - + - + diff --git a/src/modules/11_discipline/components/ุ6_Information/Channel/addChannel.vue b/src/modules/11_discipline/components/ุ6_Information/Channel/addChannel.vue new file mode 100644 index 000000000..0a6c0eccb --- /dev/null +++ b/src/modules/11_discipline/components/ุ6_Information/Channel/addChannel.vue @@ -0,0 +1,214 @@ + + diff --git a/src/modules/11_discipline/router.ts b/src/modules/11_discipline/router.ts index 6ccb4437a..55124354e 100644 --- a/src/modules/11_discipline/router.ts +++ b/src/modules/11_discipline/router.ts @@ -1,115 +1,180 @@ +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" + ); +const oredrMain = () => + import("@/modules/11_discipline/components/4_Order/MainPage.vue"); +const report = () => + import("@/modules/11_discipline/components/5_Report/MainPage.vue"); +const directorMain = () => + import( + "@/modules/11_discipline/components/ุ6_Information/Director/MainPage.vue" + ); +const channelMain = () => + import( + "@/modules/11_discipline/components/ุ6_Information/Channel/MainPage.vue" + ); +const complaintAdd = () => + import("@/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue"); +const reportType = () => + import("@/modules/11_discipline/components/5_Report/reportDetail.vue"); -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") -const oredrMain = () => import("@/modules/11_discipline/components/4_Order/MainPage.vue") -const report = () => import("@/modules/11_discipline/components/5_Report/MainPage.vue") -const directorMain = () => import("@/modules/11_discipline/components/ุ6_Information/Director/MainPage.vue") -const channelMain = () => import("@/modules/11_discipline/components/ุ6_Information/Channel/MainPage.vue") -const complaintAdd = () => import("@/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue") -const orderAdd = () => import("@/modules/11_discipline/components/4_Order/OrderPage.vue") - - +const InvestigateDisciplinaryAdd = () => + import( + "@/modules/11_discipline/components/3_InvestigateDisciplinary/addInvestigate.vue" + ); +const channelAdd = () => + import( + "@/modules/11_discipline/components/ุ6_Information/Channel/addChannel.vue" + ); +const orderPage = () => import("@/modules/11_discipline/components/4_Order/OrderPage.vue") export default [ - { - path: "/discipline/complaints", - name: "/discipline-complaints", - component: complaintMain, - meta: { - Auth: true, - Key: [11.1], - Role: "coin", - }, + { + path: "/discipline/complaints", + name: "/discipline-complaints", + component: complaintMain, + meta: { + Auth: true, + Key: [11.1], + Role: "coin", }, - { - path: "/discipline/complaints/add", - name: "/discipline-complaints-add", - component: complaintAdd, - meta: { - Auth: true, - Key: [11.1], - Role: "coin", - }, + }, + { + path: "/discipline/complaints/add", + name: "/discipline-complaints-add", + component: complaintAdd, + meta: { + Auth: true, + Key: [11.1], + Role: "coin", }, - { - path: "/discipline/investigatefacts", - name: "/discipline-investigatefacts", - component: factsMain, - meta: { - Auth: true, - Key: [11.2], - Role: "coin", - }, + }, + { + path: "/discipline/investigatefacts", + name: "/discipline-investigatefacts", + component: factsMain, + meta: { + Auth: true, + Key: [11.2], + Role: "coin", }, - { - path: "/discipline/disciplinary", - name: "/discipline-disciplinary", - component: disciplinaryMain, - meta: { - Auth: true, - Key: [11.3], - Role: "coin", - }, + }, + { + path: "/discipline/disciplinary", + name: "/discipline-disciplinary", + component: disciplinaryMain, + meta: { + Auth: true, + Key: [11.3], + Role: "coin", }, - { - path: "/discipline-order", - name: "/disciplineorder", - component: oredrMain, - meta: { - Auth: true, - Key: [11.4], - Role: "coin", - }, + }, + { + path: "/discipline-order", + name: "/disciplineorder", + component: oredrMain, + meta: { + Auth: true, + Key: [11.4], + Role: "coin", }, - { - path: "/discipline/report", - name: "/discipline-report", - component: report, - meta: { - Auth: true, - Key: [11.5], - Role: "coin", - }, + }, + { + path: "/discipline/report", + name: "/discipline-report", + component: report, + meta: { + Auth: true, + Key: [11.5], + Role: "coin", }, - { - path: "/discipline/director", - name: "/discipline-director", - component: directorMain, - meta: { - Auth: true, - Key: [11.6], - Role: "coin", - }, + }, + { + path: "/discipline/report/:type", + name: "/discipline-reportType", + component: reportType, + meta: { + Auth: true, + Key: [11.5], + Role: "coin", }, - { - path: "/discipline/channel", - name: "/discipline-channel", - component: channelMain, - meta: { - Auth: true, - Key: [11.6], - Role: "coin", - }, + }, + { + path: "/discipline/director", + name: "/discipline-director", + component: directorMain, + meta: { + Auth: true, + Key: [11.6], + Role: "coin", }, - { - path: "/discipline/investigatefacts/add", - name: "/discipline-investigatefactsAdd", - component: investigatefactsAdd, - meta: { - Auth: true, - Key: [11.2], - Role: "coin", - }, + }, + { + path: "/discipline/director", + name: "/discipline-director", + component: directorMain, + meta: { + Auth: true, + Key: [11.6], + Role: "coin", }, - { - path: "/discipline-order/add", - name: "/discipline-order-add", - component: orderAdd, - meta: { - Auth: true, - Key: [11.4], - Role: "coin", - }, + }, + { + path: "/discipline/channel", + name: "/discipline-channel", + component: channelMain, + meta: { + Auth: true, + Key: [11.6], + Role: "coin", }, -] \ No newline at end of file + }, + { + path: "/discipline/investigatefacts/add", + name: "/discipline-investigatefactsAdd", + component: investigatefactsAdd, + meta: { + Auth: true, + Key: [11.2], + Role: "coin", + }, + }, + { + path: "/discipline/InvestigateDisciplinary/add", + name: "/discipline-InvestigateDisciplinaryAdd", + component: InvestigateDisciplinaryAdd, + meta: { + Auth: true, + Key: [11.3], + Role: "coin", + }, + }, + { + path: "/discipline/channel/add", + name: "/discipline-channelAdd", + component: channelAdd, + meta: { + Auth: true, + Key: [11.2], + Role: "coin", + }, + }, + { + path: "/discipline-order/add", + name: "/disciplineorder-add", + component: orderPage, + meta: { + Auth: true, + Key: [11.4], + Role: "coin", + }, + }, +]; diff --git a/src/modules/11_discipline/stroes/ComplaintsStore.ts b/src/modules/11_discipline/stroes/ComplaintsStore.ts index d57c54d00..5f772a96d 100644 --- a/src/modules/11_discipline/stroes/ComplaintsStore.ts +++ b/src/modules/11_discipline/stroes/ComplaintsStore.ts @@ -1,9 +1,12 @@ import { defineStore } from "pinia"; import { ref } from "vue"; +import type { DataOption } from "../interface/index/Main"; + export const useComplainstDataStore = defineStore("complainst", () => { const rows = ref([]) - const optionListName = ref([]) + const optionListName = ref([{}]) + function fectComplainst(data: any) { let datalist = data.map((e: any) => ({ @@ -19,13 +22,57 @@ export const useComplainstDataStore = defineStore("complainst", () => { } function selectComplainantTpye(list: any) { - console.log(list); optionListName.value = list } + + const complainantoptionsMain = ref() + const complainantoptions = ref() + const agencytoptionsMain = ref() + const agencytoptions = ref() + function fectOptioin(complainantoptions: any, agencytoptions: any) { + complainantoptionsMain.value = complainantoptions + agencytoptionsMain.value = agencytoptions + + } + function filterSelector(val: any, update: Function, type: string) { + console.log(val, type); + let data: DataOption[] | undefined = undefined; + let filter: DataOption[] | undefined = undefined; + if (type == "filtercomplainantType") { + data = complainantoptionsMain.value + } else if (type == "filteragencytoptions") { + data = agencytoptionsMain.value + } + if (val == "") { + update(() => { + filter = data; + }); + } else { + update(() => { + if (data) { + filter = data.filter( + (e) => e.name.search(val) !== -1 + ); + } + }); + } + if (filter) { + if (type == "filtercomplainantType") { + complainantoptions.value = filter + } else if (type = "filteragencytoptions") { + agencytoptions.value = filter + } + } + + } return { rows, optionListName, fectComplainst, - selectComplainantTpye + selectComplainantTpye, + filterSelector, + fectOptioin, + complainantoptions, + agencytoptions, } }) \ No newline at end of file diff --git a/src/modules/11_discipline/stroes/InvestigateDisStore.ts b/src/modules/11_discipline/stroes/InvestigateDisStore.ts new file mode 100644 index 000000000..f9396f80c --- /dev/null +++ b/src/modules/11_discipline/stroes/InvestigateDisStore.ts @@ -0,0 +1,69 @@ +import { defineStore } from "pinia"; +import { ref } from "vue"; + +export const useInvestigateDisStore = defineStore("InvestigateDis", () => { + const rows = ref([]); + + async function fecthList(data: any) { + let datalist = data.map((e: any) => ({ + subject: e.subject, + interrogated: e.interrogated, + fault: convertFault(e.fault), + penaltyLevel: convertPenaltyLevel(e.penaltyLevel), + caseFault: e.caseFault, + dateInvestigate: e.dateInvestigate, + 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 "ยุติเรื่อง"; + } + } + function activeStatus(val: string) { + switch (val) { + case "0": + return "ยังไม่ได้ยืนยันผล"; + case "1": + return "ยืนยันผลเเล้ว"; + } + } + function convertPenaltyLevel(val: string) { + switch (val) { + case "0": + return "ไม่ร้ายแรง"; + case "1": + return "ภาคทัณฑ์"; + case "3": + return "ตัดเงินเดือน"; + case "4": + return "ลดขั้นเงินเดือน"; + case "5": + return "ร้ายแรง"; + case "6": + return "ปลดออก"; + case "7": + return "ไล่ออก"; + } + } + return { + fecthList, + rows, + }; +}); diff --git a/src/modules/11_discipline/stroes/OrderStore.ts b/src/modules/11_discipline/stroes/OrderStore.ts new file mode 100644 index 000000000..e08314fd9 --- /dev/null +++ b/src/modules/11_discipline/stroes/OrderStore.ts @@ -0,0 +1,24 @@ +import { defineStore } from "pinia"; +import { ref } from "vue"; + +export const useOrderStore = defineStore("order", () => { + const rows = ref([]) + async function fecthOrder(data: any) { + let datalist = data.map((e: any) => ({ + subject: e.subject, + ordernumber: e.ordernumber, + dateOrder: e.dateOrder, + orderby: e.orderby, + signer: e.signer, + statusorder: e.statusorder + + + })) + rows.value = datalist + } + + return { + rows, + fecthOrder + } +}) \ No newline at end of file diff --git a/src/modules/11_discipline/stroes/ReportStore.ts b/src/modules/11_discipline/stroes/ReportStore.ts new file mode 100644 index 000000000..0ec6fcd20 --- /dev/null +++ b/src/modules/11_discipline/stroes/ReportStore.ts @@ -0,0 +1,24 @@ +import { defineStore } from "pinia"; +import { ref } from "vue"; + +export const useReportDataStore = defineStore("report11", () => { + interface OptionReport { + id: string; + title: string; + } + const optionReport = ref([ + { id: "1", title: "รายงานเรื่องร้องเรียนแยกรายวัน รายเดือน รายปี"}, + { id: "2", title: "รายงานเรื่องร้องเรียนข้าราชการสามัญฯ ในสังกัดกรุงเทพมหานคร แยกตามหน่วยงาน" }, + { id: "3", title: "รายงานจำนวนข้าราชการสามัญฯ ที่กระทำความผิดทางวินัย แยกตามลักษณะความผิด" }, + { id: "4", title: "รายงานรายชื่อข้าราชการสามัญฯ ที่กระทำความผิดทางวินัยแยกตามลักษณะความผิด" }, + { id: "5", title: "รายงานจำนวนข้าราชการสามัญฯ ที่กระทำความผิดแยกตามระดับความผิด" }, + { id: "6", title: "รายงานรายชื่อข้าราชการสามัญฯ ที่กระทำความผิดทางวินัยแยกตามลักษณะความผิด" }, + { id: "7", title: "รายงานจำนวนข้าราชการสามัญฯ ที่กระทำความผิดทางวินัยแต่ยุติเรื่อง แยกลักษณะความผิด" }, + { id: "8", title: "รายงานจำนวนข้าราชการสามัญฯ ที่กระทำความผิดทางวินัยแต่ยุติเรื่อง แยกตามตำแหน่ง" }, + ]); + + + return { + optionReport, + }; +});