แก้ไขวินัย
This commit is contained in:
parent
be098be411
commit
99b1148d31
10 changed files with 34 additions and 21 deletions
|
|
@ -78,15 +78,26 @@ export default {
|
||||||
|
|
||||||
suspendReport: () => `${suspend}/report`,
|
suspendReport: () => `${suspend}/report`,
|
||||||
|
|
||||||
reportresult: (id: string) => `${disciplineMain}/result/report/${id}`,
|
reportresult: (id: string, type: string) =>
|
||||||
discardResult:(id:string,commandType:string) => `${discipline}/discard/${id}/${commandType}`,
|
`${discipline}/suspend/${id}/${type}`,
|
||||||
upLoadFileResult:(id:string) => `${disciplineMain}/result/file/${id}`,
|
discardResult: (id: string, commandType: string) =>
|
||||||
deleteFileResult:(id:string,docId:string) => `${disciplineMain}/result/file/${id}/${docId}`,
|
`${discipline}/discard/${id}/${commandType}`,
|
||||||
|
upLoadFileResult: (id: string) => `${disciplineMain}/result/file/${id}`,
|
||||||
|
deleteFileResult: (id: string, docId: string) =>
|
||||||
|
`${disciplineMain}/result/file/${id}/${docId}`,
|
||||||
|
|
||||||
appealMainList: (status: string, type: string, year: number, page: number, pageSize: number, keyword: string) => `${appeal}/admin?status=${status}&type=${type}&year=${year}&page=${page}&pageSize=${pageSize}&keyword=${keyword}`,
|
appealMainList: (
|
||||||
|
status: string,
|
||||||
|
type: string,
|
||||||
|
year: number,
|
||||||
|
page: number,
|
||||||
|
pageSize: number,
|
||||||
|
keyword: string
|
||||||
|
) =>
|
||||||
|
`${appeal}/admin?status=${status}&type=${type}&year=${year}&page=${page}&pageSize=${pageSize}&keyword=${keyword}`,
|
||||||
appealAdd: () => `${appeal}`,
|
appealAdd: () => `${appeal}`,
|
||||||
appealByID: (id:string) => `${appeal}/${id}`,
|
appealByID: (id: string) => `${appeal}/${id}`,
|
||||||
appealUpLoadFile: (id:string) => `${appeal}/file/${id}`,
|
appealUpLoadFile: (id: string) => `${appeal}/file/${id}`,
|
||||||
appealDeleteFile: (id:string,docId:string) => `${appeal}/file/${id}/${docId}`
|
appealDeleteFile: (id: string, docId: string) =>
|
||||||
|
`${appeal}/file/${id}/${docId}`,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ import type {
|
||||||
|
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
|
import type { ArrayPersonAdd } from "../../interface/response/investigate";
|
||||||
|
|
||||||
const mainStore = useDisciplineMainStore();
|
const mainStore = useDisciplineMainStore();
|
||||||
|
|
||||||
|
|
@ -398,7 +399,7 @@ watch(
|
||||||
:modal="modalPopup"
|
:modal="modalPopup"
|
||||||
:close="closePopup"
|
:close="closePopup"
|
||||||
title="ส่งไปสอบสวน"
|
title="ส่งไปสอบสวน"
|
||||||
:rows="mainStore.rowsAdd.filter((item:any)=> item.isSend === false )"
|
:rows="mainStore.rowsAdd.filter((item: ArrayPersonAdd)=> item.isSend == 'NEW')"
|
||||||
:columns="mainStore.columnsDirector"
|
:columns="mainStore.columnsDirector"
|
||||||
:visibleColumns="mainStore.visibleColumnsDirector"
|
:visibleColumns="mainStore.visibleColumnsDirector"
|
||||||
@return-person="emitPerson"
|
@return-person="emitPerson"
|
||||||
|
|
|
||||||
|
|
@ -274,7 +274,7 @@ watch(props.data, async () => {
|
||||||
|
|
||||||
mainStore.rowsAdd = props.data.persons;
|
mainStore.rowsAdd = props.data.persons;
|
||||||
mainStore.rowsCheck = mainStore.rowsAdd.filter(
|
mainStore.rowsCheck = mainStore.rowsAdd.filter(
|
||||||
(item: any) => item.isSend === false
|
(item: any) => item.isSend === 'NEW'
|
||||||
);
|
);
|
||||||
|
|
||||||
const dataMap = props.data.directors.map((item: any) => ({
|
const dataMap = props.data.directors.map((item: any) => ({
|
||||||
|
|
|
||||||
|
|
@ -251,7 +251,7 @@ async function onSubmit(id: string) {
|
||||||
|
|
||||||
/** ยืนยัน ส่งไปออกคำสั่ง */
|
/** ยืนยัน ส่งไปออกคำสั่ง */
|
||||||
async function sentIssue() {
|
async function sentIssue() {
|
||||||
respondentRows.value = await store.rowSent.filter((x) => x.report === false && x.isSend === false); //x.report === false
|
respondentRows.value = await store.rowSent.filter((x) => x.report === false && x.isSuspend === 'NEW' && x.isSend === 'NEW');
|
||||||
modalPopup.value = true;
|
modalPopup.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -303,7 +303,7 @@ async function fetchDatadetail() {
|
||||||
|
|
||||||
mainStore.rowsAdd = props.data.persons;
|
mainStore.rowsAdd = props.data.persons;
|
||||||
mainStore.rowsCheck = mainStore.rowsAdd.filter(
|
mainStore.rowsCheck = mainStore.rowsAdd.filter(
|
||||||
(item: any) => item.isSend === false
|
(item: any) => item.report === false && item.isSuspend === 'NEW' && item.isSend === 'NEW'
|
||||||
);
|
);
|
||||||
/** MAP รายชื่อกรรมการ หน้าหลัก */
|
/** MAP รายชื่อกรรมการ หน้าหลัก */
|
||||||
const dataMap = props.data.director.map((item: any) => ({
|
const dataMap = props.data.director.map((item: any) => ({
|
||||||
|
|
|
||||||
|
|
@ -80,16 +80,16 @@ const saveOrder = () => {
|
||||||
};
|
};
|
||||||
//ส่งไปออกคำสั่ง
|
//ส่งไปออกคำสั่ง
|
||||||
const Ordersave = async () => {
|
const Ordersave = async () => {
|
||||||
const id = selected.value.map((r) => r.id);
|
// const id = selected.value.map((r) => r.id);
|
||||||
const persons = selected.value.map((r) => r.id);
|
const persons = selected.value.map((r) => r.id);
|
||||||
|
|
||||||
if (props.title == "ส่งไปออกคำสั่งลงโทษทางวินัย") {
|
if (props.title == "ส่งไปออกคำสั่งลงโทษทางวินัย") {
|
||||||
const body = {
|
const body = {
|
||||||
id,
|
persons,
|
||||||
};
|
};
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.put(config.API.reportresult(type.value as string), body)
|
.put(config.API.reportresult(idPath.value, type.value as string), body)
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
success($q, `${props.title}สำเร็จ`);
|
success($q, `${props.title}สำเร็จ`);
|
||||||
props.closeModal?.();
|
props.closeModal?.();
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ onMounted(() => {
|
||||||
flat
|
flat
|
||||||
color="primary"
|
color="primary"
|
||||||
class="q-mr-sm"
|
class="q-mr-sm"
|
||||||
@click="router.go(-1)"
|
@click="router.push('/discipline-appealcomplain')"
|
||||||
/>
|
/>
|
||||||
แก้ไขการอุทธรณ์/ร้องทุกข์
|
แก้ไขการอุทธรณ์/ร้องทุกข์
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -227,7 +227,6 @@ function editStatusReturn(data: any) {
|
||||||
console.log("saveStatus");
|
console.log("saveStatus");
|
||||||
modalStatusEdit.value = false;
|
modalStatusEdit.value = false;
|
||||||
});
|
});
|
||||||
console.log(data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getData() {
|
function getData() {
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,10 @@ interface Persons {
|
||||||
salary: number; //เงินเดือน
|
salary: number; //เงินเดือน
|
||||||
organization: string; //สังกัด
|
organization: string; //สังกัด
|
||||||
name: string;
|
name: string;
|
||||||
report?: boolean;
|
report?: boolean; // ส่งไปสรุปผลแล้ว
|
||||||
isSend?: boolean;
|
isSend?: string; // ส่งไปยุติแล้ว
|
||||||
|
isSuspend?: string; //ส่งไปพักแล้ว
|
||||||
|
statusDiscard?: string; //ส่งไปงดโทษ/เพิ่มโทษแล้ว
|
||||||
}
|
}
|
||||||
interface PersonsArray {
|
interface PersonsArray {
|
||||||
id: string; //id อ้างอิง profile
|
id: string; //id อ้างอิง profile
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ interface ArrayPerson {
|
||||||
interface ArrayPersonAdd {
|
interface ArrayPersonAdd {
|
||||||
personId: string; //id อ้างอิง profile
|
personId: string; //id อ้างอิง profile
|
||||||
idcard: string; //รหัสบัตรประชาชน
|
idcard: string; //รหัสบัตรประชาชน
|
||||||
isSend: string; //รหัสบัตรประชาชน
|
isSend: string; //สถานะการส่งคนไป
|
||||||
prefix: string; //คำนำหน้า
|
prefix: string; //คำนำหน้า
|
||||||
firstName: string; //ชื่อ
|
firstName: string; //ชื่อ
|
||||||
lastName: string; //นามสกุล
|
lastName: string; //นามสกุล
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue