fix: ตัวแปร ค้นหาขั้นสูง เก็บใน store
This commit is contained in:
parent
3a7cfad344
commit
9dcb54a384
8 changed files with 330 additions and 384 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { ref } from "vue";
|
||||
import { ref, reactive } from "vue";
|
||||
import { defineStore } from "pinia";
|
||||
import type { QTableProps } from "quasar";
|
||||
|
||||
|
|
@ -7,6 +7,74 @@ import type { FaultTypeOption } from "@/modules/11_discipline/interface/request/
|
|||
import type { ArrayPersonAdd } from "@/modules/11_discipline/interface/response/investigate";
|
||||
|
||||
export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
||||
const formComplaint = reactive<{
|
||||
dateReceived: [Date, Date] | null;
|
||||
respondentType: string;
|
||||
offenseDetails: string;
|
||||
levelConsideration: string;
|
||||
dateConsideration: [Date, Date] | null;
|
||||
}>({
|
||||
dateReceived: null, // วันที่รับเรื่องเริ่มต้น[0] - สิ้นสุด[1]
|
||||
respondentType: "", // ผู้ถูกร้องเรียน
|
||||
offenseDetails: "", // ลักษณะความผิด
|
||||
levelConsideration: "", // ระดับการพิจารณา
|
||||
dateConsideration: null, // วันที่เริ่มต้น[0] - สิ้นสุดการพิจารณา[1]
|
||||
});
|
||||
|
||||
const formInvestigateFacts = reactive<{
|
||||
respondentType: string;
|
||||
offenseDetails: string;
|
||||
investigationDetail: string;
|
||||
investigationDate: [Date, Date] | null;
|
||||
dateReceived: [Date, Date] | null;
|
||||
investigationStatusResult: string;
|
||||
}>({
|
||||
respondentType: "", // ผู้ถูกสืบสวน
|
||||
offenseDetails: "", // ลักษณะความผิด
|
||||
investigationDetail: "", // ลักษณะการสืบสวน
|
||||
investigationDate: null, // วันที่สืบสวนเริ่มต้น[0] - สิ้นสุด[1]
|
||||
dateReceived: null, // วันที่รับเรื่องเริ่มต้น[0] - สิ้นสุด[1]
|
||||
investigationStatusResult: "", // ผลการสืบสวน
|
||||
});
|
||||
|
||||
const formInvestigateDisciplinary = reactive<{
|
||||
respondentType: string;
|
||||
offenseDetails: string;
|
||||
disciplinaryFaultLevel: string;
|
||||
disciplinaryCaseFault: string;
|
||||
disciplinaryDate: [Date, Date] | null;
|
||||
dateReceived: [Date, Date] | null;
|
||||
}>({
|
||||
respondentType: "", // ผู้ถูกสอบสวน
|
||||
offenseDetails: "", // ลักษณะความผิด
|
||||
disciplinaryFaultLevel: "", // ระดับโทษความผิด
|
||||
disciplinaryCaseFault: "", // กรณีความผิด
|
||||
disciplinaryDate: null, // วันที่สอบสวนเริ่มต้น[0]-สิ้นสุด[1]
|
||||
dateReceived: null, // วันที่รับเรื่องเริ่มต้น[0]-สิ้นสุด[1]
|
||||
});
|
||||
|
||||
const formResult = reactive<{
|
||||
respondentType: string;
|
||||
offenseDetails: string;
|
||||
disciplinaryFaultLevel: string;
|
||||
disciplinaryCaseFault: string;
|
||||
disciplinaryDate: [Date, Date] | null;
|
||||
resultDisciplineType: string;
|
||||
resultTitleType: string;
|
||||
resultOc: string;
|
||||
resultYear: number | null;
|
||||
}>({
|
||||
respondentType: "", // ผู้ถูกสอบสวน
|
||||
offenseDetails: "", // ลักษณะความผิด
|
||||
disciplinaryFaultLevel: "", // ระดับโทษความผิด
|
||||
disciplinaryCaseFault: "", // กรณีความผิด
|
||||
disciplinaryDate: null, // วันที่สอบสวนเริ่มต้น[0]-สิ้นสุด[1]
|
||||
resultDisciplineType: "", // ประเภทวินัย input
|
||||
resultTitleType: "", // ประเภทของเรื่อง
|
||||
resultOc: "", // หน่วยงาน/ส่วนราชการ
|
||||
resultYear: null, // ปีงบประมาณ
|
||||
});
|
||||
|
||||
/** option ผู้ถูกสอบสวน*/
|
||||
const complainantoptionsMain = ref<DataOption[]>([
|
||||
{ id: "PERSON", name: "บุคคล" },
|
||||
|
|
@ -874,5 +942,9 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
|||
pathDirector,
|
||||
convertType,
|
||||
checkValueFaultT,
|
||||
formComplaint,
|
||||
formInvestigateFacts,
|
||||
formInvestigateDisciplinary,
|
||||
formResult,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue