@@ -103,11 +70,11 @@ function filterFnOptionsType(val: string, update: any, type: string) {
outlined
dense
v-model="fault"
- :options="faultOp"
+ :options="investigateFactStore.faultOp"
label="ลักษณะความผิด"
emit-value
map-options
- option-label="value"
+ option-label="name"
option-value="id"
use-input
@filter="(inputValue: any,
@@ -127,11 +94,11 @@ function filterFnOptionsType(val: string, update: any, type: string) {
outlined
dense
v-model="investigation"
- :options="investigationOp"
+ :options="investigateFactStore.investigationOp"
label="ลักษณะการสืบสวน"
emit-value
map-options
- option-label="value"
+ option-label="name"
option-value="id"
use-input
@filter="(inputValue: any,
@@ -195,7 +162,7 @@ function filterFnOptionsType(val: string, update: any, type: string) {
dense
lazy-rules
borderless
- :model-value="date !== null ? date2Thai(date) : null"
+ :model-value="date ? date2Thai(date) : null"
:rules="[
(val) =>
!!val || `${'กรุณาเลือกวันที่เริ่มการสอบสวน'}`,
@@ -234,9 +201,7 @@ function filterFnOptionsType(val: string, update: any, type: string) {
dense
lazy-rules
borderless
- :model-value="
- dateEnd !== null ? date2Thai(dateEnd) : null
- "
+ :model-value="dateEnd ? date2Thai(dateEnd) : null"
:rules="[
(val) =>
!!val || `${'กรุณาเลือกวันที่สิ้นสุดการสอบสวน'}`,
@@ -262,14 +227,17 @@ function filterFnOptionsType(val: string, update: any, type: string) {
dense
lazy-rules
v-model="daysExtend"
- :options="daysExtendOp"
+ :options="investigateFactStore.daysExtendOp"
label="จำนวนวันที่ต้องการขยาย"
emit-value
map-options
:rules="[
- (val) => !!val || `${'กรุณาเลือกจำนวนวันที่ต้องการขยาย'}`,
+ (val) =>
+ clickTime === true
+ ? !!val || 'กรุณาเลือกจำนวนวันที่ต้องการขยาย'
+ : true,
]"
- option-label="value"
+ option-label="name"
option-value="id"
use-input
@filter="(inputValue: any,
diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue b/src/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue
index a15f5730b..329b575b5 100644
--- a/src/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue
+++ b/src/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue
@@ -2,26 +2,26 @@
import { ref, useAttrs, onMounted } from "vue";
import type { QTableProps } from "quasar";
import router from "@/router";
-import { useCounterMixin } from "@/stores/mixin";
import { useQuasar } from "quasar";
+// import { useCounterMixin } from "@/stores/mixin";
-import config from "@/app.config";
-import http from "@/plugins/http";
+// import config from "@/app.config";
+// import http from "@/plugins/http";
import { useInvestigateFactStore } from '../../stroes/InvestigateFactStore'
const dataInvestigate = useInvestigateFactStore()
const { fecthList } = dataInvestigate
-const mixin = useCounterMixin();
-const {
- date2Thai,
- success,
- messageError,
- showLoader,
- hideLoader,
- dialogConfirm,
- dialogRemove,
-} = mixin;
+// const mixin = useCounterMixin();
+// const {
+// date2Thai,
+// success,
+// messageError,
+// showLoader,
+// hideLoader,
+// dialogConfirm,
+// dialogRemove,
+// } = mixin;
const $q = useQuasar(); //ใช้ noti quasar
const visibleColumns = ref([
@@ -116,7 +116,7 @@ function fecthInvestigateFact() {
{
subject: "ทุจริตในหน้าที่",
interrogated: "ศิรินภา คงน้อยี่",
- fault: "0",
+ fault: "1",
status: "0",
active:'1'
},
@@ -130,15 +130,15 @@ function fecthInvestigateFact() {
{
subject: "กระทำทุจริตเงินกองทุน",
interrogated: "นายกัณฐิมา กาฬสินธ์ุ",
- fault: "1",
- status: "2",
+ fault: "0",
+ status: "1",
active:'1'
},
{
subject: "พูดจาไม่สุภาพ",
interrogated: "นายปิยรมย์ ศิริธาราฟ",
- fault: "2",
- status: "3",
+ fault: "0",
+ status: "1",
active:'1'
},
];
@@ -210,7 +210,7 @@ onMounted(()=>{
/>
- {
>
-
+
{{ col.label }}
@@ -267,8 +267,8 @@ onMounted(()=>{
{{ props.row.active }}
-
- ยกเลิกยุติเรื่อง
+
+ ยกเลิกยุติเรื่อง
@@ -284,57 +284,10 @@ onMounted(()=>{
direction-links
>
-
+
-
diff --git a/src/modules/11_discipline/components/5_Report/reportDetail.vue b/src/modules/11_discipline/components/5_Report/DetailPage.vue
similarity index 83%
rename from src/modules/11_discipline/components/5_Report/reportDetail.vue
rename to src/modules/11_discipline/components/5_Report/DetailPage.vue
index 4f36355c0..54b333f26 100644
--- a/src/modules/11_discipline/components/5_Report/reportDetail.vue
+++ b/src/modules/11_discipline/components/5_Report/DetailPage.vue
@@ -4,52 +4,31 @@ import { VuePDF, usePDF } from "@tato30/vue-pdf";
import { useCounterMixin } from "@/stores/mixin";
import { useRoute } from "vue-router";
import { useQuasar } from "quasar";
-
+import type { DataOption } from "@/modules/11_discipline/interface/index/Main";
import { useReportDataStore } from "@/modules/11_discipline/stroes/ReportStore";
import http from "@/plugins/http";
import config from "@/app.config";
-const date = ref