Merge branch 'develop' into warunee-dev
This commit is contained in:
commit
ab15f989cc
14 changed files with 637 additions and 42 deletions
|
|
@ -21,7 +21,7 @@ interface typeOp {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface tableType {
|
interface tableType {
|
||||||
id: string;
|
personId: string;
|
||||||
idcard: string;
|
idcard: string;
|
||||||
prefix: string;
|
prefix: string;
|
||||||
firstName: string;
|
firstName: string;
|
||||||
|
|
@ -46,10 +46,6 @@ const typeOps = ref<typeOp[]>([
|
||||||
|
|
||||||
/** รับค่ามาจาก หน้าหลัก */
|
/** รับค่ามาจาก หน้าหลัก */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
checkId: {
|
|
||||||
type: Array,
|
|
||||||
default: [],
|
|
||||||
},
|
|
||||||
modal: {
|
modal: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
|
|
@ -67,6 +63,10 @@ const props = defineProps({
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
selectedData: {
|
||||||
|
type: Array,
|
||||||
|
default: [],
|
||||||
|
},
|
||||||
close: {
|
close: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: () => console.log("not function"),
|
default: () => console.log("not function"),
|
||||||
|
|
@ -145,10 +145,16 @@ async function searchInput() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** update เมื่อเปลี่ยน option */
|
/** update เมื่อเปลี่ยน option */
|
||||||
function updateSelect() {
|
function updateSelect() {
|
||||||
search.value = "";
|
search.value = "";
|
||||||
}
|
}
|
||||||
|
watch(()=>props.selectedData,()=>{
|
||||||
|
if(props.selectedData){
|
||||||
|
selected.value = props.selectedData
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
@ -214,7 +220,7 @@ function updateSelect() {
|
||||||
ref="table"
|
ref="table"
|
||||||
:columns="mainStore.columnsRespondent"
|
:columns="mainStore.columnsRespondent"
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
row-key="personId"
|
row-key="idcard"
|
||||||
flat
|
flat
|
||||||
bordered
|
bordered
|
||||||
:paging="true"
|
:paging="true"
|
||||||
|
|
|
||||||
|
|
@ -53,27 +53,38 @@ function upLoadFile() {
|
||||||
/** Form รายละเอียดข้อมูล*/
|
/** Form รายละเอียดข้อมูล*/
|
||||||
const formData = reactive<FremData>({
|
const formData = reactive<FremData>({
|
||||||
id: "", //Id การยื่นขอลา
|
id: "", //Id การยื่นขอลา
|
||||||
|
reasonCommander: "", //เหตุผลผู้บังคับบัญชา
|
||||||
|
reasonOligarch: "", //เหตุผลผู้มีอำนาจ
|
||||||
|
positionName: "", //ตำแหน่งผู้ยื่นขอ
|
||||||
|
positionLevelName: "", //ระดับผู้ยื่นขอ
|
||||||
|
organizationName: "", //สังกัดผู้ยื่นขอ
|
||||||
leaveTypeName: "", // Name ประเภทการลา
|
leaveTypeName: "", // Name ประเภทการลา
|
||||||
leaveTypeId: "", //Id ประเภทการลา
|
leaveTypeId: "", //Id ประเภทการลา
|
||||||
fullname: "", //คำนำหน้า ชื่อ นามสกุล คนขอลา
|
fullname: "", //คำนำหน้า ชื่อ นามสกุล คนขอลา
|
||||||
dateSendLeave: new Date(), // วันที่ยืนใบลา
|
dateSendLeave: new Date(), // วันที่ยืนใบลา
|
||||||
|
leaveDateStart: new Date(), //วันเริ่มการลา
|
||||||
|
leaveDateEnd: new Date(), //วันสิ้นสุดการลา
|
||||||
|
leaveCount: 0, //จำนวนวันลา
|
||||||
status: "", //สถานะการของลา
|
status: "", //สถานะการของลา
|
||||||
leaveLimit: 0, //โควต้าลา(แต่ละประเภท)หน่วยเป็นวัน
|
leaveLimit: 0, //โควต้าลา(แต่ละประเภท)หน่วยเป็นวัน
|
||||||
leaveTotal: 0, //ลาป่วยไปแล้ว(แต่ละประเภท)หน่วยเป็นวัน
|
leaveSummary: 0, //ลาป่วยไปแล้ว(แต่ละประเภท)หน่วยเป็นวัน
|
||||||
leaveRemain: 0, //คงเหลือโควต้า(แต่ละประเภท)หน่วยเป็นวัน
|
leaveRemain: 0, //คงเหลือโควต้า(แต่ละประเภท)หน่วยเป็นวัน
|
||||||
leaveStartDate: new Date(), //*วัน เดือน ปีเริ่มต้นลา
|
// leaveStartDate: new Date(), //*วัน เดือน ปีเริ่มต้นลา
|
||||||
leaveEndDate: new Date(), //*วัน เดือน ปีสิ้นสุดลา
|
// leaveEndDate: new Date(), //*วัน เดือน ปีสิ้นสุดลา
|
||||||
leaveWrote: "", //เขียนที่
|
leaveWrote: "", //เขียนที่
|
||||||
leaveAddress: "", //สถานที่ติดต่อขณะลา
|
leaveAddress: "", //สถานที่ติดต่อขณะลา
|
||||||
leaveNumber: "", //หมายเลขที่ติดต่อขณะลา
|
leaveNumber: "", //หมายเลขที่ติดต่อขณะลา
|
||||||
leaveDetail: "", //รายละเอียดการลา
|
leaveDetail: "", //รายละเอียดการลา
|
||||||
leaveDocument: "", //อัปโหลดเอกสารประกอบรายละเอียด
|
leaveDocument: "", //อัปโหลดเอกสารประกอบรายละเอียด
|
||||||
leaveLast: new Date(), //ลาครั้งสุดท้ายในประเภทนั้น ๆ เมื่อวันที่(ลาป่วย ลาคลอดบุตร และลากิจส่วนตัว)(Auto)
|
leaveDraftDocument: "", //อัปโหลดแบบฟอร์มการลา
|
||||||
leaveDateTotal: 0, //จำนวนวันที่ลา(Auto)
|
leaveLastStart: new Date(), //ลาครั้งสุดท้ายในประเภทนั้น ๆ เริ่มเมื่อวันที่(ลาป่วย ลาคลอดบุตร และลากิจส่วนตัว)(Auto)
|
||||||
|
leaveLastEnd: new Date(), //ลาครั้งสุดท้ายในประเภทนั้น ๆ สิ้นสุดเมื่อวันที่(ลาป่วย ลาคลอดบุตร และลากิจส่วนตัว)(Auto)
|
||||||
|
leaveTotal: 0, //จำนวนวันที่ลา(Auto)
|
||||||
leavebirthDate: new Date(), //วันเดือนปีเกิด(Auto)
|
leavebirthDate: new Date(), //วันเดือนปีเกิด(Auto)
|
||||||
leavegovernmentDate: new Date(), //วันที่เข้ารับราชการ(Auto)
|
leavegovernmentDate: new Date(), //วันที่เข้ารับราชการ(Auto)
|
||||||
leaveSalary: 0, //เงินเดือนปัจจุบัน(Auto)
|
leaveSalary: 0, //เงินเดือนปัจจุบัน(Auto)
|
||||||
leaveSalaryText: "", //เงินเดือนปัจจุบัน(เขียนเป็นคำอ่าน)
|
leaveSalaryText: "", //เงินเดือนปัจจุบัน(เขียนเป็นคำอ่าน)
|
||||||
|
leaveTypeDay: "", //ประเภทการลาในวันนั้นเช่น
|
||||||
wifeDayName: "", //ชื่อภรรยา(ลาไปช่วยเหลือภริยาที่คลอดบุตร)
|
wifeDayName: "", //ชื่อภรรยา(ลาไปช่วยเหลือภริยาที่คลอดบุตร)
|
||||||
wifeDayDateBorn: new Date(), //วันที่คลอด(ลาไปช่วยเหลือภริยาที่คลอดบุตร)
|
wifeDayDateBorn: new Date(), //วันที่คลอด(ลาไปช่วยเหลือภริยาที่คลอดบุตร)
|
||||||
restDayOldTotal: 0, //จำนวนวันลาพักผ่อนสะสม จากปีที่ผ่านมา(ลาพักผ่อน)(Auto)
|
restDayOldTotal: 0, //จำนวนวันลาพักผ่อนสะสม จากปีที่ผ่านมา(ลาพักผ่อน)(Auto)
|
||||||
|
|
@ -127,31 +138,40 @@ function fetchDetailLeave(paramsId: string) {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
data.map((e: any) => {
|
data.map((e: any) => {
|
||||||
formData.id = e.id;
|
formData.id = e.id;
|
||||||
|
formData.reasonCommander = e.reasonCommander;
|
||||||
|
formData.reasonOligarch = e.reasonOligarch;
|
||||||
|
formData.positionName = e.positionName;
|
||||||
|
formData.positionLevelName = e.positionLevelName;
|
||||||
|
formData.organizationName = e.organizationName;
|
||||||
formData.leaveTypeName = e.leaveTypeName
|
formData.leaveTypeName = e.leaveTypeName
|
||||||
? e.leaveTypeName
|
? e.leaveTypeName
|
||||||
: stores.convertLeave(e.leaveTypeId);
|
: stores.convertLeave(e.leaveTypeId);
|
||||||
formData.leaveTypeId = e.leaveTypeId;
|
formData.leaveTypeId = e.leaveTypeId;
|
||||||
formData.fullname = e.fullname;
|
formData.fullname = e.fullname;
|
||||||
formData.dateSendLeave = e.dateSendLeave && date2Thai(e.dateSendLeave);
|
formData.dateSendLeave = e.dateSendLeave && date2Thai(e.dateSendLeave);
|
||||||
|
formData.leaveDateStart = e.leaveDateStart && date2Thai(e.leaveDateStart);
|
||||||
|
formData.leaveDateEnd = e.leaveDateEnd && date2Thai(e.leaveDateEnd);
|
||||||
|
formData.leaveCount = e.leaveCount;
|
||||||
formData.status = e.status && e.status;
|
formData.status = e.status && e.status;
|
||||||
formData.leaveLimit = e.leaveLimit;
|
formData.leaveLimit = e.leaveLimit;
|
||||||
formData.leaveTotal = e.leaveTotal;
|
formData.leaveSummary = e.leaveSummary;
|
||||||
formData.leaveRemain = e.leaveRemain;
|
formData.leaveRemain = e.leaveRemain;
|
||||||
formData.leaveStartDate = e.leaveStartDate && date2Thai(e.leaveStartDate);
|
|
||||||
formData.leaveEndDate = e.leaveEndDate && date2Thai(e.leaveEndDate);
|
|
||||||
formData.status = e.status;
|
|
||||||
formData.leaveWrote = e.leaveWrote;
|
formData.leaveWrote = e.leaveWrote;
|
||||||
formData.leaveAddress = e.leaveAddress;
|
formData.leaveAddress = e.leaveAddress;
|
||||||
formData.leaveNumber = e.leaveNumber;
|
formData.leaveNumber = e.leaveNumber;
|
||||||
formData.leaveDetail = e.leaveDetail;
|
formData.leaveDetail = e.leaveDetail;
|
||||||
formData.leaveDocument = e.leaveDocument;
|
formData.leaveDocument = e.leaveDocument;
|
||||||
formData.leaveLast = e.leaveLast && date2Thai(e.leaveLast);
|
formData.leaveDraftDocument = e.leaveDraftDocument;
|
||||||
formData.leaveDateTotal = e.leaveDateTotal;
|
formData.leaveLastStart = e.leaveLastStart && date2Thai(e.leaveLastStart);
|
||||||
|
formData.leaveLastEnd = e.leaveLastStart && date2Thai(e.leaveLastEnd);
|
||||||
|
formData.leaveTotal = e.leaveTotal;
|
||||||
formData.leavebirthDate = e.leavebirthDate && date2Thai(e.leavebirthDate);
|
formData.leavebirthDate = e.leavebirthDate && date2Thai(e.leavebirthDate);
|
||||||
formData.leavegovernmentDate =
|
formData.leavegovernmentDate =
|
||||||
e.leavegovernmentDate && date2Thai(e.leavegovernmentDate);
|
e.leavegovernmentDate && date2Thai(e.leavegovernmentDate);
|
||||||
formData.leaveSalary = e.leaveSalary;
|
formData.leaveSalary = e.leaveSalary;
|
||||||
formData.leaveSalaryText = e.leaveSalaryText;
|
formData.leaveSalaryText = e.leaveSalaryText;
|
||||||
|
formData.leaveTypeDay =
|
||||||
|
e.leaveTypeDay && stores.convertLeaveDaytype(e.leaveTypeDay);
|
||||||
formData.wifeDayName = e.wifeDayName;
|
formData.wifeDayName = e.wifeDayName;
|
||||||
formData.wifeDayDateBorn =
|
formData.wifeDayDateBorn =
|
||||||
e.wifeDayDateBorn && date2Thai(e.wifeDayDateBorn);
|
e.wifeDayDateBorn && date2Thai(e.wifeDayDateBorn);
|
||||||
|
|
|
||||||
480
src/modules/09_leave/components/3_Report/DetailReport.vue
Normal file
480
src/modules/09_leave/components/3_Report/DetailReport.vue
Normal file
|
|
@ -0,0 +1,480 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref, computed } from "vue";
|
||||||
|
import { useRoute } from "vue-router";
|
||||||
|
|
||||||
|
import type {
|
||||||
|
DataDateMonthObject,
|
||||||
|
DataOption,
|
||||||
|
} from "@/modules/09_leave/interface/index/Main";
|
||||||
|
|
||||||
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
const route = useRoute();
|
||||||
|
|
||||||
|
const mixin = useCounterMixin();
|
||||||
|
const { messageError, showLoader, hideLoader, date2Thai, monthYear2Thai } =
|
||||||
|
mixin;
|
||||||
|
|
||||||
|
const typeReport = route.params.type.toString();
|
||||||
|
const titleReport = computed(() => {
|
||||||
|
const title =
|
||||||
|
typeReport === "daily"
|
||||||
|
? "รายงานสรุปบันทึกการลงเวลาปฏิบัติงานเป็นรายวัน"
|
||||||
|
: typeReport === "monthly"
|
||||||
|
? "รายงานสรุปบันทึกการลงเวลาปฏิบัติงานเป็นรายเดือน"
|
||||||
|
: typeReport === "yearly"
|
||||||
|
? "รายงานสรุปบันทึกการลงเวลาปฏิบัติงานเป็นรายปี"
|
||||||
|
: typeReport === "leaveday"
|
||||||
|
? "บัญชีแสดงวันลา"
|
||||||
|
: "";
|
||||||
|
return title;
|
||||||
|
});
|
||||||
|
|
||||||
|
const date = ref<Date>(new Date());
|
||||||
|
const dateMonth = ref<DataDateMonthObject>({
|
||||||
|
month: new Date().getMonth(),
|
||||||
|
year: new Date().getFullYear(),
|
||||||
|
});
|
||||||
|
const year = ref<number>(new Date().getFullYear());
|
||||||
|
const dateStart = ref<Date>(new Date());
|
||||||
|
const dateEnd = ref<Date>(new Date());
|
||||||
|
const employeeClass = ref<string>("");
|
||||||
|
|
||||||
|
function monthYearThai(val: DataDateMonthObject) {
|
||||||
|
if (val == null) return "";
|
||||||
|
else return monthYear2Thai(val.month, val.year);
|
||||||
|
}
|
||||||
|
|
||||||
|
const employeeClassMain = ref<DataOption[]>([
|
||||||
|
{ id: "perm", name: "ลูกจ้างประจำ" },
|
||||||
|
{ id: "temp", name: "ลูกจ้างชั่วคราว" },
|
||||||
|
]);
|
||||||
|
const employeeClassOption = ref<DataOption[]>(employeeClassMain.value);
|
||||||
|
|
||||||
|
function filterFnOptions(val: any, update: Function) {
|
||||||
|
update(() => {
|
||||||
|
employeeClassOption.value = employeeClassMain.value.filter(
|
||||||
|
(v: DataOption) => v.name.indexOf(val) > -1
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const splitterModel = ref(14);
|
||||||
|
const numOfPages = ref<number>(0);
|
||||||
|
const page = ref<number>(1);
|
||||||
|
const pdfSrc = ref<any>();
|
||||||
|
const modalFull = ref<boolean>(false);
|
||||||
|
/** ไปหน้าต่อไปของรายงาน */
|
||||||
|
function nextPage() {
|
||||||
|
if (page.value < numOfPages.value) {
|
||||||
|
page.value++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** กลับหน้าก่อนหน้าของรายงาน */
|
||||||
|
function backPage() {
|
||||||
|
if (page.value !== 1) {
|
||||||
|
page.value--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** กลับหน้าหลัก */
|
||||||
|
function backHistory() {
|
||||||
|
window.history.back();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<div class="toptitle">
|
||||||
|
<q-btn
|
||||||
|
icon="mdi-arrow-left"
|
||||||
|
unelevated
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
flat
|
||||||
|
color="primary"
|
||||||
|
class="q-mr-sm"
|
||||||
|
@click="backHistory"
|
||||||
|
/>
|
||||||
|
{{ titleReport }}
|
||||||
|
</div>
|
||||||
|
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
||||||
|
<div class="q-pa-md q-gutter-y-sm">
|
||||||
|
<q-toolbar style="padding: 0">
|
||||||
|
<div class="q-pr-xs" v-if="typeReport === 'daily'">
|
||||||
|
<datepicker
|
||||||
|
menu-class-name="modalfix"
|
||||||
|
v-model="date"
|
||||||
|
:locale="'th'"
|
||||||
|
autoApply
|
||||||
|
:enableTimePicker="false"
|
||||||
|
week-start="0"
|
||||||
|
>
|
||||||
|
<template #year="{ year }">{{ year + 543 }}</template>
|
||||||
|
<template #year-overlay-value="{ value }">{{
|
||||||
|
parseInt(value + 543)
|
||||||
|
}}</template>
|
||||||
|
<template #trigger>
|
||||||
|
<q-input
|
||||||
|
class="full-width inputgreen cursor-pointer"
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
lazy-rules
|
||||||
|
borderless
|
||||||
|
:model-value="date ? date2Thai(date) : null"
|
||||||
|
:label="`${'วันที่'}`"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="event" class="cursor-pointer" color="primary">
|
||||||
|
</q-icon>
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
</template>
|
||||||
|
</datepicker>
|
||||||
|
</div>
|
||||||
|
<div class="q-pr-xs" v-if="typeReport === 'monthly'">
|
||||||
|
<datepicker
|
||||||
|
v-model="dateMonth"
|
||||||
|
:locale="'th'"
|
||||||
|
autoApply
|
||||||
|
month-picker
|
||||||
|
:enableTimePicker="false"
|
||||||
|
>
|
||||||
|
<template #year="{ year }">{{ year + 543 }}</template>
|
||||||
|
<template #year-overlay-value="{ value }">{{
|
||||||
|
parseInt(value + 543)
|
||||||
|
}}</template>
|
||||||
|
<template #trigger>
|
||||||
|
<q-input
|
||||||
|
class="full-width inputgreen cursor-pointer"
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
lazy-rules
|
||||||
|
borderless
|
||||||
|
:label="`${'เดือนที่'}`"
|
||||||
|
:model-value="monthYearThai(dateMonth)"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon
|
||||||
|
name="event"
|
||||||
|
class="cursor-pointer"
|
||||||
|
color="primary"
|
||||||
|
></q-icon>
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
</template>
|
||||||
|
</datepicker>
|
||||||
|
</div>
|
||||||
|
<div class="q-pr-xs" v-if="typeReport === 'yearly'">
|
||||||
|
<datepicker
|
||||||
|
menu-class-name="modalfix"
|
||||||
|
v-model="year"
|
||||||
|
class="col-2"
|
||||||
|
:locale="'th'"
|
||||||
|
autoApply
|
||||||
|
year-picker
|
||||||
|
:enableTimePicker="false"
|
||||||
|
>
|
||||||
|
<template #year="{ year }">{{ year + 543 }}</template>
|
||||||
|
<template #year-overlay-value="{ value }">{{
|
||||||
|
parseInt(value + 543)
|
||||||
|
}}</template>
|
||||||
|
<template #trigger>
|
||||||
|
<q-input
|
||||||
|
dense
|
||||||
|
lazy-rules
|
||||||
|
outlined
|
||||||
|
:model-value="Number(year) + 543"
|
||||||
|
:label="`${'ปีงบประมาณ'}`"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon
|
||||||
|
name="event"
|
||||||
|
class="cursor-pointer"
|
||||||
|
style="color: var(--q-primary)"
|
||||||
|
>
|
||||||
|
</q-icon>
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
</template>
|
||||||
|
</datepicker>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="q-pl-xs" v-if="typeReport === 'leaveday'">
|
||||||
|
<datepicker
|
||||||
|
menu-class-name="modalfix"
|
||||||
|
v-model="dateStart"
|
||||||
|
:locale="'th'"
|
||||||
|
autoApply
|
||||||
|
:enableTimePicker="false"
|
||||||
|
week-start="0"
|
||||||
|
>
|
||||||
|
<template #year="{ year }">{{ year + 543 }}</template>
|
||||||
|
<template #year-overlay-value="{ value }">{{
|
||||||
|
parseInt(value + 543)
|
||||||
|
}}</template>
|
||||||
|
<template #trigger>
|
||||||
|
<q-input
|
||||||
|
class="full-width inputgreen cursor-pointer"
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
lazy-rules
|
||||||
|
borderless
|
||||||
|
:model-value="dateStart ? date2Thai(dateStart) : null"
|
||||||
|
:label="`${'ตั้งเเต่วันที่'}`"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="event" class="cursor-pointer" color="primary">
|
||||||
|
</q-icon>
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
</template>
|
||||||
|
</datepicker>
|
||||||
|
</div>
|
||||||
|
<div class="q-pl-xs" v-if="typeReport === 'leaveday'">
|
||||||
|
<datepicker
|
||||||
|
menu-class-name="modalfix"
|
||||||
|
v-model="dateEnd"
|
||||||
|
:locale="'th'"
|
||||||
|
autoApply
|
||||||
|
:enableTimePicker="false"
|
||||||
|
week-start="0"
|
||||||
|
>
|
||||||
|
<template #year="{ year }">{{ year + 543 }}</template>
|
||||||
|
<template #year-overlay-value="{ value }">{{
|
||||||
|
parseInt(value + 543)
|
||||||
|
}}</template>
|
||||||
|
<template #trigger>
|
||||||
|
<q-input
|
||||||
|
class="full-width inputgreen cursor-pointer"
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
lazy-rules
|
||||||
|
borderless
|
||||||
|
:model-value="dateEnd ? date2Thai(dateEnd) : null"
|
||||||
|
:label="`${'ถึงวันที่'}`"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="event" class="cursor-pointer" color="primary">
|
||||||
|
</q-icon>
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
</template>
|
||||||
|
</datepicker>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<q-space />
|
||||||
|
<div class="q-py-xs">
|
||||||
|
<q-btn unelevated color="primary" @click="modalFull = true">
|
||||||
|
<q-icon left size="2em" name="mdi-eye-outline" />
|
||||||
|
<div>แสดงรายงาน</div>
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
</q-toolbar>
|
||||||
|
|
||||||
|
<q-toolbar
|
||||||
|
v-if="typeReport === 'leaveday'"
|
||||||
|
class="q-pa-sm bg-grey-2"
|
||||||
|
style="border-radius: 5px"
|
||||||
|
>
|
||||||
|
<div class="q-pr-xs">
|
||||||
|
<q-select
|
||||||
|
class="bg-white"
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
v-model="employeeClass"
|
||||||
|
:options="employeeClassOption"
|
||||||
|
label="สถานภาพ"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
option-label="name"
|
||||||
|
option-value="id"
|
||||||
|
use-input
|
||||||
|
style="width: 230px"
|
||||||
|
@filter="(inputValue: any,
|
||||||
|
doneFn: Function) => filterFnOptions(inputValue, doneFn)"
|
||||||
|
><template v-slot:no-option>
|
||||||
|
<q-item>
|
||||||
|
<q-item-section class="text-grey"> ไม่มีข้อมูล </q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</template>
|
||||||
|
</q-select>
|
||||||
|
</div></q-toolbar
|
||||||
|
>
|
||||||
|
<q-splitter
|
||||||
|
v-model="splitterModel"
|
||||||
|
horizontal
|
||||||
|
style="
|
||||||
|
height: 70vh;
|
||||||
|
border: 1px solid rgb(210, 210, 210);
|
||||||
|
border-radius: 5px;
|
||||||
|
"
|
||||||
|
before-class="overflow-hidden disable"
|
||||||
|
separator-class="bg-white disabled"
|
||||||
|
>
|
||||||
|
<template v-slot:before>
|
||||||
|
<div class="q-px-sm">
|
||||||
|
<div class="row items-start items-center">
|
||||||
|
<div class="col">
|
||||||
|
<q-btn
|
||||||
|
padding="xs"
|
||||||
|
icon="mdi-chevron-left"
|
||||||
|
color="grey-2"
|
||||||
|
text-color="grey-5"
|
||||||
|
size="md"
|
||||||
|
class="my-auto"
|
||||||
|
@click="backPage"
|
||||||
|
:disable="page == 1"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 col-md-auto">
|
||||||
|
<div class="q-pa-md flex">
|
||||||
|
หน้าที่ {{ page }} จาก {{ numOfPages }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col text-right">
|
||||||
|
<q-btn
|
||||||
|
padding="xs"
|
||||||
|
icon="mdi-chevron-right"
|
||||||
|
color="grey-2"
|
||||||
|
text-color="grey-5"
|
||||||
|
size="md"
|
||||||
|
@click="nextPage"
|
||||||
|
:disable="page === numOfPages"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template v-slot:after>
|
||||||
|
<div class="q-pa-md">
|
||||||
|
<VuePDF ref="vuePDFRef" :pdf="pdfSrc" :page="page" fit-parent />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template v-slot:default>
|
||||||
|
<div class="q-pa-md">
|
||||||
|
<div class="row items-start items-center">
|
||||||
|
<div class="col">
|
||||||
|
<q-btn
|
||||||
|
padding="xs"
|
||||||
|
icon="mdi-chevron-left"
|
||||||
|
color="grey-2"
|
||||||
|
text-color="grey-5"
|
||||||
|
size="md"
|
||||||
|
class="my-auto"
|
||||||
|
@click="backPage"
|
||||||
|
:disable="page == 1"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-12 col-md-auto">
|
||||||
|
<div class="q-pa-md flex">
|
||||||
|
หน้าที่ {{ page }} จาก {{ numOfPages }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col text-right">
|
||||||
|
<q-btn
|
||||||
|
padding="xs"
|
||||||
|
icon="mdi-chevron-right"
|
||||||
|
color="grey-2"
|
||||||
|
text-color="grey-5"
|
||||||
|
size="md"
|
||||||
|
@click="nextPage"
|
||||||
|
:disable="page === numOfPages"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</q-splitter>
|
||||||
|
</div>
|
||||||
|
</q-card>
|
||||||
|
|
||||||
|
<!-- Dialog Full Screen -->
|
||||||
|
<q-dialog
|
||||||
|
v-model="modalFull"
|
||||||
|
persistent
|
||||||
|
:maximized="true"
|
||||||
|
transition-show="slide-up"
|
||||||
|
transition-hide="slide-down"
|
||||||
|
>
|
||||||
|
<q-card class="bg-white">
|
||||||
|
<div class="flex justify-end items-center align-center q-mr-md q-mt-sm">
|
||||||
|
<q-btn
|
||||||
|
icon="close"
|
||||||
|
unelevated
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
style="color: #ff8080; background-color: #ffdede"
|
||||||
|
size="12px"
|
||||||
|
v-close-popup
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="q-pa-md">
|
||||||
|
<div class="row items-start items-center">
|
||||||
|
<div class="col">
|
||||||
|
<q-btn
|
||||||
|
padding="xs"
|
||||||
|
icon="mdi-chevron-left"
|
||||||
|
color="grey-2"
|
||||||
|
text-color="grey-5"
|
||||||
|
size="md"
|
||||||
|
class="my-auto"
|
||||||
|
@click="backPage"
|
||||||
|
:disable="page == 1"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 col-md-auto">
|
||||||
|
<div class="q-pa-md flex">
|
||||||
|
หน้าที่ {{ page }} จาก {{ numOfPages }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col text-right">
|
||||||
|
<q-btn
|
||||||
|
padding="xs"
|
||||||
|
icon="mdi-chevron-right"
|
||||||
|
color="grey-2"
|
||||||
|
text-color="grey-5"
|
||||||
|
size="md"
|
||||||
|
@click="nextPage"
|
||||||
|
:disable="page === numOfPages"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row items- items-center">
|
||||||
|
<VuePDF ref="vuePDFRef" :pdf="pdfSrc" :page="page" fit-parent />
|
||||||
|
</div>
|
||||||
|
<div class="row items- items-end">
|
||||||
|
<div class="col">
|
||||||
|
<q-btn
|
||||||
|
padding="xs"
|
||||||
|
icon="mdi-chevron-left"
|
||||||
|
color="grey-2"
|
||||||
|
text-color="grey-5"
|
||||||
|
size="md"
|
||||||
|
class="my-auto"
|
||||||
|
@click="backPage"
|
||||||
|
:disable="page == 1"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 col-md-auto">
|
||||||
|
<div class="q-pa-md flex">
|
||||||
|
หน้าที่ {{ page }} จาก {{ numOfPages }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col text-right">
|
||||||
|
<q-btn
|
||||||
|
padding="xs"
|
||||||
|
icon="mdi-chevron-right"
|
||||||
|
color="grey-2"
|
||||||
|
text-color="grey-5"
|
||||||
|
size="md"
|
||||||
|
@click="nextPage"
|
||||||
|
:disable="page === numOfPages"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</q-card>
|
||||||
|
</q-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
|
|
@ -6,4 +6,8 @@ interface DataOption2 {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
export type { DataOption, DataOption2 };
|
interface DataDateMonthObject {
|
||||||
|
month: number;
|
||||||
|
year: number;
|
||||||
|
}
|
||||||
|
export type { DataOption, DataOption2, DataDateMonthObject };
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
const workMain = () => import("@/modules/09_leave/views/WorkingMain.vue");
|
const workMain = () => import("@/modules/09_leave/views/WorkingMain.vue");
|
||||||
const leaveMain = () => import("@/modules/09_leave/views/LeaveListMain.vue");
|
const leaveMain = () => import("@/modules/09_leave/views/LeaveListMain.vue");
|
||||||
const reportMain = () => import("@/modules/09_leave/views/ReportMain.vue");
|
const reportMain = () => import("@/modules/09_leave/views/ReportMain.vue");
|
||||||
|
const reportDetail = () =>
|
||||||
|
import("@/modules/09_leave/components/3_Report/DetailReport.vue");
|
||||||
const leaveDetail = () =>
|
const leaveDetail = () =>
|
||||||
import("@/modules/09_leave/components/2_Leave/DetailLeave.vue");
|
import("@/modules/09_leave/components/2_Leave/DetailLeave.vue");
|
||||||
const leaveDetailReject = () =>
|
const leaveDetailReject = () =>
|
||||||
|
|
@ -102,4 +104,14 @@ export default [
|
||||||
Role: "coin",
|
Role: "coin",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/statistics-report/:type",
|
||||||
|
name: "/statistics-report-detail",
|
||||||
|
component: reportDetail,
|
||||||
|
meta: {
|
||||||
|
Auth: true,
|
||||||
|
Key: [9],
|
||||||
|
Role: "coin",
|
||||||
|
},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,9 @@ export const useSpecialTimeStore = defineStore("LeaveSpecialTime", () => {
|
||||||
const checkOutStatus = ref<String>("ปกติ");
|
const checkOutStatus = ref<String>("ปกติ");
|
||||||
|
|
||||||
// paging
|
// paging
|
||||||
const year = ref<number>(2023);
|
const toDay = ref<Date>(new Date());
|
||||||
const month = ref<number>(11);
|
const month = ref<number>(11);
|
||||||
|
const year = ref<number>(2023);
|
||||||
const page = ref<number>(1);
|
const page = ref<number>(1);
|
||||||
const total = ref<number>(0);
|
const total = ref<number>(0);
|
||||||
const pageSize = ref<number>(10);
|
const pageSize = ref<number>(10);
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,66 @@
|
||||||
<script setup lang="ts"></script>
|
<script setup lang="ts">
|
||||||
|
import { useRouter } from "vue-router";
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
|
function nextPage(type: string,) {
|
||||||
|
router.push(`/statistics-report/${type}`);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="toptitle text-dark col-12 row items-center">รายงานสถิติ</div>
|
<div class="toptitle text-dark col-12 row items-center">รายงานสถิติ</div>
|
||||||
<div>
|
<div>
|
||||||
<q-card flat bordered class="col-12 q-mt-sm"> </q-card>
|
<q-card flat bordered class="col-12 q-mt-sm">
|
||||||
|
<div class="q-pa-md">
|
||||||
|
<q-item clickable dense class="hover-green" @click="nextPage('daily')">
|
||||||
|
<q-item-section avatar>
|
||||||
|
<q-icon color="primary" name="mdi-file" size="xs" />
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section class="text-dark">
|
||||||
|
รายงานสรุปบันทึกการลงเวลาปฏิบัติงานเป็นรายวัน
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
|
||||||
|
<q-item
|
||||||
|
clickable
|
||||||
|
dense
|
||||||
|
class="hover-green"
|
||||||
|
@click="nextPage('monthly')"
|
||||||
|
>
|
||||||
|
<q-item-section avatar>
|
||||||
|
<q-icon color="primary" name="mdi-file" size="xs" />
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section class="text-dark">
|
||||||
|
รายงานสรุปบันทึกการลงเวลาปฏิบัติงานเป็นรายเดือน
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
|
||||||
|
<q-item clickable dense class="hover-green" @click="nextPage('yearly')">
|
||||||
|
<q-item-section avatar>
|
||||||
|
<q-icon color="primary" name="mdi-file" size="xs" />
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section class="text-dark">
|
||||||
|
รายงานสรุปบันทึกการลงเวลาปฏิบัติงานเป็นรายปี
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
|
||||||
|
<q-item clickable dense class="hover-green" @click="nextPage('leaveday')">
|
||||||
|
<q-item-section avatar>
|
||||||
|
<q-icon color="primary" name="mdi-file" size="xs" />
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section class="text-dark"> บัญชีแสดงวันลา </q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</div>
|
||||||
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped></style>
|
<style lang="scss" scoped>
|
||||||
|
.q-item.hover-green:hover {
|
||||||
|
background-color: #d5f1ee57;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
.q-item.hover-green {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -207,6 +207,7 @@ async function onSubmit(data: any) {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(async () => {
|
.finally(async () => {
|
||||||
|
getData();
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
// router.push(`/discipline/complaints`);
|
// router.push(`/discipline/complaints`);
|
||||||
|
|
|
||||||
|
|
@ -184,10 +184,9 @@ function onSubmit() {
|
||||||
$q,
|
$q,
|
||||||
async () => {
|
async () => {
|
||||||
if (mainStore.rowsAdd) {
|
if (mainStore.rowsAdd) {
|
||||||
formData.persons = mainStore.rowsAdd;
|
formData.persons = await mainStore.rowsAdd;
|
||||||
props.onSubmit(formData);
|
}
|
||||||
} else props.onSubmit(formData);
|
await props.onSubmit(formData);
|
||||||
// props.onSubmit(formData);
|
|
||||||
isSave.value = false;
|
isSave.value = false;
|
||||||
},
|
},
|
||||||
"ยืนยันการบันทึกข้อมูล",
|
"ยืนยันการบันทึกข้อมูล",
|
||||||
|
|
@ -321,10 +320,10 @@ function getOc() {
|
||||||
*/
|
*/
|
||||||
function deletePerson(id: string) {
|
function deletePerson(id: string) {
|
||||||
// dialogRemove($q, () => {
|
// dialogRemove($q, () => {
|
||||||
changeFormData();
|
|
||||||
const dataRow = mainStore.rowsAdd;
|
const dataRow = mainStore.rowsAdd;
|
||||||
const updatedRows = dataRow.filter((item: any) => item.personId !== id);
|
const updatedRows = dataRow.filter((item: any) => item.personId !== id);
|
||||||
mainStore.rowsAdd = updatedRows;
|
mainStore.rowsAdd = updatedRows;
|
||||||
|
changeFormData();
|
||||||
// });
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -984,11 +983,11 @@ onMounted(() => {
|
||||||
<!-- Popup ผู้ถูกร้องเรียน -->
|
<!-- Popup ผู้ถูกร้องเรียน -->
|
||||||
<DialogAddPersonal
|
<DialogAddPersonal
|
||||||
title="ผู้ถูกร้องเรียน"
|
title="ผู้ถูกร้องเรียน"
|
||||||
:checkId="mainStore.rowsAdd"
|
|
||||||
:modal="modal"
|
:modal="modal"
|
||||||
btn-title="เพิ่มรายชื่อผู้ถูกร้องเรียน"
|
btn-title="เพิ่มรายชื่อผู้ถูกร้องเรียน"
|
||||||
:close="toggleModal"
|
:close="toggleModal"
|
||||||
:save="addPerson"
|
:save="addPerson"
|
||||||
|
:selected-data="mainStore.rowsAdd"
|
||||||
@returnData="handleSave"
|
@returnData="handleSave"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -1302,7 +1302,7 @@ onMounted(async () => {
|
||||||
|
|
||||||
<DialogAddPersonal
|
<DialogAddPersonal
|
||||||
title="ผู้ถูกร้องเรียน"
|
title="ผู้ถูกร้องเรียน"
|
||||||
:checkId="mainStore.rowsAdd"
|
:mainData="mainStore.rowsAdd"
|
||||||
:modal="modalPerson"
|
:modal="modalPerson"
|
||||||
btn-title="เพิ่มรายชื่อผู้ถูกร้องเรียน"
|
btn-title="เพิ่มรายชื่อผู้ถูกร้องเรียน"
|
||||||
:close="toggleModal"
|
:close="toggleModal"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed, watchEffect, onMounted } from "vue";
|
import { ref, computed, watchEffect, onMounted, watch } from "vue";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
|
|
@ -119,6 +119,7 @@ const columns2 = ref<QTableProps["columns"]>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
data:Array,
|
||||||
Modal: Boolean,
|
Modal: Boolean,
|
||||||
closeModal: Function,
|
closeModal: Function,
|
||||||
getData: Function,
|
getData: Function,
|
||||||
|
|
@ -209,8 +210,15 @@ watchEffect(() => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
watch(()=>props.data,()=>{
|
||||||
|
if(props.data){
|
||||||
|
const data = props.data.persons
|
||||||
|
console.log(data)
|
||||||
|
}
|
||||||
|
})
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await fecthTypeOption();
|
await fecthTypeOption();
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
|
|
@ -28,15 +28,6 @@ const route = useRoute();
|
||||||
const id = ref<string>(route.params.id as string);
|
const id = ref<string>(route.params.id as string);
|
||||||
const type = ref<string>("");
|
const type = ref<string>("");
|
||||||
|
|
||||||
/** ข้อมูล v-model ของฟอร์ม */
|
|
||||||
const data = reactive<FormData>({
|
|
||||||
detail: "",
|
|
||||||
});
|
|
||||||
|
|
||||||
/** จำลองข้อมูลจาก api */
|
|
||||||
const fetchData = async () => {
|
|
||||||
data.detail = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* บันทึกข้อมูลที่เเก้ไข
|
* บันทึกข้อมูลที่เเก้ไข
|
||||||
|
|
@ -331,6 +322,7 @@ watch(
|
||||||
v-model:Modal="modal"
|
v-model:Modal="modal"
|
||||||
:closeModal="closeModal"
|
:closeModal="closeModal"
|
||||||
:rows2="[]"
|
:rows2="[]"
|
||||||
|
:data="dataResult"
|
||||||
v-model:filterKeyword2="filterKeyword"
|
v-model:filterKeyword2="filterKeyword"
|
||||||
:getData="getData"
|
:getData="getData"
|
||||||
v-model:type="type"
|
v-model:type="type"
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,20 @@ interface ListData {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ArrayPerson {
|
interface ArrayPerson {
|
||||||
|
id:string
|
||||||
|
idcard:string
|
||||||
|
name:string
|
||||||
|
prefix:string
|
||||||
|
firstName:string
|
||||||
|
lastName:string
|
||||||
|
posNo:string
|
||||||
|
position:string
|
||||||
|
positionLevel:string
|
||||||
|
salary:number|null
|
||||||
|
organization:string
|
||||||
|
}
|
||||||
|
|
||||||
|
interface ArrayPersonAdd {
|
||||||
personId:string
|
personId:string
|
||||||
idcard:string
|
idcard:string
|
||||||
name:string
|
name:string
|
||||||
|
|
@ -24,8 +38,9 @@ interface ArrayPerson {
|
||||||
salary:number|null
|
salary:number|null
|
||||||
organization:string
|
organization:string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ocListType{
|
interface ocListType{
|
||||||
organizationId:string
|
organizationId:string
|
||||||
organizationName:string
|
organizationName:string
|
||||||
}
|
}
|
||||||
export type { ListData,ArrayPerson,ocListType };
|
export type { ListData,ArrayPerson,ocListType,ArrayPersonAdd };
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { defineStore } from "pinia";
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import type { DataOption } from "@/modules/11_discipline/interface/index/Main";
|
import type { DataOption } from "@/modules/11_discipline/interface/index/Main";
|
||||||
import type { ArrayPerson } from "@/modules/11_discipline/interface/response/investigate";
|
import type { ArrayPerson, ArrayPersonAdd } from "@/modules/11_discipline/interface/response/investigate";
|
||||||
|
|
||||||
export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
||||||
/** option ผู้ถูกสอบสวน*/
|
/** option ผู้ถูกสอบสวน*/
|
||||||
|
|
@ -278,6 +278,7 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
||||||
rowsAdd.value = data;
|
rowsAdd.value = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
complainantoptionsMain,
|
complainantoptionsMain,
|
||||||
convertFault,
|
convertFault,
|
||||||
|
|
@ -292,7 +293,6 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
||||||
visibleColumnsDirector,
|
visibleColumnsDirector,
|
||||||
rowsAdd,
|
rowsAdd,
|
||||||
fetchData,
|
fetchData,
|
||||||
|
|
||||||
statusResultOptions,
|
statusResultOptions,
|
||||||
convertStatusResult,
|
convertStatusResult,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue