รายการอุทธรณ์ร้องทุกข์
This commit is contained in:
parent
58201d887d
commit
6c035d3234
5 changed files with 164 additions and 182 deletions
|
|
@ -8,11 +8,12 @@ import DialogAddPersonal from "@/components/Dialogs/AddPersonal.vue";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useAppealComplainStore } from "@/modules/11_discipline/store/AppealComplainStore";
|
import { useAppealComplainStore } from "@/modules/11_discipline/store/AppealComplainStore";
|
||||||
import { useDisciplineMainStore } from "@/modules/11_discipline/store/main";
|
import { useDisciplineMainStore } from "@/modules/11_discipline/store/main";
|
||||||
|
import DialogHistory from '@/modules/11_discipline/components/8_AppealComplain/dialog/DialogEditStatus.vue'
|
||||||
|
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
|
|
||||||
import type { MyObjectAppealRef } from "@/modules/11_discipline/interface/response/appealComplain";
|
import type { MyObjectAppealRef,HistoryStatusType } from "@/modules/11_discipline/interface/response/appealComplain";
|
||||||
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
||||||
const mainStore = useDisciplineMainStore();
|
const mainStore = useDisciplineMainStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
@ -33,6 +34,8 @@ const props = defineProps({
|
||||||
});
|
});
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
|
const modalHistory = ref<boolean>(false)
|
||||||
|
const statusCheck = ref<string>("");
|
||||||
const modalPerson = ref<boolean>(false);
|
const modalPerson = ref<boolean>(false);
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const {
|
const {
|
||||||
|
|
@ -47,6 +50,12 @@ const {
|
||||||
const dataStore = useAppealComplainStore();
|
const dataStore = useAppealComplainStore();
|
||||||
|
|
||||||
const modalEdit = ref<boolean>(false);
|
const modalEdit = ref<boolean>(false);
|
||||||
|
|
||||||
|
const historyStatusOb = reactive<HistoryStatusType[]>([{
|
||||||
|
status: "",
|
||||||
|
createdAt: "",
|
||||||
|
}]);
|
||||||
|
|
||||||
const formData = reactive<any>({
|
const formData = reactive<any>({
|
||||||
profileId: "xx",
|
profileId: "xx",
|
||||||
title: "",
|
title: "",
|
||||||
|
|
@ -56,6 +65,7 @@ const formData = reactive<any>({
|
||||||
type: "",
|
type: "",
|
||||||
file: null,
|
file: null,
|
||||||
disciplineComplaint_Appeal_Docs: [],
|
disciplineComplaint_Appeal_Docs: [],
|
||||||
|
historyStatus: historyStatusOb,
|
||||||
year: new Date().getFullYear().toString(),
|
year: new Date().getFullYear().toString(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -75,18 +85,10 @@ const objectAppeal: MyObjectAppealRef = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** หัวข้อที่เเสดงในตารางผู้ถูกร้องเรียน */
|
/** หัวข้อที่เเสดงในตารางผู้ถูกร้องเรียน */
|
||||||
const visibleColumns = ref<string[]>(["info", "no", "citizenId", "fullname"]);
|
const visibleColumns = ref<string[]>(["no", "citizenId", "fullname"]);
|
||||||
/** หัวตารางผู้ถูกร้องเรียน */
|
/** หัวตารางผู้ถูกร้องเรียน */
|
||||||
const columns = ref<QTableProps["columns"]>([
|
const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
|
||||||
name: "info",
|
|
||||||
align: "left",
|
|
||||||
label: "",
|
|
||||||
sortable: false,
|
|
||||||
field: "info",
|
|
||||||
headerStyle: "font-size: 14px",
|
|
||||||
style: "font-size: 14px",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "no",
|
name: "no",
|
||||||
align: "left",
|
align: "left",
|
||||||
|
|
@ -226,6 +228,7 @@ watch(props.data, async () => {
|
||||||
formData.title = props.data.title;
|
formData.title = props.data.title;
|
||||||
formData.description = props.data.description;
|
formData.description = props.data.description;
|
||||||
formData.status = props.data.status;
|
formData.status = props.data.status;
|
||||||
|
statusCheck.value = props.data.status;
|
||||||
formData.type = props.data.type;
|
formData.type = props.data.type;
|
||||||
formData.year = props.data.year;
|
formData.year = props.data.year;
|
||||||
formData.caseType = props.data.caseType;
|
formData.caseType = props.data.caseType;
|
||||||
|
|
@ -234,6 +237,7 @@ watch(props.data, async () => {
|
||||||
formData.citizenId = props.data.citizenId;
|
formData.citizenId = props.data.citizenId;
|
||||||
formData.profileId = props.data.profileId;
|
formData.profileId = props.data.profileId;
|
||||||
formData.lastUpdatedAt = props.data.lastUpdatedAt;
|
formData.lastUpdatedAt = props.data.lastUpdatedAt;
|
||||||
|
formData.historyStatus = props.data.historyStatus;
|
||||||
formData.disciplineComplaint_Appeal_Docs =
|
formData.disciplineComplaint_Appeal_Docs =
|
||||||
props.data.disciplineComplaint_Appeal_Docs;
|
props.data.disciplineComplaint_Appeal_Docs;
|
||||||
dataStore.getRow([
|
dataStore.getRow([
|
||||||
|
|
@ -245,6 +249,15 @@ watch(props.data, async () => {
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function close() {
|
||||||
|
modalHistory.value = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function historyStatus(){
|
||||||
|
modalHistory.value = true
|
||||||
|
}
|
||||||
|
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
dialogConfirm(
|
dialogConfirm(
|
||||||
$q,
|
$q,
|
||||||
|
|
@ -281,7 +294,7 @@ onMounted(() => {
|
||||||
<q-card bordered>
|
<q-card bordered>
|
||||||
<div class="q-pa-md">
|
<div class="q-pa-md">
|
||||||
<div class="q-gutter-y-sm">
|
<div class="q-gutter-y-sm">
|
||||||
<div class="row">
|
<div class="row q-gutter-x-sm">
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<q-select
|
<q-select
|
||||||
ref="typeRef"
|
ref="typeRef"
|
||||||
|
|
@ -301,6 +314,37 @@ onMounted(() => {
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-3" v-if="isReadonly">
|
||||||
|
<q-select
|
||||||
|
ref="statusRef"
|
||||||
|
v-model="formData.status"
|
||||||
|
label="สถานะ"
|
||||||
|
dense
|
||||||
|
bg-color="white"
|
||||||
|
outlined
|
||||||
|
emit-value
|
||||||
|
:rules="[(val) => !!val || `${'กรุณาเลือกสถานะ'}`]"
|
||||||
|
map-options
|
||||||
|
hide-bottom-space
|
||||||
|
option-label="name"
|
||||||
|
option-value="id"
|
||||||
|
:options="dataStore.statusOptionsEdit"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-2 self-center" v-if="isReadonly">
|
||||||
|
<q-btn
|
||||||
|
size="16px"
|
||||||
|
flat
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
color="info"
|
||||||
|
class="q-ml-sm"
|
||||||
|
icon="mdi-history"
|
||||||
|
@click="historyStatus"
|
||||||
|
>
|
||||||
|
<q-tooltip>ประวัติแก้ไขสถานะ</q-tooltip>
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row col-12">
|
<div class="row col-12">
|
||||||
<q-card
|
<q-card
|
||||||
|
|
@ -364,22 +408,6 @@ onMounted(() => {
|
||||||
<div v-if="col.name == 'no'">
|
<div v-if="col.name == 'no'">
|
||||||
{{ props.rowIndex + 1 }}
|
{{ props.rowIndex + 1 }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="col.name == 'info'">
|
|
||||||
<q-btn
|
|
||||||
size="14px"
|
|
||||||
flat
|
|
||||||
round
|
|
||||||
dense
|
|
||||||
color="info"
|
|
||||||
icon="info"
|
|
||||||
@click="
|
|
||||||
router.push(`/registry/${props.row.personId}`)
|
|
||||||
"
|
|
||||||
><q-tooltip
|
|
||||||
>ดูข้อมูลในทะเบียนประวัติ</q-tooltip
|
|
||||||
></q-btn
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
v-else-if="col.name === 'organization'"
|
v-else-if="col.name === 'organization'"
|
||||||
class="table_ellipsis"
|
class="table_ellipsis"
|
||||||
|
|
@ -604,6 +632,12 @@ onMounted(() => {
|
||||||
@returnData="handleSave"
|
@returnData="handleSave"
|
||||||
selecetSwitch="single"
|
selecetSwitch="single"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<DialogHistory
|
||||||
|
:modal="modalHistory"
|
||||||
|
:close="close"
|
||||||
|
:data="formData.historyStatus"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "title",
|
name: "title",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "เรื่องร้องเรียน",
|
label: "เรื่องอุทธรณ์/ร้องทุกข์",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "title",
|
field: "title",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
@ -427,7 +427,6 @@ onMounted(async () => {
|
||||||
>
|
>
|
||||||
<span class="text-weight-medium">{{ col.label }}</span>
|
<span class="text-weight-medium">{{ col.label }}</span>
|
||||||
</q-th>
|
</q-th>
|
||||||
<q-th auto-width></q-th>
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body="props">
|
<template v-slot:body="props">
|
||||||
|
|
@ -445,19 +444,6 @@ onMounted(async () => {
|
||||||
{{ col.value }}
|
{{ col.value }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
<td auto-width>
|
|
||||||
<q-btn
|
|
||||||
icon="mdi-pencil"
|
|
||||||
size="10px"
|
|
||||||
color="primary"
|
|
||||||
flat
|
|
||||||
round
|
|
||||||
dense
|
|
||||||
@click="openEditStatus(props.row)"
|
|
||||||
>
|
|
||||||
<q-tooltip>แก้ไขสถานะ</q-tooltip>
|
|
||||||
</q-btn>
|
|
||||||
</td>
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
</d-table>
|
</d-table>
|
||||||
|
|
|
||||||
|
|
@ -1,35 +1,52 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, defineProps, watch, reactive } from "vue";
|
import { ref, defineProps, watch, reactive } from "vue";
|
||||||
import { useAppealComplainStore } from "@/modules/11_discipline/store/AppealComplainStore";
|
import { useAppealComplainStore } from "@/modules/11_discipline/store/AppealComplainStore";
|
||||||
import type { EditStatusRef } from "@/modules/11_discipline/interface/response/appealComplain";
|
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
|
|
||||||
|
import type { HistoryStatusType } from "@/modules/11_discipline/interface/response/appealComplain";
|
||||||
|
import type { QTableProps } from "quasar";
|
||||||
|
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
|
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const { dialogConfirm } = mixin;
|
const { dialogConfirm,date2Thai } = mixin;
|
||||||
const dataStore = useAppealComplainStore();
|
const dataStore = useAppealComplainStore();
|
||||||
|
|
||||||
interface status {
|
const rows = ref<HistoryStatusType[]>([]);
|
||||||
status: string;
|
/** หัวข้อที่เเสดงในตารางผู้ถูกร้องเรียน */
|
||||||
reason: string;
|
const visibleColumns = ref<string[]>(["no", "status", "createdAt"]);
|
||||||
}
|
/** หัวตารางผู้ถูกร้องเรียน */
|
||||||
|
const columns = ref<QTableProps["columns"]>([
|
||||||
/** ตัวแปร validate */
|
{
|
||||||
const reasonRef = ref<Object | null>(null);
|
name: "no",
|
||||||
const statusRef = ref<Object | null>(null);
|
align: "left",
|
||||||
|
label: "ลำดับ",
|
||||||
const objectEditStatus: EditStatusRef = {
|
sortable: false,
|
||||||
reason: reasonRef,
|
field: "no",
|
||||||
status: statusRef,
|
headerStyle: "font-size: 14px",
|
||||||
};
|
style: "font-size: 14px",
|
||||||
|
},
|
||||||
const formData = reactive<status>({
|
{
|
||||||
status: "",
|
name: "status",
|
||||||
reason: "",
|
align: "left",
|
||||||
});
|
label: "สถานะ",
|
||||||
|
sortable: true,
|
||||||
|
field: "status",
|
||||||
|
headerStyle: "font-size: 14px",
|
||||||
|
style: "font-size: 14px",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "createdAt",
|
||||||
|
align: "left",
|
||||||
|
label: "แก้ไขเมื่อวันที่",
|
||||||
|
sortable: true,
|
||||||
|
field: "createdAt",
|
||||||
|
headerStyle: "font-size: 14px",
|
||||||
|
style: "font-size: 14px",
|
||||||
|
},
|
||||||
|
]);
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modal: {
|
modal: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|
@ -45,49 +62,17 @@ const props = defineProps({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const emit = defineEmits(["editStatusReturn"]);
|
|
||||||
|
|
||||||
function clickClose() {
|
function clickClose() {
|
||||||
props.close();
|
props.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** ฟังก์ชั่นสำหรับ validate ฟอร์ม */
|
|
||||||
function validateForm() {
|
|
||||||
console.log("1");
|
|
||||||
const hasError = [];
|
|
||||||
for (const key in objectEditStatus) {
|
|
||||||
if (Object.prototype.hasOwnProperty.call(objectEditStatus, key)) {
|
|
||||||
const property = objectEditStatus[key];
|
|
||||||
if (property.value && typeof property.value.validate === "function") {
|
|
||||||
const isValid = property.value.validate();
|
|
||||||
hasError.push(isValid);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasError.every((result) => result === true)) {
|
|
||||||
emit("editStatusReturn", formData);
|
|
||||||
} else {
|
|
||||||
console.log("ไม่ผ่าน ");
|
|
||||||
console.log(hasError);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function onSubmit() {
|
|
||||||
dialogConfirm(
|
|
||||||
$q,
|
|
||||||
async () => {
|
|
||||||
console.log("add");
|
|
||||||
},
|
|
||||||
"ยืนยันการบันทึกข้อมูล",
|
|
||||||
"ต้องการยืนยันการบันทึกข้อมูลนี้หรือไม่ ?"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.data,
|
() => props.data,
|
||||||
() => {
|
() => {
|
||||||
formData.status = props.data.status;
|
rows.value = props.data.map((item: HistoryStatusType) => ({
|
||||||
|
status: dataStore.statusTothai(item.status),
|
||||||
|
createdAt: date2Thai(item.createdAt),
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -95,65 +80,59 @@ watch(
|
||||||
<template>
|
<template>
|
||||||
<q-dialog v-model="props.modal" persistent>
|
<q-dialog v-model="props.modal" persistent>
|
||||||
<q-card style="min-width: 30vw">
|
<q-card style="min-width: 30vw">
|
||||||
<form @submit.prevent="validateForm">
|
<q-toolbar>
|
||||||
<q-toolbar>
|
<q-toolbar-title class="text-subtitle2 text-bold">
|
||||||
<q-toolbar-title class="text-subtitle2 text-bold">
|
ประวัติแก้ไขสถานะ
|
||||||
{{ `แก้ไขสถานะ ${props.data.fullname}` }}
|
</q-toolbar-title>
|
||||||
</q-toolbar-title>
|
<q-btn
|
||||||
<q-btn
|
icon="close"
|
||||||
icon="close"
|
unelevated
|
||||||
unelevated
|
round
|
||||||
round
|
dense
|
||||||
dense
|
@click="clickClose"
|
||||||
@click="clickClose"
|
style="color: #ff8080; background-color: #ffdede"
|
||||||
style="color: #ff8080; background-color: #ffdede"
|
/>
|
||||||
/>
|
</q-toolbar>
|
||||||
</q-toolbar>
|
<q-separator />
|
||||||
<q-separator />
|
<q-card-section class="q-pa-md bg-grey-1">
|
||||||
<q-card-section class="q-pa-md bg-grey-1">
|
<q-table
|
||||||
<div class="q-gutter-sm">
|
ref="table"
|
||||||
<q-select
|
:columns="columns"
|
||||||
ref="statusRef"
|
:rows="rows"
|
||||||
v-model="props.data.status"
|
row-key="idcard"
|
||||||
label="สถานะ"
|
flat
|
||||||
dense
|
bordered
|
||||||
bg-color="white"
|
dense
|
||||||
outlined
|
hide-bottom
|
||||||
emit-value
|
class="custom-header-table"
|
||||||
:rules="[(val) => !!val || `${'กรุณาเลือกสถานะ'}`]"
|
:visible-columns="visibleColumns"
|
||||||
map-options
|
>
|
||||||
hide-bottom-space
|
<template v-slot:header="props">
|
||||||
option-label="name"
|
<q-tr :props="props">
|
||||||
option-value="id"
|
<q-th
|
||||||
:options="dataStore.statusOptionsEdit"
|
v-for="col in props.cols"
|
||||||
/>
|
:key="col.name"
|
||||||
<q-input
|
:props="props"
|
||||||
ref="reasonRef"
|
style="color: #000000; font-weight: 500"
|
||||||
v-model="formData.reason"
|
>
|
||||||
dense
|
<span class="text-weight-medium">{{ col.label }}</span>
|
||||||
outlined
|
</q-th>
|
||||||
:rules="[(val) => !!val || `${'กรุณากรอกเหตุผล'}`]"
|
</q-tr>
|
||||||
bg-color="white"
|
</template>
|
||||||
type="textarea"
|
<template v-slot:body="props">
|
||||||
label="เหตุผล"
|
<q-tr :props="props" class="cursor-pointer">
|
||||||
lazy-rules
|
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
hide-bottom-space
|
<div v-if="col.name == 'no'">
|
||||||
/>
|
{{ props.rowIndex + 1 }}
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
<div v-else>
|
||||||
<q-separator />
|
{{ col.value }}
|
||||||
|
</div>
|
||||||
<div class="row justify-end q-px-md q-py-sm items-center">
|
</q-td>
|
||||||
<q-btn
|
</q-tr>
|
||||||
dense
|
</template>
|
||||||
color="public"
|
</q-table>
|
||||||
id="onSubmit"
|
</q-card-section>
|
||||||
type="submit"
|
|
||||||
class="q-px-md q-py-xs"
|
|
||||||
label="บันทึก"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ interface EditDataList {
|
||||||
|
|
||||||
interface HistoryStatusType {
|
interface HistoryStatusType {
|
||||||
status: string
|
status: string
|
||||||
createdAt: string
|
createdAt: Date
|
||||||
}
|
}
|
||||||
interface FileObType {
|
interface FileObType {
|
||||||
id:string
|
id:string
|
||||||
|
|
@ -75,4 +75,4 @@ interface EditStatusRef {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export type { MainList, RowList, MyObjectAppealRef, EditStatusRef,EditDataList,HistoryStatusType,FileObType,RowAddList };
|
export type { MainList, RowList, MyObjectAppealRef, EditStatusRef,EditDataList,FileObType,RowAddList,HistoryStatusType };
|
||||||
|
|
@ -28,7 +28,7 @@ export const useAppealComplainStore = defineStore(
|
||||||
caseType: e.caseType,
|
caseType: e.caseType,
|
||||||
caseNumber: e.caseNumber,
|
caseNumber: e.caseNumber,
|
||||||
lastUpdatedAt: date2Thai(e.lastUpdatedAt),
|
lastUpdatedAt: date2Thai(e.lastUpdatedAt),
|
||||||
status: statusTothai(e.status),
|
status: statusTothai(e.status)
|
||||||
}));
|
}));
|
||||||
rows.value = dataList;
|
rows.value = dataList;
|
||||||
}
|
}
|
||||||
|
|
@ -37,7 +37,7 @@ export const useAppealComplainStore = defineStore(
|
||||||
rowsAdd.value = data
|
rowsAdd.value = data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const statusTothai = (val: string) => {
|
function statusTothai(val: string){
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case "NEW":
|
case "NEW":
|
||||||
return "ใหม่";
|
return "ใหม่";
|
||||||
|
|
@ -96,24 +96,6 @@ export const useAppealComplainStore = defineStore(
|
||||||
{ id: "DONE", name: "ปิดคำร้อง" },
|
{ id: "DONE", name: "ปิดคำร้อง" },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// function filterSelector(val: string, update: Function, type: string) {
|
|
||||||
// update(() => {
|
|
||||||
// const needle = val.toLowerCase();
|
|
||||||
// if (type === "yearSelect") {
|
|
||||||
// complainantoptions.value = mainStore.complainantoptionsMain.filter(
|
|
||||||
// (v: any) => v.name.toLowerCase().indexOf(needle) > -1
|
|
||||||
// );
|
|
||||||
// } else if (type === "filteragencytoptions") {
|
|
||||||
// agencytoptions.value = consideredAgencytoptions.value.filter(
|
|
||||||
// (v: any) => v.name.toLowerCase().indexOf(needle) > -1
|
|
||||||
// );
|
|
||||||
// } else if (type === "filtercomplainantOP") {
|
|
||||||
// optionListName.value = optionListNameMain.value.filter(
|
|
||||||
// (v: any) => v.name.toLowerCase().indexOf(needle) > -1
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
rows,
|
rows,
|
||||||
|
|
@ -126,7 +108,8 @@ export const useAppealComplainStore = defineStore(
|
||||||
fiscalyearOP,
|
fiscalyearOP,
|
||||||
getRow,
|
getRow,
|
||||||
rowsAdd,
|
rowsAdd,
|
||||||
statusOptionsEdit
|
statusOptionsEdit,
|
||||||
|
statusTothai
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue