Merge branch 'develop' into dev-tee
This commit is contained in:
commit
68a2ae4fa4
22 changed files with 825 additions and 603 deletions
|
|
@ -73,7 +73,7 @@
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
v-model="informaData.firstname"
|
v-model="informaData.firstname"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
|
||||||
:label="`${'ชื่อ'}`"
|
:label="`${'ชื่อ(ภาษาไทย)'}`"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6 col-sm-3 col-md-3">
|
<div class="col-xs-6 col-sm-3 col-md-3">
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
v-model="informaData.lastname"
|
v-model="informaData.lastname"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
|
||||||
:label="`${'นามสกุล'}`"
|
:label="`${'นามสกุล(ภาษาไทย)'}`"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6 col-sm-2 col-md-2">
|
<div class="col-xs-6 col-sm-2 col-md-2">
|
||||||
|
|
@ -116,7 +116,11 @@
|
||||||
lazy-rules
|
lazy-rules
|
||||||
:readonly="!edit"
|
:readonly="!edit"
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
:model-value="informaData.birthDate ? date2Thai(informaData.birthDate) : null"
|
:model-value="
|
||||||
|
informaData.birthDate
|
||||||
|
? date2Thai(informaData.birthDate)
|
||||||
|
: null
|
||||||
|
"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]"
|
||||||
:label="`${'วัน/เดือน/ปี เกิด'}`"
|
:label="`${'วัน/เดือน/ปี เกิด'}`"
|
||||||
>
|
>
|
||||||
|
|
@ -1054,7 +1058,9 @@ const editData = async () => {
|
||||||
nationality: informaData.value.nationality,
|
nationality: informaData.value.nationality,
|
||||||
race: informaData.value.ethnicity,
|
race: informaData.value.ethnicity,
|
||||||
religionId: informaData.value.religionId,
|
religionId: informaData.value.religionId,
|
||||||
birthDate: informaData.value.birthDate ? dateToISO(informaData.value.birthDate) : dateToISO(new Date()),
|
birthDate: informaData.value.birthDate
|
||||||
|
? dateToISO(informaData.value.birthDate)
|
||||||
|
: dateToISO(new Date()),
|
||||||
bloodGroupId: informaData.value.bloodId,
|
bloodGroupId: informaData.value.bloodId,
|
||||||
relationshipId: informaData.value.statusId,
|
relationshipId: informaData.value.statusId,
|
||||||
telephoneNumber: informaData.value.tel,
|
telephoneNumber: informaData.value.tel,
|
||||||
|
|
|
||||||
|
|
@ -252,7 +252,7 @@ const menuList = readonly<any[]>([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 6.8,
|
key: 6.8,
|
||||||
label: "รายการแต่งตั้งลูกจ้างประจำ",
|
label: "ปรับระดับชั้นงาน-ย้ายลูกจ้าง",
|
||||||
path: "appoint-employee",
|
path: "appoint-employee",
|
||||||
role: "placement",
|
role: "placement",
|
||||||
},
|
},
|
||||||
|
|
@ -374,25 +374,25 @@ const menuList = readonly<any[]>([
|
||||||
activeIcon: "mdi-calendar",
|
activeIcon: "mdi-calendar",
|
||||||
label: "การลา",
|
label: "การลา",
|
||||||
path: "leave",
|
path: "leave",
|
||||||
role: "coin",
|
role: "leave",
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
key: 9.1,
|
key: 9.1,
|
||||||
label: "รายการลงเวลาปฏิบัติงาน",
|
label: "รายการลงเวลาปฏิบัติงาน",
|
||||||
path: "/work-list",
|
path: "/work-list",
|
||||||
role: "coin",
|
role: "leave",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 9.2,
|
key: 9.2,
|
||||||
label: "รายการลา",
|
label: "รายการลา",
|
||||||
path: "/leave-list",
|
path: "/leave-list",
|
||||||
role: "coin",
|
role: "leave",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 9.3,
|
key: 9.3,
|
||||||
label: "รายงานสถิติ",
|
label: "รายงานสถิติ",
|
||||||
path: "/statistics-report",
|
path: "/statistics-report",
|
||||||
role: "coin",
|
role: "leave",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
@ -402,53 +402,53 @@ const menuList = readonly<any[]>([
|
||||||
activeIcon: "mdi-calendar",
|
activeIcon: "mdi-calendar",
|
||||||
label: "วินัย",
|
label: "วินัย",
|
||||||
path: "/discipline",
|
path: "/discipline",
|
||||||
role: "coin",
|
role: "discipline",
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
key: 11.1,
|
key: 11.1,
|
||||||
label: "เรื่องร้องเรียน",
|
label: "เรื่องร้องเรียน",
|
||||||
path: "/discipline-complaints",
|
path: "/discipline-complaints",
|
||||||
role: "coin",
|
role: "discipline",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 11.2,
|
key: 11.2,
|
||||||
label: "สืบสวนข้อเท็จจริง",
|
label: "สืบสวนข้อเท็จจริง",
|
||||||
path: "/discipline-investigatefacts",
|
path: "/discipline-investigatefacts",
|
||||||
role: "coin",
|
role: "discipline",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 11.3,
|
key: 11.3,
|
||||||
label: "สอบสวนความผิดวินัย",
|
label: "สอบสวนความผิดวินัย",
|
||||||
path: "/discipline-disciplinary",
|
path: "/discipline-disciplinary",
|
||||||
role: "coin",
|
role: "discipline",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 11.4,
|
key: 11.4,
|
||||||
label: "ออกคำสั่ง",
|
label: "ออกคำสั่ง",
|
||||||
path: "/disciplineorder",
|
path: "/disciplineorder",
|
||||||
role: "coin",
|
role: "discipline",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 11.5,
|
key: 11.5,
|
||||||
label: "รายงาน",
|
label: "รายงาน",
|
||||||
path: "/discipline-report",
|
path: "/discipline-report",
|
||||||
role: "coin",
|
role: "discipline",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "ข้อมูลพื้นฐาน",
|
label: "ข้อมูลพื้นฐาน",
|
||||||
path: "",
|
path: "",
|
||||||
key: 11.6,
|
key: 11.6,
|
||||||
role: "coin",
|
role: "discipline",
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
label: "กรรมการ",
|
label: "กรรมการ",
|
||||||
path: "/discipline-director",
|
path: "/discipline-director",
|
||||||
role: "coin",
|
role: "discipline",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "ช่องทางการร้องเรียน",
|
label: "ช่องทางการร้องเรียน",
|
||||||
path: "/discipline-channel",
|
path: "/discipline-channel",
|
||||||
role: "coin",
|
role: "discipline",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,51 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="q-px-md q-pb-md">
|
<div class="q-px-md q-pb-md">
|
||||||
<q-card
|
<q-card bordered flat class="col-12 row q-py-sm items-center bg-grey-1" v-show="statusPayment">
|
||||||
bordered
|
|
||||||
flat
|
|
||||||
class="col-12 row q-py-sm items-center bg-grey-1"
|
|
||||||
v-show="statusPayment"
|
|
||||||
>
|
|
||||||
<div class="col-12 row q-col-gutter-sm">
|
<div class="col-12 row q-col-gutter-sm">
|
||||||
<span class="text-subtitle1">{{ titleText }}</span>
|
<span class="text-subtitle1">{{ titleText }}</span>
|
||||||
<q-select
|
<q-select dense outlined :model-value="inputvisibleFilter" :options="optionsFilter" option-value="id"
|
||||||
dense
|
option-label="name" map-options class="col-xs-12 col-sm-3" label="สถานะ" emit-value
|
||||||
outlined
|
@update:model-value="updateVisibleFilter" v-if="optionsFilter != undefined && optionsFilter.length > 0" />
|
||||||
:model-value="inputvisibleFilter"
|
<q-file v-model="files" dense :label="setSeat == false ? 'อัปโหลดที่นั่งสอบ' : 'อัปโหลดคะแนนสอบ'" outlined
|
||||||
:options="optionsFilter"
|
use-chips multiple class="col-xs-12 col-sm-4" v-if="statusPayment">
|
||||||
option-value="id"
|
|
||||||
option-label="name"
|
|
||||||
map-options
|
|
||||||
class="col-xs-12 col-sm-3"
|
|
||||||
label="สถานะ"
|
|
||||||
emit-value
|
|
||||||
@update:model-value="updateVisibleFilter"
|
|
||||||
v-if="optionsFilter != undefined && optionsFilter.length > 0"
|
|
||||||
/>
|
|
||||||
<q-file
|
|
||||||
v-model="files"
|
|
||||||
dense
|
|
||||||
:label="setSeat == false ? 'อัปโหลดที่นั่งสอบ' : 'อัปโหลดคะแนนสอบ'"
|
|
||||||
outlined
|
|
||||||
use-chips
|
|
||||||
multiple
|
|
||||||
class="col-xs-12 col-sm-4"
|
|
||||||
v-if="statusPayment"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon name="attach_file" color="blue" />
|
<q-icon name="attach_file" color="blue" />
|
||||||
</template>
|
</template>
|
||||||
</q-file>
|
</q-file>
|
||||||
<div>
|
<div>
|
||||||
<q-btn
|
<q-btn size="md" icon="mdi-upload" round flat color="blue" v-if="statusPayment" @click="uploadFile">
|
||||||
size="md"
|
|
||||||
icon="mdi-upload"
|
|
||||||
round
|
|
||||||
flat
|
|
||||||
color="blue"
|
|
||||||
v-if="statusPayment"
|
|
||||||
@click="uploadFile"
|
|
||||||
>
|
|
||||||
<q-tooltip v-if="setSeat == false">อัปโหลดที่นั่งสอบ</q-tooltip>
|
<q-tooltip v-if="setSeat == false">อัปโหลดที่นั่งสอบ</q-tooltip>
|
||||||
<q-tooltip v-if="setSeat == true">อัปโหลดคะแนนสอบ</q-tooltip>
|
<q-tooltip v-if="setSeat == true">อัปโหลดคะแนนสอบ</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
@ -54,34 +22,15 @@
|
||||||
</q-card>
|
</q-card>
|
||||||
<div class="col-12 row q-py-sm items-center q-col-gutter-sm">
|
<div class="col-12 row q-py-sm items-center q-col-gutter-sm">
|
||||||
<div class="col-xs-12 col-sm-3" v-show="!statusPayment">
|
<div class="col-xs-12 col-sm-3" v-show="!statusPayment">
|
||||||
<q-select
|
<q-select dense outlined :model-value="inputvisibleFilter" :options="optionsFilter" option-value="id"
|
||||||
dense
|
option-label="name" map-options class="" label="สถานะ" emit-value @update:model-value="updateVisibleFilter"
|
||||||
outlined
|
v-if="optionsFilter != undefined && optionsFilter.length > 0" />
|
||||||
:model-value="inputvisibleFilter"
|
|
||||||
:options="optionsFilter"
|
|
||||||
option-value="id"
|
|
||||||
option-label="name"
|
|
||||||
map-options
|
|
||||||
class=""
|
|
||||||
label="สถานะ"
|
|
||||||
emit-value
|
|
||||||
@update:model-value="updateVisibleFilter"
|
|
||||||
v-if="optionsFilter != undefined && optionsFilter.length > 0"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<q-btn
|
<q-btn size="md" icon="mdi-playlist-check" round flat color="primary" @click="candidateCheckProfileDialog"
|
||||||
size="md"
|
:disabled="attrs.rows.filter((r: any) => r.status == 'checkRegister').length == 0 ||
|
||||||
icon="mdi-playlist-check"
|
|
||||||
round
|
|
||||||
flat
|
|
||||||
color="primary"
|
|
||||||
@click="candidateCheckProfileDialog"
|
|
||||||
:disabled="
|
|
||||||
attrs.rows.filter((r) => r.status == 'checkRegister').length == 0 ||
|
|
||||||
selected.length == 0
|
selected.length == 0
|
||||||
"
|
">
|
||||||
>
|
|
||||||
<q-tooltip>ตรวจสอบข้อมูล/ได้รับใบสมัครแล้ว</q-tooltip>
|
<q-tooltip>ตรวจสอบข้อมูล/ได้รับใบสมัครแล้ว</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -93,21 +42,11 @@
|
||||||
<q-item clickable v-close-popup @click="downloadFileDashboard">
|
<q-item clickable v-close-popup @click="downloadFileDashboard">
|
||||||
<q-item-section>ดาวน์โหลดสรุปข้อมูลสมัครสอบ</q-item-section>
|
<q-item-section>ดาวน์โหลดสรุปข้อมูลสมัครสอบ</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
<q-item clickable v-close-popup @click.stop.prevent="clickCandidateList()">
|
||||||
clickable
|
|
||||||
v-close-popup
|
|
||||||
@click.stop.prevent="clickCandidateList()"
|
|
||||||
>
|
|
||||||
<q-item-section>ดาวน์โหลดรายชื่อผู้มีสิทธิ์สอบ</q-item-section>
|
<q-item-section>ดาวน์โหลดรายชื่อผู้มีสิทธิ์สอบ</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
<q-item clickable v-close-popup @click.stop.prevent="clickPassExam()">
|
||||||
clickable
|
<q-item-section>ดาวน์โหลดรายชื่อผู้สอบคัดเลือกได้</q-item-section>
|
||||||
v-close-popup
|
|
||||||
@click.stop.prevent="clickPassExam()"
|
|
||||||
>
|
|
||||||
<q-item-section
|
|
||||||
>ดาวน์โหลดรายชื่อผู้สอบคัดเลือกได้</q-item-section
|
|
||||||
>
|
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup @click="downloadFile()">
|
<q-item clickable v-close-popup @click="downloadFile()">
|
||||||
<q-item-section>ดาวน์โหลดจัดการรายชื่อผู้สมัคร</q-item-section>
|
<q-item-section>ดาวน์โหลดจัดการรายชื่อผู้สมัคร</q-item-section>
|
||||||
|
|
@ -120,88 +59,35 @@
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<q-btn
|
<q-btn size="md" icon="mdi-content-save-move-outline" round flat color="indigo"
|
||||||
size="md"
|
v-if="statusPayment && setSeat == true" @click="candidateToPlacement">
|
||||||
icon="mdi-content-save-move-outline"
|
|
||||||
round
|
|
||||||
flat
|
|
||||||
color="indigo"
|
|
||||||
v-if="statusPayment && setSeat == true"
|
|
||||||
@click="candidateToPlacement"
|
|
||||||
>
|
|
||||||
<q-tooltip>บรรจุผู้ผ่านการคัดเลือก</q-tooltip>
|
<q-tooltip>บรรจุผู้ผ่านการคัดเลือก</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
<q-space />
|
<q-space />
|
||||||
<div class="items-center gt-xs" style="display: flex">
|
<div class="items-center gt-xs" style="display: flex">
|
||||||
<!-- ค้นหาข้อความใน table -->
|
<!-- ค้นหาข้อความใน table -->
|
||||||
<q-input
|
<q-input standout dense :model-value="inputfilter" ref="filterRef" @update:model-value="updateInput" outlined
|
||||||
standout
|
debounce="300" placeholder="ค้นหา" style="max-width: 200px" class="q-ml-sm">
|
||||||
dense
|
|
||||||
:model-value="inputfilter"
|
|
||||||
ref="filterRef"
|
|
||||||
@update:model-value="updateInput"
|
|
||||||
outlined
|
|
||||||
debounce="300"
|
|
||||||
placeholder="ค้นหา"
|
|
||||||
style="max-width: 200px"
|
|
||||||
class="q-ml-sm"
|
|
||||||
>
|
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-icon v-if="inputfilter == ''" name="search" />
|
<q-icon v-if="inputfilter == ''" name="search" />
|
||||||
<q-icon
|
<q-icon v-if="inputfilter !== ''" name="clear" class="cursor-pointer" @click="resetFilter" />
|
||||||
v-if="inputfilter !== ''"
|
|
||||||
name="clear"
|
|
||||||
class="cursor-pointer"
|
|
||||||
@click="resetFilter"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
<!-- แสดงคอลัมน์ใน table -->
|
<!-- แสดงคอลัมน์ใน table -->
|
||||||
<q-select
|
<q-select :model-value="inputvisible" @update:model-value="updateVisible" :display-value="$q.lang.table.columns"
|
||||||
:model-value="inputvisible"
|
multiple outlined dense :options="attrs.columns" options-dense option-value="name" map-options emit-value
|
||||||
@update:model-value="updateVisible"
|
style="min-width: 150px" class="q-ml-sm" />
|
||||||
:display-value="$q.lang.table.columns"
|
|
||||||
multiple
|
|
||||||
outlined
|
|
||||||
dense
|
|
||||||
:options="attrs.columns"
|
|
||||||
options-dense
|
|
||||||
option-value="name"
|
|
||||||
map-options
|
|
||||||
emit-value
|
|
||||||
style="min-width: 150px"
|
|
||||||
class="q-ml-sm"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<q-table
|
|
||||||
ref="table"
|
<q-table ref="table" flat bordered class="custom-header-table" v-bind="attrs" virtual-scroll
|
||||||
flat
|
:virtual-scroll-sticky-size-start="48" dense :pagination="initialPagination"
|
||||||
bordered
|
:rows-per-page-options="paging == true ? [25, 50, 100, 500] : []" row-key="id" selection="multiple"
|
||||||
class="custom-header-table"
|
v-model:selected="selected" @update:pagination="updatePagination">
|
||||||
v-bind="attrs"
|
|
||||||
virtual-scroll
|
|
||||||
:virtual-scroll-sticky-size-start="48"
|
|
||||||
dense
|
|
||||||
:pagination-label="paginationLabel"
|
|
||||||
:pagination="initialPagination"
|
|
||||||
:rows-per-page-options="paging == true ? [25, 50, 100, 500] : []"
|
|
||||||
row-key="id"
|
|
||||||
selection="multiple"
|
|
||||||
v-model:selected="selected"
|
|
||||||
>
|
|
||||||
<template v-slot:pagination="scope">
|
<template v-slot:pagination="scope">
|
||||||
<q-pagination
|
ทั้งหมด {{ props.total }} รายการ
|
||||||
v-model="pagination.page"
|
<q-pagination v-model="currentPage" active-color="primary" color="dark" :max-pages="5" size="sm" boundary-links direction-links :max="props.maxPage < 1 ? 1 : props.maxPage"></q-pagination>
|
||||||
active-color="primary"
|
|
||||||
color="dark"
|
|
||||||
:max="scope.pagesNumber"
|
|
||||||
:max-pages="5"
|
|
||||||
size="sm"
|
|
||||||
boundary-links
|
|
||||||
direction-links
|
|
||||||
></q-pagination>
|
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
|
|
@ -212,12 +98,8 @@
|
||||||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
<span class="text-weight-medium">{{ col.label }}</span>
|
<span class="text-weight-medium">{{ col.label }}</span>
|
||||||
</q-th>
|
</q-th>
|
||||||
<q-th
|
<q-th auto-width v-if="editvisible == true || nextPageVisible == true || history == true
|
||||||
auto-width
|
" />
|
||||||
v-if="
|
|
||||||
editvisible == true || nextPageVisible == true || history == true
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template #body="props">
|
<template #body="props">
|
||||||
|
|
@ -227,7 +109,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, useAttrs } from "vue";
|
import { ref, useAttrs, watch, watchEffect } from "vue";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
|
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
@ -251,12 +133,6 @@ const selected = ref<string[]>([]);
|
||||||
const { messageError, showLoader, hideLoader } = mixin;
|
const { messageError, showLoader, hideLoader } = mixin;
|
||||||
|
|
||||||
const dateFilter = ref<[Date, Date]>([new Date(), new Date()]); //วันที่เลือกค้นหา
|
const dateFilter = ref<[Date, Date]>([new Date(), new Date()]); //วันที่เลือกค้นหา
|
||||||
const pagination = ref({
|
|
||||||
// sortBy: "desc",
|
|
||||||
descending: false,
|
|
||||||
page: 1,
|
|
||||||
rowsPerPage: 10,
|
|
||||||
});
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
inputfilter: String,
|
inputfilter: String,
|
||||||
inputvisible: Array,
|
inputvisible: Array,
|
||||||
|
|
@ -287,6 +163,22 @@ const props = defineProps({
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
defualt: false,
|
defualt: false,
|
||||||
},
|
},
|
||||||
|
pageSize: {
|
||||||
|
type: Number,
|
||||||
|
defualt: 25
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
type: Number,
|
||||||
|
defualt: 1
|
||||||
|
},
|
||||||
|
maxPage: {
|
||||||
|
type: Number,
|
||||||
|
defualt: 1
|
||||||
|
},
|
||||||
|
total: {
|
||||||
|
type: Number,
|
||||||
|
defualt: 0
|
||||||
|
},
|
||||||
nornmalData: {
|
nornmalData: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
defualt: false,
|
defualt: false,
|
||||||
|
|
@ -337,11 +229,32 @@ const props = defineProps({
|
||||||
type: Function,
|
type: Function,
|
||||||
default: () => console.log("not function"),
|
default: () => console.log("not function"),
|
||||||
},
|
},
|
||||||
|
changePage: {
|
||||||
|
type: Function,
|
||||||
|
default: () => console.log("not function"),
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Pagination - page & change page & get new data
|
||||||
|
const currentPage = ref<number>(1)
|
||||||
|
watch(currentPage, () => {
|
||||||
|
props.changePage(currentPage.value, props.pageSize, true);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Pagination - initial pagination
|
||||||
const initialPagination = ref<any>({
|
const initialPagination = ref<any>({
|
||||||
rowsPerPage: props.paging == true ? 25 : 0,
|
sortBy: null,
|
||||||
|
descending: false,
|
||||||
|
page: 1,
|
||||||
|
rowsPerPage: props.pageSize,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Pagination - update rowsPerPage
|
||||||
|
async function updatePagination(newPagination: any) {
|
||||||
|
props.changePage(1, newPagination.rowsPerPage, true);
|
||||||
|
initialPagination.value = newPagination
|
||||||
|
}
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
"update:inputfilter",
|
"update:inputfilter",
|
||||||
"update:inputvisible",
|
"update:inputvisible",
|
||||||
|
|
@ -350,8 +263,14 @@ const emit = defineEmits([
|
||||||
"update:inputvisibleFilter",
|
"update:inputvisibleFilter",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const updateInput = (value: any) => {
|
const updateInput = async (value: any) => {
|
||||||
emit("update:inputfilter", value);
|
await emit("update:inputfilter", value);
|
||||||
|
|
||||||
|
// search & get new data by keyword
|
||||||
|
if (value.length > 3) {
|
||||||
|
props.changePage(1, props.pageSize);
|
||||||
|
currentPage.value = 1
|
||||||
|
}
|
||||||
};
|
};
|
||||||
const updateVisible = (value: any) => {
|
const updateVisible = (value: any) => {
|
||||||
emit("update:inputvisible", value);
|
emit("update:inputvisible", value);
|
||||||
|
|
@ -360,12 +279,6 @@ const updateVisibleFilter = (value: any) => {
|
||||||
emit("update:inputvisibleFilter", value);
|
emit("update:inputvisibleFilter", value);
|
||||||
};
|
};
|
||||||
|
|
||||||
const paginationLabel = (start: string, end: string, total: string) => {
|
|
||||||
if (props.paging == true)
|
|
||||||
return " " + start + " ถึง " + end + " จากจำนวน " + total + " รายการ";
|
|
||||||
else return start + "-" + end + " ใน " + total;
|
|
||||||
};
|
|
||||||
|
|
||||||
const uploadFile = async () => {
|
const uploadFile = async () => {
|
||||||
if (files.value.length > 0) {
|
if (files.value.length > 0) {
|
||||||
if (props.setSeat == false) {
|
if (props.setSeat == false) {
|
||||||
|
|
@ -406,8 +319,8 @@ const candidateToPlacement = async () => {
|
||||||
router.go(-1);
|
router.go(-1);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.onCancel(() => {})
|
.onCancel(() => { })
|
||||||
.onDismiss(() => {});
|
.onDismiss(() => { });
|
||||||
};
|
};
|
||||||
|
|
||||||
const uploadDataSeat = async () => {
|
const uploadDataSeat = async () => {
|
||||||
|
|
@ -486,7 +399,7 @@ const downloadFileDetail = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const checkCandidates = async () => {
|
const checkCandidates = async () => {
|
||||||
var _selected = [];
|
var _selected: any[] = [];
|
||||||
selected.value.map((r: any) => {
|
selected.value.map((r: any) => {
|
||||||
_selected.push(r.id.toString());
|
_selected.push(r.id.toString());
|
||||||
});
|
});
|
||||||
|
|
@ -568,6 +481,10 @@ const resetFilter = () => {
|
||||||
// reset ค่าที่ค้นหาเมื่อกดปุ่ม X ในกล่องค้นหา
|
// reset ค่าที่ค้นหาเมื่อกดปุ่ม X ในกล่องค้นหา
|
||||||
emit("update:inputfilter", "");
|
emit("update:inputfilter", "");
|
||||||
filterRef.value.focus();
|
filterRef.value.focus();
|
||||||
|
|
||||||
|
// clear keyword & get new data
|
||||||
|
props.changePage(1, props.pageSize);
|
||||||
|
currentPage.value = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
const downloadFileDashboard = async () => {
|
const downloadFileDashboard = async () => {
|
||||||
|
|
@ -633,11 +550,14 @@ const clickCandidateList = async () => {
|
||||||
.icon-color {
|
.icon-color {
|
||||||
color: #4154b3;
|
color: #4154b3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-header-table {
|
.custom-header-table {
|
||||||
max-height: 64vh;
|
max-height: 64vh;
|
||||||
|
|
||||||
.q-table tr:nth-child(odd) td {
|
.q-table tr:nth-child(odd) td {
|
||||||
background: white;
|
background: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.q-table tr:nth-child(even) td {
|
.q-table tr:nth-child(even) td {
|
||||||
background: #f8f8f8;
|
background: #f8f8f8;
|
||||||
}
|
}
|
||||||
|
|
@ -650,11 +570,13 @@ const clickCandidateList = async () => {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this will be the loading indicator */
|
/* this will be the loading indicator */
|
||||||
.q-table thead tr:last-child th {
|
.q-table thead tr:last-child th {
|
||||||
/* height of all previous header rows */
|
/* height of all previous header rows */
|
||||||
top: 48px;
|
top: 48px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.q-table thead tr:first-child th {
|
.q-table thead tr:first-child th {
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,35 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="toptitle text-dark col-12 row items-center">
|
<div class="toptitle text-dark col-12 row items-center">
|
||||||
<q-btn
|
<q-btn icon="mdi-arrow-left" unelevated round dense flat color="primary" class="q-mr-sm" @click="router.go(-1)" />
|
||||||
icon="mdi-arrow-left"
|
|
||||||
unelevated
|
|
||||||
round
|
|
||||||
dense
|
|
||||||
flat
|
|
||||||
color="primary"
|
|
||||||
class="q-mr-sm"
|
|
||||||
@click="router.go(-1)"
|
|
||||||
/>
|
|
||||||
{{ name }}
|
{{ name }}
|
||||||
{{
|
{{
|
||||||
`ครั้งที่${round == null ? "" : round}/${
|
`ครั้งที่${round == null ? "" : round}/${yearly == null ? "" : yearly + 543
|
||||||
yearly == null ? "" : yearly + 543
|
}`
|
||||||
}`
|
|
||||||
}}
|
}}
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-btn
|
<q-btn @click="visible = !visible" dense round size="13px" :style="visible == false
|
||||||
@click="visible = !visible"
|
|
||||||
dense
|
|
||||||
round
|
|
||||||
size="13px"
|
|
||||||
:style="
|
|
||||||
visible == false
|
|
||||||
? 'transform: rotate(90deg);transition-duration: 0.8s;'
|
? 'transform: rotate(90deg);transition-duration: 0.8s;'
|
||||||
: 'transform: rotate(0);transition-duration: 0.8s;'
|
: 'transform: rotate(0);transition-duration: 0.8s;'
|
||||||
"
|
" icon="mdi-pin" flat></q-btn>
|
||||||
icon="mdi-pin"
|
|
||||||
flat
|
|
||||||
></q-btn>
|
|
||||||
</div>
|
</div>
|
||||||
<q-slide-transition>
|
<q-slide-transition>
|
||||||
<q-card class="row col-12 q-mb-sm" v-show="visible">
|
<q-card class="row col-12 q-mb-sm" v-show="visible">
|
||||||
|
|
@ -39,23 +20,16 @@
|
||||||
<div class="col-12 row">
|
<div class="col-12 row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="row col-12 q-col-gutter-sm fit">
|
<div class="row col-12 q-col-gutter-sm fit">
|
||||||
<div
|
<div style="width: 25%" v-for="(num, index) in dataNum" :key="index">
|
||||||
style="width: 25%"
|
|
||||||
v-for="(num, index) in dataNum"
|
|
||||||
:key="index"
|
|
||||||
>
|
|
||||||
<q-card bordered flat class="row fit cardNum items-center">
|
<q-card bordered flat class="row fit cardNum items-center">
|
||||||
<div class="col-12 row items-center q-pa-sm">
|
<div class="col-12 row items-center q-pa-sm">
|
||||||
<div
|
<div :class="'col-12 text-h5 text-weight-bold text-' +
|
||||||
:class="
|
`${num.color}`
|
||||||
'col-12 text-h5 text-weight-bold text-' +
|
">
|
||||||
`${num.color}`
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{
|
{{
|
||||||
num.count != null
|
num.count != null
|
||||||
? num.count.toLocaleString("en-US")
|
? num.count.toLocaleString("en-US")
|
||||||
: ""
|
: ""
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 text-dark ellipsis">
|
<div class="col-12 text-dark ellipsis">
|
||||||
|
|
@ -72,53 +46,27 @@
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-slide-transition>
|
</q-slide-transition>
|
||||||
<q-card flat bordered class="col-12 q-pt-sm">
|
<q-card flat bordered class="col-12 q-pt-sm">
|
||||||
<TableCandidate
|
<TableCandidate style="max-height: 80vh" :rows="rows" :columns="columns" :filter="filter"
|
||||||
style="max-height: 80vh"
|
:visible-columns="visibleColumns" v-model:inputfilter="filter" v-model:inputvisible="visibleColumns"
|
||||||
:rows="rows"
|
v-model:inputvisibleFilter="status" v-model:optionsFilter="optionsStatus"
|
||||||
:columns="columns"
|
:nornmalData="true" :paging="true" :titleText="''" :statusPayment="statusPayment" :setSeat="setSeat"
|
||||||
:filter="filter"
|
:fetchData="fetchDataCom" :history="true" :page-size="page_size" :total="total" :page="page" :changePage="changePage" :max-page="maxPage">
|
||||||
:visible-columns="visibleColumns"
|
|
||||||
v-model:inputfilter="filter"
|
|
||||||
v-model:inputvisible="visibleColumns"
|
|
||||||
v-model:inputvisibleFilter="status"
|
|
||||||
v-model:optionsFilter="optionsStatus"
|
|
||||||
:pagination="initialPagination"
|
|
||||||
:nornmalData="true"
|
|
||||||
:paging="true"
|
|
||||||
:titleText="''"
|
|
||||||
:statusPayment="statusPayment"
|
|
||||||
:setSeat="setSeat"
|
|
||||||
:fetchData="fetchDataCom"
|
|
||||||
:history="true"
|
|
||||||
>
|
|
||||||
<template #columns="props">
|
<template #columns="props">
|
||||||
<q-tr :props="props" class="cursor-pointer">
|
<q-tr :props="props" class="cursor-pointer">
|
||||||
<q-td auto-width>
|
<q-td auto-width>
|
||||||
<q-checkbox v-model="props.selected" />
|
<q-checkbox v-model="props.selected" />
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td
|
<q-td v-for="col in props.cols" :key="col.name" :props="props"
|
||||||
v-for="col in props.cols"
|
@click="viewDetail(props.row.id, props.row.status)">
|
||||||
:key="col.name"
|
|
||||||
:props="props"
|
|
||||||
@click="viewDetail(props.row.id, props.row.status)"
|
|
||||||
>
|
|
||||||
<div v-if="col.name == 'no'" class="table_ellipsis">
|
<div v-if="col.name == 'no'" class="table_ellipsis">
|
||||||
{{ props.rowIndex + 1 }}
|
{{ props.rowIndex + 1 }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="col.name == 'fullname'">
|
<div v-else-if="col.name == 'fullname'">
|
||||||
<div class="row col-12 items-center">
|
<div class="row col-12 items-center">
|
||||||
<img
|
<img v-if="props.row.avatar == ''" src="@/assets/avatar_user.jpg" class="q-mr-sm col-4"
|
||||||
v-if="props.row.avatar == ''"
|
style="width: 28px; height: 28px; border-radius: 50%" />
|
||||||
src="@/assets/avatar_user.jpg"
|
<img v-else :src="props.row.avatar" class="q-mr-sm col-4"
|
||||||
class="q-mr-sm col-4"
|
style="width: 28px; height: 28px; border-radius: 50%" />
|
||||||
style="width: 28px; height: 28px; border-radius: 50%"
|
|
||||||
/>
|
|
||||||
<img
|
|
||||||
v-else
|
|
||||||
:src="props.row.avatar"
|
|
||||||
class="q-mr-sm col-4"
|
|
||||||
style="width: 28px; height: 28px; border-radius: 50%"
|
|
||||||
/>
|
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<div class="text-weight-medium">
|
<div class="text-weight-medium">
|
||||||
{{ props.row.fullname }}
|
{{ props.row.fullname }}
|
||||||
|
|
@ -151,17 +99,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-else-if="col.name == 'status'" :class="props.row.status == 'checkRegister' ||
|
||||||
v-else-if="col.name == 'status'"
|
|
||||||
:class="
|
|
||||||
props.row.status == 'checkRegister' ||
|
|
||||||
props.row.status == 'checkPayment' ||
|
props.row.status == 'checkPayment' ||
|
||||||
props.row.status == 'checkSeat' ||
|
props.row.status == 'checkSeat' ||
|
||||||
props.row.status == 'checkPoint'
|
props.row.status == 'checkPoint'
|
||||||
? 'text-blue'
|
? 'text-blue'
|
||||||
: ''
|
: ''
|
||||||
"
|
">
|
||||||
>
|
|
||||||
{{ statusCandidate(props.row.status) }}
|
{{ statusCandidate(props.row.status) }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="col.name == 'registerDate'" class="table_ellipsis">
|
<div v-else-if="col.name == 'registerDate'" class="table_ellipsis">
|
||||||
|
|
@ -172,16 +116,8 @@
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td auto-width>
|
<q-td auto-width>
|
||||||
<q-btn
|
<q-btn color="primary" flat dense round size="14px" icon="mdi-file-chart-outline"
|
||||||
color="primary"
|
v-if="props.row.status == 'done'" @click="clickPointRow(props.row)">
|
||||||
flat
|
|
||||||
dense
|
|
||||||
round
|
|
||||||
size="14px"
|
|
||||||
icon="mdi-file-chart-outline"
|
|
||||||
v-if="props.row.status == 'done'"
|
|
||||||
@click="clickPointRow(props.row)"
|
|
||||||
>
|
|
||||||
<q-tooltip>ผลสอบ</q-tooltip>
|
<q-tooltip>ผลสอบ</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
@ -194,14 +130,7 @@
|
||||||
<q-card-section class="row items-center q-py-sm">
|
<q-card-section class="row items-center q-py-sm">
|
||||||
<div class="text-bold">ใบทานสอบข้อมูล</div>
|
<div class="text-bold">ใบทานสอบข้อมูล</div>
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-btn
|
<q-btn icon="close" unelevated round dense v-close-popup style="color: #ff8080; background-color: #ffdede" />
|
||||||
icon="close"
|
|
||||||
unelevated
|
|
||||||
round
|
|
||||||
dense
|
|
||||||
v-close-popup
|
|
||||||
style="color: #ff8080; background-color: #ffdede"
|
|
||||||
/>
|
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-card-section class="row items-center">
|
<q-card-section class="row items-center">
|
||||||
|
|
@ -253,9 +182,6 @@ const visible = ref(true); //เปิดปิด card สรุปข้อม
|
||||||
const dataNum = ref<DataNumObject[]>([]); //จำนวนสรุปจำนวนข้อมูลหลัก
|
const dataNum = ref<DataNumObject[]>([]); //จำนวนสรุปจำนวนข้อมูลหลัก
|
||||||
const rows = ref<any>([]);
|
const rows = ref<any>([]);
|
||||||
const checkProfile = ref<any>([]);
|
const checkProfile = ref<any>([]);
|
||||||
const initialPagination = ref<Pagination>({
|
|
||||||
rowsPerPage: 0,
|
|
||||||
});
|
|
||||||
const visibleColumns = ref<String[]>([
|
const visibleColumns = ref<String[]>([
|
||||||
// "check",
|
// "check",
|
||||||
"no",
|
"no",
|
||||||
|
|
@ -467,12 +393,26 @@ const fetchDataCom = async () => {
|
||||||
await fetchData();
|
await fetchData();
|
||||||
};
|
};
|
||||||
|
|
||||||
const fetchData = async () => {
|
// paging
|
||||||
showLoader();
|
const page = ref<number>(1)
|
||||||
|
const page_size = ref<number>(5)
|
||||||
|
const total = ref<number>(0)
|
||||||
|
const maxPage = ref<number>(1)
|
||||||
|
|
||||||
|
async function changePage(pageVal: number, pageSizeVal: number, loading: boolean = false) {
|
||||||
|
page.value = await pageVal
|
||||||
|
page_size.value = await pageSizeVal
|
||||||
|
fetchData(loading)
|
||||||
|
}
|
||||||
|
|
||||||
|
const fetchData = async (loading: boolean = true) => {
|
||||||
|
loading === true ?? showLoader()
|
||||||
await http
|
await http
|
||||||
.get(config.API.candidateOfPeriodExam(status.value, examId.value))
|
.get(config.API.candidateOfPeriodExam(status.value, examId.value) + `?page=${page.value}&pageSize=${page_size.value}&keyword=${filter.value}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
|
total.value = data.total
|
||||||
|
maxPage.value = Math.ceil(data.total / page_size.value)
|
||||||
rows.value = [];
|
rows.value = [];
|
||||||
data.data.map((r: any) => {
|
data.data.map((r: any) => {
|
||||||
rows.value.push({
|
rows.value.push({
|
||||||
|
|
@ -499,7 +439,7 @@ const fetchData = async () => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hideLoader();
|
loading === true ?? hideLoader();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -296,7 +296,8 @@
|
||||||
<q-menu>
|
<q-menu>
|
||||||
<q-list style="min-width: 100px">
|
<q-list style="min-width: 100px">
|
||||||
<q-item clickable v-close-popup @click="clickKp7()">
|
<q-item clickable v-close-popup @click="clickKp7()">
|
||||||
<q-item-section class="text-blue">ก.พ.7/ก.ก.1</q-item-section>
|
<q-item-section v-if="profileType == 'officer'" class="text-blue">ก.พ.7/ก.ก.1</q-item-section>
|
||||||
|
<q-item-section v-else class="text-blue">ทะเบียนประวัติ</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup @click="clickKp7Short()">
|
<q-item clickable v-close-popup @click="clickKp7Short()">
|
||||||
<q-item-section class="text-primary"
|
<q-item-section class="text-primary"
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ onMounted(async () => {
|
||||||
<div class="toptitle text-dark col-12 row items-center">
|
<div class="toptitle text-dark col-12 row items-center">
|
||||||
<q-btn icon="mdi-arrow-left" unelevated round dense flat color="primary" class="q-mr-sm"
|
<q-btn icon="mdi-arrow-left" unelevated round dense flat color="primary" class="q-mr-sm"
|
||||||
@click="router.push(`/appoint-employee`)" />
|
@click="router.push(`/appoint-employee`)" />
|
||||||
รายละเอียดการแต่งตั้งลูกจ้างประจำ {{ title.fullname }}
|
รายละเอียดการปรับระดับชั้นงานลูกจ้าง {{ title.fullname }}
|
||||||
</div>
|
</div>
|
||||||
<q-card bordered class="row col-12 text-dark">
|
<q-card bordered class="row col-12 text-dark">
|
||||||
<div class="bg-grey-1 q-pa-sm col-12 row items-center text-primary">
|
<div class="bg-grey-1 q-pa-sm col-12 row items-center text-primary">
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ const columns2 = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "organizationName",
|
name: "organizationName",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "หน่วยงานที่รับการแต่งตั้ง-เลื่อน",
|
label: "หน่วยงานที่รับการปรับระดับชั้นงาน",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "organizationName",
|
field: "organizationName",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "organizationName",
|
name: "organizationName",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "หน่วยงานที่รับการแต่งตั้ง",
|
label: "หน่วยงานที่รับการปรับระดับชั้นงาน",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "organizationName",
|
field: "organizationName",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
@ -476,7 +476,7 @@ const savePosition = async () => {
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="toptitle text-dark col-12 row items-center">
|
<div class="toptitle text-dark col-12 row items-center">
|
||||||
รายการแต่งตั้งลูกจ้างประจำ
|
รายการปรับระดับชั้นงานลูกจ้าง
|
||||||
</div>
|
</div>
|
||||||
<q-card flat bordered class="col-12 q-mt-sm">
|
<q-card flat bordered class="col-12 q-mt-sm">
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
@ -628,7 +628,7 @@ const savePosition = async () => {
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="
|
v-if="
|
||||||
props.row.status !== 'ส่งรายชื่อไปออกคำสั่ง' &&
|
props.row.status !== 'ส่งรายชื่อไปออกคำสั่ง' &&
|
||||||
props.row.status !== 'ออกคำสั่งแล้ว'
|
props.row.status !== 'ออกคำสั่งเสร็จแล้ว'
|
||||||
"
|
"
|
||||||
icon="mdi-dots-vertical"
|
icon="mdi-dots-vertical"
|
||||||
size="12px"
|
size="12px"
|
||||||
|
|
|
||||||
|
|
@ -382,7 +382,7 @@ function findByPerson(element: any): any {
|
||||||
<q-dialog v-model="props.modal" persistent>
|
<q-dialog v-model="props.modal" persistent>
|
||||||
<q-card style="width: 900px; max-width: 80vw">
|
<q-card style="width: 900px; max-width: 80vw">
|
||||||
<q-form ref="myFormPosition">
|
<q-form ref="myFormPosition">
|
||||||
<DialogHeader title="เลือกหน่วยงานที่แต่งตั้ง - เลื่อน" :close="closeModal" />
|
<DialogHeader title="เลือกหน่วยงาน" :close="closeModal" />
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-card-section class="q-pa-sm bg-grey-1">
|
<q-card-section class="q-pa-sm bg-grey-1">
|
||||||
<div class="row col-12 q-col-gutter-sm">
|
<div class="row col-12 q-col-gutter-sm">
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,288 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref, reactive } from "vue";
|
||||||
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
import { useQuasar } from "quasar";
|
||||||
|
|
||||||
|
import type { QTableProps } from "quasar";
|
||||||
|
import type {
|
||||||
|
FormEmployment,
|
||||||
|
FormEmploymentRef,
|
||||||
|
} from "@/modules/08_registryEmployee/interface/response/Main";
|
||||||
|
|
||||||
|
const $q = useQuasar();
|
||||||
|
const maxin = useCounterMixin();
|
||||||
|
const { date2Thai, dialogConfirm } = maxin;
|
||||||
|
|
||||||
|
const rows = ref<any[]>([]);
|
||||||
|
const columns = ref<QTableProps["columns"]>([
|
||||||
|
{
|
||||||
|
name: "dateEmployment",
|
||||||
|
align: "left",
|
||||||
|
label: "วันที่จ้าง",
|
||||||
|
sortable: false,
|
||||||
|
field: "dateEmployment",
|
||||||
|
headerStyle: "font-size: 14px",
|
||||||
|
style: "font-size: 14px",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "orderEmployment",
|
||||||
|
align: "left",
|
||||||
|
label: "คำสั่งจ้าง",
|
||||||
|
sortable: false,
|
||||||
|
field: "orderEmployment",
|
||||||
|
headerStyle: "font-size: 14px",
|
||||||
|
style: "font-size: 14px",
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
const visibleColumns = ref<string[]>(["dateEmployment", "orderEmployment"]);
|
||||||
|
const filter = ref<string>();
|
||||||
|
// เพิ่มข้อมูลการจ้าง
|
||||||
|
const modal = ref<boolean>(false);
|
||||||
|
const formData = reactive<FormEmployment>({
|
||||||
|
dateEmployment: null,
|
||||||
|
orderEmployment: "",
|
||||||
|
});
|
||||||
|
const dateEmploymentRef = ref<object | null>();
|
||||||
|
const orderEmploymentRef = ref<object | null>();
|
||||||
|
const formDataRef: FormEmploymentRef = {
|
||||||
|
dateEmployment: dateEmploymentRef,
|
||||||
|
orderEmployment: orderEmploymentRef,
|
||||||
|
};
|
||||||
|
|
||||||
|
function onClickAdd() {
|
||||||
|
modal.value = true;
|
||||||
|
formData.dateEmployment = null;
|
||||||
|
formData.orderEmployment = "";
|
||||||
|
}
|
||||||
|
function colsePopup() {
|
||||||
|
modal.value = false;
|
||||||
|
}
|
||||||
|
function validateForm() {
|
||||||
|
const hasError = [];
|
||||||
|
for (const key in formDataRef) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(formDataRef, key)) {
|
||||||
|
const property = formDataRef[key];
|
||||||
|
if (property.value && typeof property.value.validate === "function") {
|
||||||
|
const isValid = property.value.validate();
|
||||||
|
hasError.push(isValid);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (hasError.every((result) => result === true)) {
|
||||||
|
onSubmit();
|
||||||
|
} else {
|
||||||
|
console.log("ไม่ผ่าน ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function onSubmit() {
|
||||||
|
dialogConfirm(
|
||||||
|
$q,
|
||||||
|
async () => {
|
||||||
|
console.log(formData);
|
||||||
|
colsePopup();
|
||||||
|
},
|
||||||
|
"ยืนยันการบันทึกข้อมูล",
|
||||||
|
"ต้องการยืนยันการบันทึกข้อมูลนี้หรือไม่ ?"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const pagination = ref({
|
||||||
|
descending: true,
|
||||||
|
page: 1,
|
||||||
|
rowsPerPage: 10,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<q-card flat bordered class="col-12 q-px-lg q-py-md">
|
||||||
|
<div class="flex items-center">
|
||||||
|
<div class="flex items-center">
|
||||||
|
<q-icon
|
||||||
|
name="mdi-clipboard"
|
||||||
|
size="1.5em"
|
||||||
|
color="grey-5"
|
||||||
|
class="q-mr-md"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div class="text-bold text-subtitle2 col-12 row items-center">
|
||||||
|
ข้อมูลการจ้าง
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="q-gutter-sm q-mx-sm">
|
||||||
|
<q-btn
|
||||||
|
size="12px"
|
||||||
|
flat
|
||||||
|
round
|
||||||
|
color="primary"
|
||||||
|
@click="onClickAdd"
|
||||||
|
icon="mdi-plus"
|
||||||
|
>
|
||||||
|
<q-tooltip>เพิ่มข้อมูลการจ้าง</q-tooltip>
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<q-space />
|
||||||
|
<div class="q-gutter-sm" style="display: flex">
|
||||||
|
<q-input
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
v-model="filter"
|
||||||
|
label="ค้นหา"
|
||||||
|
style="min-width: 150px"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<q-select
|
||||||
|
v-model="visibleColumns"
|
||||||
|
multiple
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
options-dense
|
||||||
|
:display-value="$q.lang.table.columns"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
:options="columns"
|
||||||
|
option-value="name"
|
||||||
|
options-cover
|
||||||
|
style="min-width: 150px"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="q-mt-sm">
|
||||||
|
<d-table
|
||||||
|
flat
|
||||||
|
bordered
|
||||||
|
id="table"
|
||||||
|
ref="table"
|
||||||
|
:columns="columns"
|
||||||
|
:rows="rows"
|
||||||
|
:filter="filter"
|
||||||
|
row-key="dateEmployment"
|
||||||
|
:paging="true"
|
||||||
|
dense
|
||||||
|
:visible-columns="visibleColumns"
|
||||||
|
v-model:pagination="pagination"
|
||||||
|
>
|
||||||
|
<template v-slot:header="props">
|
||||||
|
<q-tr :props="props">
|
||||||
|
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
|
<span class="text-weight-medium">{{ col.label }}</span>
|
||||||
|
</q-th>
|
||||||
|
</q-tr>
|
||||||
|
</template>
|
||||||
|
<template v-slot:body="props">
|
||||||
|
<q-tr :props="props" class="cursor-pointer" style="height: 40px">
|
||||||
|
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
|
<div>
|
||||||
|
{{ col.value }}
|
||||||
|
</div>
|
||||||
|
</q-td>
|
||||||
|
</q-tr>
|
||||||
|
</template>
|
||||||
|
</d-table>
|
||||||
|
</div>
|
||||||
|
</q-card>
|
||||||
|
|
||||||
|
<q-dialog v-model="modal">
|
||||||
|
<q-card style="width: 700px; max-width: 80vw">
|
||||||
|
<q-toolbar>
|
||||||
|
<q-toolbar-title class="text-subtitle1 text-weight-bold">
|
||||||
|
<span style="margin-right: 0"> เพิ่มข้อมูลการจ้าง </span>
|
||||||
|
</q-toolbar-title>
|
||||||
|
<q-btn
|
||||||
|
for="closeDialog"
|
||||||
|
icon="close"
|
||||||
|
unelevated
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
style="color: #eb0505; background-color: #ffdede"
|
||||||
|
@click="colsePopup"
|
||||||
|
/>
|
||||||
|
</q-toolbar>
|
||||||
|
<form @submit.prevent="validateForm">
|
||||||
|
<q-card-section class="q-pt-none">
|
||||||
|
<div class="col-12 row q-pa-md">
|
||||||
|
<div
|
||||||
|
class="col-xs-12 col-sm-12 row q-col-gutter-x-md q-col-gutter-y-xs"
|
||||||
|
>
|
||||||
|
<div class="col-xs-12 col-sm-6">
|
||||||
|
<datepicker
|
||||||
|
menu-class-name="modalfix"
|
||||||
|
v-model="formData.dateEmployment"
|
||||||
|
:locale="'th'"
|
||||||
|
autoApply
|
||||||
|
borderless
|
||||||
|
:enableTimePicker="false"
|
||||||
|
week-start="0"
|
||||||
|
>
|
||||||
|
<template #year="{ year }">
|
||||||
|
{{ year + 543 }}
|
||||||
|
</template>
|
||||||
|
<template #year-overlay-value="{ value }">
|
||||||
|
{{ parseInt(value + 543) }}
|
||||||
|
</template>
|
||||||
|
<template #trigger>
|
||||||
|
<q-input
|
||||||
|
for="inputdateEmployment"
|
||||||
|
ref="dateEmploymentRef"
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
class="full-width datepicker"
|
||||||
|
:model-value="
|
||||||
|
formData.dateEmployment != null
|
||||||
|
? date2Thai(formData.dateEmployment)
|
||||||
|
: null
|
||||||
|
"
|
||||||
|
label="วันที่จ้าง"
|
||||||
|
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่จ้าง'}`]"
|
||||||
|
lazy-rules
|
||||||
|
>
|
||||||
|
<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="col-xs-12 col-sm-6">
|
||||||
|
<q-input
|
||||||
|
for="inputOrderEmployment"
|
||||||
|
ref="orderEmploymentRef"
|
||||||
|
dense
|
||||||
|
outlined
|
||||||
|
v-model="formData.orderEmployment"
|
||||||
|
label="คำสั่งจ้าง"
|
||||||
|
:rules="[(val) => !!val || `${'กรุณากรอกคำสั่งจ้าง'}`]"
|
||||||
|
lazy-rules
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row col-12">
|
||||||
|
<q-space />
|
||||||
|
</div>
|
||||||
|
</q-card-section>
|
||||||
|
<q-separator />
|
||||||
|
<q-card-actions align="right" class="bg-white text-teal">
|
||||||
|
<q-btn
|
||||||
|
for="ButtonOnSubmit"
|
||||||
|
id="onSubmit"
|
||||||
|
flat
|
||||||
|
round
|
||||||
|
color="secondary"
|
||||||
|
icon="mdi-content-save-outline"
|
||||||
|
type="submit"
|
||||||
|
><q-tooltip>บับทึกข้อมูล</q-tooltip></q-btn
|
||||||
|
>
|
||||||
|
</q-card-actions>
|
||||||
|
</form>
|
||||||
|
</q-card>
|
||||||
|
</q-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
|
|
@ -46,5 +46,14 @@ interface employeePosition {
|
||||||
positionEmployeePositionSides: ObjectNameId[];
|
positionEmployeePositionSides: ObjectNameId[];
|
||||||
use: boolean;
|
use: boolean;
|
||||||
}
|
}
|
||||||
|
interface FormEmployment {
|
||||||
|
dateEmployment: Date | null
|
||||||
|
orderEmployment: string
|
||||||
|
}
|
||||||
|
interface FormEmploymentRef {
|
||||||
|
dateEmployment: Object | null
|
||||||
|
orderEmployment: Object | null
|
||||||
|
[key: string]: any;
|
||||||
|
};
|
||||||
|
|
||||||
export type { employeePosition };
|
export type { employeePosition, FormEmployment, FormEmploymentRef };
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ import Information from "@/modules/08_registryEmployee/components/EditEmployee/I
|
||||||
import TempInformation from "@/modules/08_registryEmployee/components/EditEmployee/Information/Tempinformation.vue";
|
import TempInformation from "@/modules/08_registryEmployee/components/EditEmployee/Information/Tempinformation.vue";
|
||||||
import Address from "@/modules/08_registryEmployee/components/EditEmployee/Information/Address.vue";
|
import Address from "@/modules/08_registryEmployee/components/EditEmployee/Information/Address.vue";
|
||||||
import Family from "@/modules/08_registryEmployee/components/EditEmployee/Information/Family.vue";
|
import Family from "@/modules/08_registryEmployee/components/EditEmployee/Information/Family.vue";
|
||||||
|
import Employment from "@/modules/08_registryEmployee/components/EditEmployee/Employment.vue";
|
||||||
|
|
||||||
import type { DataOption } from "@/modules/04_registry/interface/index/Main";
|
import type { DataOption } from "@/modules/04_registry/interface/index/Main";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
|
|
@ -409,6 +410,10 @@ const Retire = async () => {
|
||||||
<div id="tempInformation" name="19" class="row col-12">
|
<div id="tempInformation" name="19" class="row col-12">
|
||||||
<TempInformation v-model:statusEdit="statusEdit" :statusAdd="false" />
|
<TempInformation v-model:statusEdit="statusEdit" :statusAdd="false" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="Employment" name="20" class="row col-12 q-mt-md">
|
||||||
|
<Employment v-model:statusEdit="statusEdit" :statusAdd="false" />
|
||||||
|
</div>
|
||||||
<div id="address" name="17" class="row col-12">
|
<div id="address" name="17" class="row col-12">
|
||||||
<Address v-model:statusEdit="statusEdit" :statusAdd="false" />
|
<Address v-model:statusEdit="statusEdit" :statusAdd="false" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ const { searchDataFn, filterOption } = leaveStore;
|
||||||
<q-toolbar style="padding: 0" class="q-gutter-sm q-mb-sm">
|
<q-toolbar style="padding: 0" class="q-gutter-sm q-mb-sm">
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<q-select
|
<q-select
|
||||||
|
for="selectYear"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -23,6 +24,7 @@ const { searchDataFn, filterOption } = leaveStore;
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<q-select
|
<q-select
|
||||||
|
for="selectType"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -50,6 +52,7 @@ const { searchDataFn, filterOption } = leaveStore;
|
||||||
</div>
|
</div>
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<q-select
|
<q-select
|
||||||
|
for="selectStatus"
|
||||||
v-if="leaveStore.tab == '2'"
|
v-if="leaveStore.tab == '2'"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
|
|
@ -72,10 +75,17 @@ const { searchDataFn, filterOption } = leaveStore;
|
||||||
</div>
|
</div>
|
||||||
<q-space />
|
<q-space />
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<q-input dense outlined v-model="leaveStore.filterTable" label="ค้นหา" />
|
<q-input
|
||||||
|
for="filterTable"
|
||||||
|
dense
|
||||||
|
outlined
|
||||||
|
v-model="leaveStore.filterTable"
|
||||||
|
label="ค้นหา"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<q-select
|
<q-select
|
||||||
|
for="visibleColumns"
|
||||||
v-model="leaveStore.visibleColumns"
|
v-model="leaveStore.visibleColumns"
|
||||||
multiple
|
multiple
|
||||||
outlined
|
outlined
|
||||||
|
|
|
||||||
|
|
@ -214,6 +214,7 @@ function onSubmit() {
|
||||||
<template>
|
<template>
|
||||||
<div class="toptitle text-dark col-12 row items-center">
|
<div class="toptitle text-dark col-12 row items-center">
|
||||||
<q-btn
|
<q-btn
|
||||||
|
for="backMainPageButton"
|
||||||
icon="mdi-arrow-left"
|
icon="mdi-arrow-left"
|
||||||
unelevated
|
unelevated
|
||||||
round
|
round
|
||||||
|
|
@ -234,7 +235,7 @@ function onSubmit() {
|
||||||
>
|
>
|
||||||
<div class="col-xs-12 col-sm-2" id="complainantType">
|
<div class="col-xs-12 col-sm-2" id="complainantType">
|
||||||
<q-select
|
<q-select
|
||||||
for="complainantType"
|
for="SelectcomplainantType"
|
||||||
ref="complainantTypeRef"
|
ref="complainantTypeRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -271,7 +272,7 @@ function onSubmit() {
|
||||||
v-if="formData.complainantType === '0'"
|
v-if="formData.complainantType === '0'"
|
||||||
>
|
>
|
||||||
<q-select
|
<q-select
|
||||||
for="complainant"
|
for="selectComplainant"
|
||||||
ref="complainantRef"
|
ref="complainantRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -303,7 +304,7 @@ function onSubmit() {
|
||||||
id="office"
|
id="office"
|
||||||
>
|
>
|
||||||
<q-input
|
<q-input
|
||||||
for="office"
|
for="inputOffice"
|
||||||
name="office"
|
name="office"
|
||||||
ref="officeRef"
|
ref="officeRef"
|
||||||
dense
|
dense
|
||||||
|
|
@ -317,7 +318,7 @@ function onSubmit() {
|
||||||
<div class="col-xs-12 col-sm-2" id="agency">
|
<div class="col-xs-12 col-sm-2" id="agency">
|
||||||
<q-select
|
<q-select
|
||||||
ref="agencyRef"
|
ref="agencyRef"
|
||||||
for="agency"
|
for="selectAgency"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="formData.agency"
|
v-model="formData.agency"
|
||||||
|
|
@ -345,7 +346,7 @@ function onSubmit() {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-12" id="topicComplaint">
|
<div class="col-xs-12 col-sm-12" id="topicComplaint">
|
||||||
<q-input
|
<q-input
|
||||||
for="topicComplaint"
|
for="inputTopicComplaint"
|
||||||
ref="topicComplaintRef"
|
ref="topicComplaintRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -359,7 +360,7 @@ function onSubmit() {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-12" id="detail">
|
<div class="col-xs-12 col-sm-12" id="detail">
|
||||||
<q-input
|
<q-input
|
||||||
for="detail"
|
for="inputDetail"
|
||||||
ref="detailRef"
|
ref="detailRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -389,7 +390,7 @@ function onSubmit() {
|
||||||
</template>
|
</template>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<q-input
|
<q-input
|
||||||
for="datereceive"
|
for="inputDatereceive"
|
||||||
ref="datereceiveRef"
|
ref="datereceiveRef"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
|
|
@ -435,7 +436,7 @@ function onSubmit() {
|
||||||
</template>
|
</template>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<q-input
|
<q-input
|
||||||
for="dateconsideration"
|
for="inputDateconsideration"
|
||||||
ref="dateconsiderationRef"
|
ref="dateconsiderationRef"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
|
|
@ -465,7 +466,7 @@ function onSubmit() {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-2" id="offenseDescription">
|
<div class="col-xs-12 col-sm-2" id="offenseDescription">
|
||||||
<q-select
|
<q-select
|
||||||
for="offenseDescription"
|
for="selectOffenseDescription"
|
||||||
ref="offenseDescriptionRef"
|
ref="offenseDescriptionRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -482,7 +483,7 @@ function onSubmit() {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-2" id="considerationLevel">
|
<div class="col-xs-12 col-sm-2" id="considerationLevel">
|
||||||
<q-select
|
<q-select
|
||||||
for="considerationLevel"
|
for="selectConsiderationLevel"
|
||||||
ref="considerationLevelRef"
|
ref="considerationLevelRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -517,7 +518,7 @@ function onSubmit() {
|
||||||
</template>
|
</template>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<q-input
|
<q-input
|
||||||
for="datewarn"
|
for="inputDatewarn"
|
||||||
ref="datewarnRef"
|
ref="datewarnRef"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
|
|
@ -548,7 +549,7 @@ function onSubmit() {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-2" id="receivecomplaints">
|
<div class="col-xs-12 col-sm-2" id="receivecomplaints">
|
||||||
<q-select
|
<q-select
|
||||||
for="receivecomplaints"
|
for="selectReceivecomplaints"
|
||||||
ref="receivecomplaintsRef"
|
ref="receivecomplaintsRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -566,7 +567,7 @@ function onSubmit() {
|
||||||
<div class="col-xs-12 col-sm-6"></div>
|
<div class="col-xs-12 col-sm-6"></div>
|
||||||
<div class="col-xs-12 col-sm-4" id="petitioner">
|
<div class="col-xs-12 col-sm-4" id="petitioner">
|
||||||
<q-input
|
<q-input
|
||||||
id="petitioner"
|
for="inputPetitioner"
|
||||||
ref="petitionerRef"
|
ref="petitionerRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -578,7 +579,7 @@ function onSubmit() {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-4" id="files">
|
<div class="col-xs-12 col-sm-4" id="files">
|
||||||
<q-file
|
<q-file
|
||||||
for="files"
|
for="inputFiles"
|
||||||
ref="filesRef"
|
ref="filesRef"
|
||||||
class="col-xs-12 col-sm-10"
|
class="col-xs-12 col-sm-10"
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -603,6 +604,7 @@ function onSubmit() {
|
||||||
<div class="row col-12 q-pa-sm">
|
<div class="row col-12 q-pa-sm">
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-btn
|
<q-btn
|
||||||
|
for="ButtonOnSubmit"
|
||||||
id="onSubmit"
|
id="onSubmit"
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
|
|
||||||
|
|
@ -63,53 +63,54 @@ function redirectToPageadd() {
|
||||||
<template>
|
<template>
|
||||||
<div class="toptitle text-dark col-12 row items-center">เรื่องร้องเรียน</div>
|
<div class="toptitle text-dark col-12 row items-center">เรื่องร้องเรียน</div>
|
||||||
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
||||||
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
||||||
<div>
|
<div>
|
||||||
<q-btn
|
<q-btn
|
||||||
id="addComplaints"
|
id="addComplaints"
|
||||||
size="12px"
|
for="addComplaints"
|
||||||
flat
|
size="12px"
|
||||||
round
|
flat
|
||||||
color="primary"
|
round
|
||||||
icon="mdi-plus"
|
color="primary"
|
||||||
@click="redirectToPageadd()"
|
icon="mdi-plus"
|
||||||
><q-tooltip>เพิ่มเรื่องร้องเรียน </q-tooltip></q-btn
|
@click="redirectToPageadd()"
|
||||||
>
|
><q-tooltip>เพิ่มเรื่องร้องเรียน </q-tooltip></q-btn
|
||||||
</div>
|
>
|
||||||
<q-space />
|
|
||||||
<q-input
|
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
|
||||||
id="filterTable"
|
|
||||||
for="filterTable"
|
|
||||||
dense
|
|
||||||
outlined
|
|
||||||
v-model="filterTable"
|
|
||||||
label="ค้นหา"
|
|
||||||
>
|
|
||||||
<template v-slot:append>
|
|
||||||
<q-icon name="search" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
<q-select
|
|
||||||
id="visibleColumns"
|
|
||||||
for="visibleColumns"
|
|
||||||
v-model="complainstStore.visibleColumns"
|
|
||||||
multiple
|
|
||||||
outlined
|
|
||||||
dense
|
|
||||||
options-dense
|
|
||||||
:display-value="$q.lang.table.columns"
|
|
||||||
emit-value
|
|
||||||
map-options
|
|
||||||
:options="complainstStore.columns"
|
|
||||||
option-value="name"
|
|
||||||
options-cover
|
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="col-12">
|
|
||||||
<TableComplaint :filterTable="filterTable" />
|
|
||||||
</div>
|
</div>
|
||||||
|
<q-space />
|
||||||
|
<q-input
|
||||||
|
class="col-xs-12 col-sm-3 col-md-2"
|
||||||
|
id="filterTable"
|
||||||
|
for="filterTable"
|
||||||
|
dense
|
||||||
|
outlined
|
||||||
|
v-model="filterTable"
|
||||||
|
label="ค้นหา"
|
||||||
|
>
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-icon name="search" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
<q-select
|
||||||
|
id="visibleColumns"
|
||||||
|
for="visibleColumns"
|
||||||
|
v-model="complainstStore.visibleColumns"
|
||||||
|
multiple
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
options-dense
|
||||||
|
:display-value="$q.lang.table.columns"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
:options="complainstStore.columns"
|
||||||
|
option-value="name"
|
||||||
|
options-cover
|
||||||
|
class="col-xs-12 col-sm-3 col-md-2"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<TableComplaint :filterTable="filterTable" />
|
||||||
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,15 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted } from "vue";
|
import { ref, onMounted, reactive } from "vue";
|
||||||
import { useQuasar, QForm } from "quasar";
|
import { useQuasar, QForm } from "quasar";
|
||||||
import { useRouter, useRoute } from "vue-router";
|
import { useRouter, useRoute } from "vue-router";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import Dialogbody from "@/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue";
|
import Dialogbody from "@/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue";
|
||||||
import Table from "@/modules/11_discipline/components/3_InvestigateDisciplinary/DirectorTable.vue";
|
import Table from "@/modules/11_discipline/components/3_InvestigateDisciplinary/DirectorTable.vue";
|
||||||
import { useInvestigateDisStore } from "@/modules/11_discipline/store/InvestigateDisStore";
|
import { useInvestigateDisStore } from "@/modules/11_discipline/store/InvestigateDisStore";
|
||||||
|
import type {
|
||||||
|
FormData,
|
||||||
|
disciplinaryRef,
|
||||||
|
} from "@/modules/11_discipline/interface/request/disciplinary";
|
||||||
const investigateDis = useInvestigateDisStore();
|
const investigateDis = useInvestigateDisStore();
|
||||||
const { fecthDirector } = investigateDis;
|
const { fecthDirector } = investigateDis;
|
||||||
|
|
||||||
|
|
@ -36,42 +39,107 @@ const popup = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const { date2Thai, hideLoader } = mixin;
|
const { date2Thai, hideLoader, dialogConfirm } = mixin;
|
||||||
|
|
||||||
const initialPagination = ref<any>({
|
|
||||||
rowsPerPage: 0,
|
|
||||||
});
|
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const rows = ref([]);
|
const rows = ref([]);
|
||||||
const modal = ref<boolean>(false);
|
const modal = ref<boolean>(false);
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const id = ref<string>(route.params.id as string);
|
const id = ref<string>(route.params.id as string);
|
||||||
|
const type = ref<string>("");
|
||||||
const myForm = ref<QForm | null>(null); //form data input
|
const myForm = ref<QForm | null>(null); //form data input
|
||||||
const edit = ref<boolean>(false);
|
const edit = ref<boolean>(false);
|
||||||
const dateInvestigate = ref<Date>(new Date());
|
const dateInvestigate = ref<Date>(new Date());
|
||||||
const dateAllegation = ref<Date>(new Date());
|
const dateAllegation = ref<Date>(new Date());
|
||||||
const dateEvident = ref<Date>(new Date());
|
const dateEvident = ref<Date>(new Date());
|
||||||
const filterKeyword2 = ref<string>("");
|
const filterKeyword2 = ref<string>("");
|
||||||
const typefault = ref<string>("");
|
const complaintRef = ref<Object | null>(null);
|
||||||
const faultLevel = ref<string>("");
|
const dateInvestigateRef = ref<Object | null>(null);
|
||||||
const type = ref<string>("");
|
const dateAllegationRef = ref<Object | null>(null);
|
||||||
const Complaint = ref<string>("");
|
const dateEvidentRef = ref<Object | null>(null);
|
||||||
const trueDetail = ref<string>("");
|
const casefaultRef = ref<Object | null>(null);
|
||||||
const evidence = ref<string>("");
|
const refLawRef = ref<Object | null>(null);
|
||||||
const recordAccuser = ref<string>("");
|
const typefaultRef = ref<Object | null>(null);
|
||||||
const witnesses = ref<string>("");
|
const faultLevelRef = ref<Object | null>(null);
|
||||||
const InvestResults = ref<string>("");
|
const detailComplaintRef = ref<Object | null>(null);
|
||||||
const files = ref<File>();
|
const whereInvestigateRef = ref<Object | null>(null);
|
||||||
const filesEvidence = ref<File>();
|
const witnessesRef = ref<Object | null>(null);
|
||||||
const filesRecordAccuser = ref<File>();
|
const InvestResultsRef = ref<Object | null>(null);
|
||||||
const filesWitnesses = ref<File>();
|
const filesEvidenceRef = ref<Object | null>(null);
|
||||||
const filesEtc = ref<File>();
|
const filesRecordAccuserRef = ref<Object | null>(null);
|
||||||
|
const filesWitnessesRef = ref<Object | null>(null);
|
||||||
|
const filesEtcRef = ref<Object | null>(null);
|
||||||
|
const trueDetailRef = ref<Object | null>(null);
|
||||||
|
const evidenceRef = ref<Object | null>(null);
|
||||||
|
const recordAccuserRef = ref<Object | null>(null);
|
||||||
|
|
||||||
const fileDocDataUpload = ref<File[]>([]);
|
const fileDocDataUpload = ref<File[]>([]);
|
||||||
const refRaw = ref<string>("");
|
const initialPagination = ref<any>({
|
||||||
const casefault = ref<string>("");
|
rowsPerPage: 0,
|
||||||
const whereInvestigate = ref<string>("");
|
});
|
||||||
|
|
||||||
|
const formData = reactive<FormData>({
|
||||||
|
Complaint: "",
|
||||||
|
dateInvestigate: null,
|
||||||
|
dateAllegation: null,
|
||||||
|
dateEvident: null,
|
||||||
|
casefault: "",
|
||||||
|
typefault: "",
|
||||||
|
faultLevel: "",
|
||||||
|
refLaw: "",
|
||||||
|
detailComplaint: "",
|
||||||
|
whereInvestigate: "",
|
||||||
|
trueDetail: "",
|
||||||
|
evidence: "",
|
||||||
|
recordAccuser: "",
|
||||||
|
witnesses: "",
|
||||||
|
InvestResults: "",
|
||||||
|
filesEvidence: null,
|
||||||
|
filesRecordAccuser: null,
|
||||||
|
filesWitnesses: null,
|
||||||
|
filesEtc: null,
|
||||||
|
});
|
||||||
|
|
||||||
|
const objectdisciplinary: disciplinaryRef = {
|
||||||
|
Complaint: complaintRef,
|
||||||
|
dateInvestigate: dateInvestigateRef,
|
||||||
|
dateAllegation: dateAllegationRef,
|
||||||
|
dateEvident: dateEvidentRef,
|
||||||
|
casefault: casefaultRef,
|
||||||
|
typefault: typefaultRef,
|
||||||
|
faultLevel: faultLevelRef,
|
||||||
|
refLaw: refLawRef,
|
||||||
|
detailComplaint: detailComplaintRef,
|
||||||
|
whereInvestigate: whereInvestigateRef,
|
||||||
|
trueDetail: trueDetailRef,
|
||||||
|
evidence: evidenceRef,
|
||||||
|
recordAccuser: recordAccuserRef,
|
||||||
|
witnesses: witnessesRef,
|
||||||
|
InvestResults: InvestResultsRef,
|
||||||
|
filesEvidence: filesEvidenceRef,
|
||||||
|
filesRecordAccuser: filesRecordAccuserRef,
|
||||||
|
filesWitnesses: filesWitnessesRef,
|
||||||
|
filesEtc: filesEtcRef,
|
||||||
|
};
|
||||||
|
|
||||||
|
function validateForm() {
|
||||||
|
const hasError = [];
|
||||||
|
for (const key in objectdisciplinary) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(objectdisciplinary, key)) {
|
||||||
|
const property = objectdisciplinary[key];
|
||||||
|
if (property.value && typeof property.value.validate === "function") {
|
||||||
|
const isValid = property.value.validate();
|
||||||
|
hasError.push(isValid);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (hasError.every((result) => result === true)) {
|
||||||
|
onSubmit();
|
||||||
|
} else {
|
||||||
|
console.log("ไม่ผ่าน ");
|
||||||
|
console.log(hasError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const routeName = router.currentRoute.value.name;
|
const routeName = router.currentRoute.value.name;
|
||||||
|
|
||||||
|
|
@ -90,7 +158,16 @@ const fileUploadDoc = async (files: any) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
// คลิกบันทึก
|
// คลิกบันทึก
|
||||||
const checkSave = () => {};
|
function onSubmit() {
|
||||||
|
dialogConfirm(
|
||||||
|
$q,
|
||||||
|
async () => {
|
||||||
|
console.log(formData);
|
||||||
|
},
|
||||||
|
"ยืนยันการบันทึกข้อมูล",
|
||||||
|
"ต้องการยืนยันการบันทึกข้อมูลนี้หรือไม่ ?"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const deleteData = async (id: string) => {
|
const deleteData = async (id: string) => {
|
||||||
console.log("delete");
|
console.log("delete");
|
||||||
|
|
@ -115,7 +192,7 @@ const clickBack = () => {
|
||||||
/>
|
/>
|
||||||
{{ "เพิ่มการสอบสวนความผิดทางวินัย" }}
|
{{ "เพิ่มการสอบสวนความผิดทางวินัย" }}
|
||||||
</div>
|
</div>
|
||||||
<q-form ref="myForm">
|
<form @submit.prevent="validateForm">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<q-card bordered>
|
<q-card bordered>
|
||||||
<div class="col-12 row q-col-gutter-md q-pa-md">
|
<div class="col-12 row q-col-gutter-md q-pa-md">
|
||||||
|
|
@ -126,7 +203,9 @@ const clickBack = () => {
|
||||||
class="col-12"
|
class="col-12"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="Complaint"
|
v-model="formData.Complaint"
|
||||||
|
for="#Complaint"
|
||||||
|
ref="complaintRef"
|
||||||
label="เรื่องร้องเรียน"
|
label="เรื่องร้องเรียน"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกเรื่องร้องเรียน'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอกเรื่องร้องเรียน'}`]"
|
||||||
|
|
@ -134,6 +213,8 @@ const clickBack = () => {
|
||||||
<datepicker
|
<datepicker
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
v-model="dateInvestigate"
|
v-model="dateInvestigate"
|
||||||
|
ref="dateInvestigateRef"
|
||||||
|
for="#dateInvestigate"
|
||||||
:locale="'th'"
|
:locale="'th'"
|
||||||
autoApply
|
autoApply
|
||||||
class="col-xs-12 col-sm-4"
|
class="col-xs-12 col-sm-4"
|
||||||
|
|
@ -173,6 +254,8 @@ const clickBack = () => {
|
||||||
</datepicker>
|
</datepicker>
|
||||||
<datepicker
|
<datepicker
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
|
ref="dateAllegationRef"
|
||||||
|
for="#dateAllegation"
|
||||||
v-model="dateAllegation"
|
v-model="dateAllegation"
|
||||||
class="col-xs-12 col-sm-4"
|
class="col-xs-12 col-sm-4"
|
||||||
:locale="'th'"
|
:locale="'th'"
|
||||||
|
|
@ -216,6 +299,8 @@ const clickBack = () => {
|
||||||
</datepicker>
|
</datepicker>
|
||||||
<datepicker
|
<datepicker
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
|
ref="dateEvidentRef"
|
||||||
|
for="#dateEvident"
|
||||||
v-model="dateEvident"
|
v-model="dateEvident"
|
||||||
:locale="'th'"
|
:locale="'th'"
|
||||||
autoApply
|
autoApply
|
||||||
|
|
@ -318,7 +403,9 @@ const clickBack = () => {
|
||||||
class="col-xs-12 col-sm-6"
|
class="col-xs-12 col-sm-6"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="casefault"
|
ref="casefaultRef"
|
||||||
|
v-model="formData.casefault"
|
||||||
|
for="#casefault"
|
||||||
label="กรณีมีความผิด"
|
label="กรณีมีความผิด"
|
||||||
:rules="[(val) => !!val || `${'กรุณากรอกกรณีมีความผิด'}`]"
|
:rules="[(val) => !!val || `${'กรุณากรอกกรณีมีความผิด'}`]"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
|
|
@ -327,7 +414,9 @@ const clickBack = () => {
|
||||||
class="col-xs-12 col-sm-6"
|
class="col-xs-12 col-sm-6"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="whereInvestigate"
|
for="#whereInvestigate"
|
||||||
|
ref="whereInvestigateRef"
|
||||||
|
v-model="formData.whereInvestigate"
|
||||||
label="สอบสวนที่"
|
label="สอบสวนที่"
|
||||||
:rules="[(val) => !!val || `${'กรุณากรอกสอบสวนที่'}`]"
|
:rules="[(val) => !!val || `${'กรุณากรอกสอบสวนที่'}`]"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
|
|
@ -336,7 +425,9 @@ const clickBack = () => {
|
||||||
dense
|
dense
|
||||||
class="col-xs-12 col-sm-3"
|
class="col-xs-12 col-sm-3"
|
||||||
outlined
|
outlined
|
||||||
v-model="typefault"
|
for="#typefault"
|
||||||
|
ref="typefaultRef"
|
||||||
|
v-model="formData.typefault"
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
:options="investigateDis.optionsTypefault"
|
:options="investigateDis.optionsTypefault"
|
||||||
|
|
@ -346,7 +437,9 @@ const clickBack = () => {
|
||||||
dense
|
dense
|
||||||
class="col-xs-12 col-sm-3"
|
class="col-xs-12 col-sm-3"
|
||||||
outlined
|
outlined
|
||||||
v-model="faultLevel"
|
for="#faultLevel"
|
||||||
|
ref="faultLevelRef"
|
||||||
|
v-model="formData.faultLevel"
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
:options="investigateDis.optionsfaultLevel"
|
:options="investigateDis.optionsfaultLevel"
|
||||||
|
|
@ -355,8 +448,10 @@ const clickBack = () => {
|
||||||
<q-input
|
<q-input
|
||||||
class="col-xs-12 col-sm-6 q-pb-md"
|
class="col-xs-12 col-sm-6 q-pb-md"
|
||||||
dense
|
dense
|
||||||
|
for="#refLaw"
|
||||||
outlined
|
outlined
|
||||||
v-model="refRaw"
|
ref="refLawRef"
|
||||||
|
v-model="formData.refLaw"
|
||||||
label="อ้างอิงมาตราตามกฎหมาย"
|
label="อ้างอิงมาตราตามกฎหมาย"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val) => !!val || `${'กรุณากรอกอ้างอิงมาตราตามกฎหมาย'}`,
|
(val) => !!val || `${'กรุณากรอกอ้างอิงมาตราตามกฎหมาย'}`,
|
||||||
|
|
@ -367,7 +462,9 @@ const clickBack = () => {
|
||||||
class="col-12"
|
class="col-12"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="Complaint"
|
for="#detailComplaint"
|
||||||
|
ref="detailComplaintRef"
|
||||||
|
v-model="formData.detailComplaint"
|
||||||
label="รายละเอียดเรื่องร้องเรียน"
|
label="รายละเอียดเรื่องร้องเรียน"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกรายละเอียดเรื่องร้องเรียน'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอกรายละเอียดเรื่องร้องเรียน'}`]"
|
||||||
|
|
@ -376,7 +473,9 @@ const clickBack = () => {
|
||||||
class="col-12"
|
class="col-12"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="trueDetail"
|
for="#trueDetail"
|
||||||
|
ref="trueDetailRef"
|
||||||
|
v-model="formData.trueDetail"
|
||||||
label="รายละเอียดสืบสวนข้อเท็จจริง"
|
label="รายละเอียดสืบสวนข้อเท็จจริง"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกรายละเอียดสืบสวนข้อเท็จจริง'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอกรายละเอียดสืบสวนข้อเท็จจริง'}`]"
|
||||||
|
|
@ -385,7 +484,9 @@ const clickBack = () => {
|
||||||
class="col-12"
|
class="col-12"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="evidence"
|
for="#evidence"
|
||||||
|
ref="evidenceRef"
|
||||||
|
v-model="formData.evidence"
|
||||||
label="สรุปพยานหลักฐานสนับสนุนข้อกล่าวหา"
|
label="สรุปพยานหลักฐานสนับสนุนข้อกล่าวหา"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกสรุปพยานหลักฐานสนับสนุนข้อกล่าวหา'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอกสรุปพยานหลักฐานสนับสนุนข้อกล่าวหา'}`]"
|
||||||
|
|
@ -394,7 +495,9 @@ const clickBack = () => {
|
||||||
class="col-12 q-pb-md"
|
class="col-12 q-pb-md"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
v-model="filesEvidence"
|
ref="filesEvidenceRef"
|
||||||
|
for="#filesEvidence"
|
||||||
|
v-model="formData.filesEvidence"
|
||||||
@added="fileUploadDoc"
|
@added="fileUploadDoc"
|
||||||
label="ไฟล์เอกสารหลักฐานสรุปพยานหลักฐานสนับสนุนข้อกล่าวหา"
|
label="ไฟล์เอกสารหลักฐานสรุปพยานหลักฐานสนับสนุนข้อกล่าวหา"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
|
@ -409,7 +512,9 @@ const clickBack = () => {
|
||||||
class="col-12"
|
class="col-12"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="recordAccuser"
|
ref="recordAccuserRef"
|
||||||
|
for="#recordAccuser"
|
||||||
|
v-model="formData.recordAccuser"
|
||||||
label="บันทึกถ้อยคำของผู้กล่าวหา"
|
label="บันทึกถ้อยคำของผู้กล่าวหา"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกบันทึกถ้อยคำของผู้กล่าวหา'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอกบันทึกถ้อยคำของผู้กล่าวหา'}`]"
|
||||||
|
|
@ -418,7 +523,9 @@ const clickBack = () => {
|
||||||
class="col-12 q-pb-md"
|
class="col-12 q-pb-md"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
v-model="filesRecordAccuser"
|
ref="filesRecordAccuserRef"
|
||||||
|
for="#filesRecordAccuser"
|
||||||
|
v-model="formData.filesRecordAccuser"
|
||||||
@added="fileUploadDoc"
|
@added="fileUploadDoc"
|
||||||
label="ไฟล์เอกสารบันทึกถ้อยคำของผู้กล่าวหา"
|
label="ไฟล์เอกสารบันทึกถ้อยคำของผู้กล่าวหา"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
|
@ -433,7 +540,9 @@ const clickBack = () => {
|
||||||
class="col-12"
|
class="col-12"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="witnesses"
|
for="#witnesses"
|
||||||
|
ref="witnessesRef"
|
||||||
|
v-model="formData.witnesses"
|
||||||
label="พยานและการบันทึกถ้อยคำ"
|
label="พยานและการบันทึกถ้อยคำ"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกพยานและการบันทึกถ้อยคำ'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอกพยานและการบันทึกถ้อยคำ'}`]"
|
||||||
|
|
@ -442,7 +551,9 @@ const clickBack = () => {
|
||||||
class="col-12 q-pb-md"
|
class="col-12 q-pb-md"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
v-model="filesWitnesses"
|
ref="filesWitnessesRef"
|
||||||
|
for="#filesWitnesses"
|
||||||
|
v-model="formData.filesWitnesses"
|
||||||
@added="fileUploadDoc"
|
@added="fileUploadDoc"
|
||||||
label="ไฟล์เอกสารพยานและการบันทึกถ้อยคำ"
|
label="ไฟล์เอกสารพยานและการบันทึกถ้อยคำ"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
|
@ -457,7 +568,9 @@ const clickBack = () => {
|
||||||
class="col-12"
|
class="col-12"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="InvestResults"
|
for="#InvestResults"
|
||||||
|
ref="InvestResultsRef"
|
||||||
|
v-model="formData.InvestResults"
|
||||||
label="ผลการสอบสวน"
|
label="ผลการสอบสวน"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกผลการสอบสวน'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอกผลการสอบสวน'}`]"
|
||||||
|
|
@ -466,7 +579,9 @@ const clickBack = () => {
|
||||||
class="col-12"
|
class="col-12"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
v-model="filesEtc"
|
ref="filesEtcRef"
|
||||||
|
for="#filesEtc"
|
||||||
|
v-model="formData.filesEtc"
|
||||||
@added="fileUploadDoc"
|
@added="fileUploadDoc"
|
||||||
label="ไฟล์เอกสารหลักฐานอื่น ๆ"
|
label="ไฟล์เอกสารหลักฐานอื่น ๆ"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
|
@ -485,18 +600,18 @@ const clickBack = () => {
|
||||||
<div class="row col-12 q-pa-sm">
|
<div class="row col-12 q-pa-sm">
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-btn
|
<q-btn
|
||||||
|
id="onSubmit"
|
||||||
|
type="submit"
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
color="public"
|
color="secondary"
|
||||||
@click="checkSave"
|
|
||||||
icon="mdi-content-save-outline"
|
icon="mdi-content-save-outline"
|
||||||
|
><q-tooltip>บันทึกข้อมูล</q-tooltip></q-btn
|
||||||
>
|
>
|
||||||
<q-tooltip>{{ edit ? "แก้ไขข้อมูล" : "บันทึกข้อมูล" }}</q-tooltip>
|
|
||||||
</q-btn>
|
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
</q-form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<Dialogbody
|
<Dialogbody
|
||||||
v-model:Modal="modal"
|
v-model:Modal="modal"
|
||||||
|
|
|
||||||
|
|
@ -61,52 +61,52 @@ function redirectToPageadd() {
|
||||||
รายการออกคำสั่งลงโทษทางวินัย
|
รายการออกคำสั่งลงโทษทางวินัย
|
||||||
</div>
|
</div>
|
||||||
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
||||||
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
||||||
<div>
|
<div>
|
||||||
<q-btn
|
<q-btn
|
||||||
id="addDisciplineOrder"
|
for="buttonAddDisciplineOrder"
|
||||||
flat
|
flat
|
||||||
size="12px"
|
size="12px"
|
||||||
round
|
round
|
||||||
color="primary"
|
color="primary"
|
||||||
icon="mdi-plus"
|
icon="mdi-plus"
|
||||||
@click="redirectToPageadd()"
|
@click="redirectToPageadd()"
|
||||||
><q-tooltip>เพิ่มรายการออกคำสั่งลงโทษทางวินัย </q-tooltip></q-btn
|
><q-tooltip>เพิ่มรายการออกคำสั่งลงโทษทางวินัย </q-tooltip></q-btn
|
||||||
>
|
>
|
||||||
</div>
|
|
||||||
<q-space />
|
|
||||||
<q-input
|
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
|
||||||
for="filterTable"
|
|
||||||
dense
|
|
||||||
outlined
|
|
||||||
v-model="filterTable"
|
|
||||||
label="ค้นหา"
|
|
||||||
>
|
|
||||||
<template v-slot:append>
|
|
||||||
<q-icon name="search" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
<q-select
|
|
||||||
for="visibleColumns"
|
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
|
||||||
v-model="OrderStore.visibleColumns"
|
|
||||||
multiple
|
|
||||||
outlined
|
|
||||||
dense
|
|
||||||
options-dense
|
|
||||||
:display-value="$q.lang.table.columns"
|
|
||||||
emit-value
|
|
||||||
map-options
|
|
||||||
:options="OrderStore.columns"
|
|
||||||
option-value="name"
|
|
||||||
options-cover
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<q-space />
|
||||||
<tableOrder :filterTable="filterTable" />
|
<q-input
|
||||||
</div>
|
class="col-xs-12 col-sm-3 col-md-2"
|
||||||
</q-card>
|
for="inputFilterTable"
|
||||||
|
dense
|
||||||
|
outlined
|
||||||
|
v-model="filterTable"
|
||||||
|
label="ค้นหา"
|
||||||
|
>
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-icon name="search" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
<q-select
|
||||||
|
for="selectVisibleColumns"
|
||||||
|
class="col-xs-12 col-sm-3 col-md-2"
|
||||||
|
v-model="OrderStore.visibleColumns"
|
||||||
|
multiple
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
options-dense
|
||||||
|
:display-value="$q.lang.table.columns"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
:options="OrderStore.columns"
|
||||||
|
option-value="name"
|
||||||
|
options-cover
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<tableOrder :filterTable="filterTable" />
|
||||||
|
</div>
|
||||||
|
</q-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ const previousStep = async () => {
|
||||||
<template>
|
<template>
|
||||||
<div class="toptitle text-dark col-12 row items-center">
|
<div class="toptitle text-dark col-12 row items-center">
|
||||||
<q-btn
|
<q-btn
|
||||||
|
for="buttonBackToMain"
|
||||||
icon="mdi-arrow-left"
|
icon="mdi-arrow-left"
|
||||||
unelevated
|
unelevated
|
||||||
round
|
round
|
||||||
|
|
@ -39,6 +40,7 @@ const previousStep = async () => {
|
||||||
<div class="col-12 q-mt-sm">
|
<div class="col-12 q-mt-sm">
|
||||||
<q-card flat bordered>
|
<q-card flat bordered>
|
||||||
<q-stepper
|
<q-stepper
|
||||||
|
for="myStepper"
|
||||||
v-model="step"
|
v-model="step"
|
||||||
ref="stepper"
|
ref="stepper"
|
||||||
animated
|
animated
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ function onSubmit() {
|
||||||
<div class="col-xs-12 col-sm-6">
|
<div class="col-xs-12 col-sm-6">
|
||||||
ประเภทคำสั่ง
|
ประเภทคำสั่ง
|
||||||
<q-select
|
<q-select
|
||||||
for="orderType"
|
for="selectOrderType"
|
||||||
ref="orderTypeRef"
|
ref="orderTypeRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -134,7 +134,7 @@ function onSubmit() {
|
||||||
<div class="col-xs-12 col-sm-6">
|
<div class="col-xs-12 col-sm-6">
|
||||||
คำสั่งโดย
|
คำสั่งโดย
|
||||||
<q-select
|
<q-select
|
||||||
for="orderBy"
|
for="selectOrderBy"
|
||||||
ref="orderByRef"
|
ref="orderByRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -152,7 +152,7 @@ function onSubmit() {
|
||||||
<div class="col-xs-12 col-sm-6">
|
<div class="col-xs-12 col-sm-6">
|
||||||
เลือกรายการสอบสวนความผิดทางวินัย
|
เลือกรายการสอบสวนความผิดทางวินัย
|
||||||
<q-select
|
<q-select
|
||||||
for="listInvestigation"
|
for="selectListInvestigation"
|
||||||
ref="listInvestigationRef"
|
ref="listInvestigationRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -172,7 +172,7 @@ function onSubmit() {
|
||||||
<div class="col-xs-12 col-sm-6">
|
<div class="col-xs-12 col-sm-6">
|
||||||
ผู้มีอำนาจลงนาม
|
ผู้มีอำนาจลงนาม
|
||||||
<q-input
|
<q-input
|
||||||
for="authority"
|
for="inputAuthority"
|
||||||
ref="authorityRef"
|
ref="authorityRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -186,7 +186,7 @@ function onSubmit() {
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
คำสั่งที่
|
คำสั่งที่
|
||||||
<q-input
|
<q-input
|
||||||
for="orderNumber"
|
for="inputOrderNumber"
|
||||||
ref="orderNumberRef"
|
ref="orderNumberRef"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
|
|
@ -215,6 +215,7 @@ function onSubmit() {
|
||||||
}}</template>
|
}}</template>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<q-input
|
<q-input
|
||||||
|
for="inputDateYear"
|
||||||
ref="dateYearRef"
|
ref="dateYearRef"
|
||||||
:model-value="
|
:model-value="
|
||||||
formData.dateYear ? formData.dateYear + 543 : null
|
formData.dateYear ? formData.dateYear + 543 : null
|
||||||
|
|
@ -247,7 +248,7 @@ function onSubmit() {
|
||||||
</template>
|
</template>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<q-input
|
<q-input
|
||||||
for="date"
|
for="inputDate"
|
||||||
ref="dateRef"
|
ref="dateRef"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
|
|
@ -272,7 +273,7 @@ function onSubmit() {
|
||||||
<div class="col-xs-12 col-sm-6">
|
<div class="col-xs-12 col-sm-6">
|
||||||
ตำแหน่งผู้มีอำนาจลงนาม
|
ตำแหน่งผู้มีอำนาจลงนาม
|
||||||
<q-input
|
<q-input
|
||||||
for="authorityPosition"
|
for="inputAuthorityPosition"
|
||||||
ref="authorityPositionRef"
|
ref="authorityPositionRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -285,7 +286,7 @@ function onSubmit() {
|
||||||
<div class="col-xs-12 col-sm-6">
|
<div class="col-xs-12 col-sm-6">
|
||||||
คำสั่งเรื่อง
|
คำสั่งเรื่อง
|
||||||
<q-input
|
<q-input
|
||||||
for="subject"
|
for="inputSubject"
|
||||||
ref="subjectRef"
|
ref="subjectRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -298,7 +299,7 @@ function onSubmit() {
|
||||||
<div class="col-xs-12 col-sm-12">
|
<div class="col-xs-12 col-sm-12">
|
||||||
รายละเอียดการกระทำความผิด
|
รายละเอียดการกระทำความผิด
|
||||||
<q-input
|
<q-input
|
||||||
for="mistakeDetail"
|
for="inputMistakeDetail"
|
||||||
ref="mistakeDetailRef"
|
ref="mistakeDetailRef"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
|
||||||
|
|
@ -22,139 +22,22 @@ const myForm = ref<QForm | null>(null); //form data input
|
||||||
const edit = ref<boolean>(false);
|
const edit = ref<boolean>(false);
|
||||||
const channel = ref<string>("");
|
const channel = ref<string>("");
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {});
|
||||||
// if (route.params.id) {
|
|
||||||
// // มี params id ให้ เรียกข้อมูลของรอบการเสนอขอ
|
|
||||||
// await fetchData();
|
|
||||||
// }
|
|
||||||
});
|
|
||||||
// เรียกข้อมูลของรอบการเสนอขอ
|
// เรียกข้อมูลของรอบการเสนอขอ
|
||||||
const fetchData = async () => {
|
const fetchData = async () => {};
|
||||||
// edit.value = true;
|
|
||||||
// showLoader();
|
|
||||||
// await http
|
|
||||||
// .get(config.API.getRoundInsignia(id.value))
|
|
||||||
// .then((res) => {
|
|
||||||
// const data = res.data.result;
|
|
||||||
// id.value = data.period_id;
|
|
||||||
// roundInsig.value =
|
|
||||||
// options.value.filter((r: any) => r.value == data.period_round).length >
|
|
||||||
// 0
|
|
||||||
// ? options.value.filter((r: any) => r.value == data.period_round)[0]
|
|
||||||
// : null;
|
|
||||||
// yearly.value = data.period_year;
|
|
||||||
// datelast.value = data.period_amount;
|
|
||||||
// dateStart.value = new Date(data.period_start);
|
|
||||||
// dateEnd.value = new Date(data.period_end);
|
|
||||||
// files.value = data.period_doc;
|
|
||||||
// })
|
|
||||||
// .catch((e) => {
|
|
||||||
// messageError($q, e);
|
|
||||||
// })
|
|
||||||
// .finally(() => {
|
|
||||||
// hideLoader();
|
|
||||||
// });
|
|
||||||
};
|
|
||||||
|
|
||||||
const deleteData = async (id: string) => {
|
const deleteData = async (id: string) => {};
|
||||||
// showLoader();
|
|
||||||
// await http
|
|
||||||
// .delete(config.API.periodExamId(id))
|
|
||||||
// .then((res) => {
|
|
||||||
// success($q, "ลบข้อมูลสำเร็จ");
|
|
||||||
// })
|
|
||||||
// .catch((e) => {
|
|
||||||
// messageError($q, e);
|
|
||||||
// })
|
|
||||||
// .finally(async () => {
|
|
||||||
// hideLoader();
|
|
||||||
// });
|
|
||||||
};
|
|
||||||
|
|
||||||
// แก้ไขข้อมูล
|
// แก้ไขข้อมูล
|
||||||
|
|
||||||
// คลิกบันทึก
|
// คลิกบันทึก
|
||||||
const checkSave = () => {
|
const checkSave = () => {};
|
||||||
// if (myForm.value !== null) {
|
|
||||||
// myForm.value.validate().then(async (success) => {
|
|
||||||
// if (success) {
|
|
||||||
// dialogConfirm($q, () => SaveData());
|
|
||||||
// } else if (Number(datelast.value) !== 0) {
|
|
||||||
// dialogMessageNotify($q, "กรุณาเลือกรอบการเสนอขอพระราชทานเครื่องราชฯ");
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
};
|
|
||||||
// บันทึกข้อมูล
|
// บันทึกข้อมูล
|
||||||
const SaveData = async () => {
|
const SaveData = async () => {};
|
||||||
// if (edit.value) {
|
|
||||||
// await editData(id.value);
|
|
||||||
// } else {
|
|
||||||
// await addData();
|
|
||||||
// clickBack();
|
|
||||||
// }
|
|
||||||
};
|
|
||||||
// เพิ่มข้อมูลรอบการเสนอขอพระราชทานเครื่องราชฯ
|
// เพิ่มข้อมูลรอบการเสนอขอพระราชทานเครื่องราชฯ
|
||||||
const addData = async () => {
|
const addData = async () => {};
|
||||||
// const formData = new FormData();
|
|
||||||
// const name = `รอบการเสนอขอพระราชทานเครื่องราชรอบที่ ${
|
|
||||||
// roundInsig.value.value
|
|
||||||
// } ปี ${yearly.value + 543} `;
|
|
||||||
// formData.append("name", name);
|
|
||||||
// formData.append("year", yearly.value.toString());
|
|
||||||
// formData.append("amount", datelast.value.toString());
|
|
||||||
// formData.append("round", roundInsig.value.value);
|
|
||||||
// if (dateStart.value !== null) {
|
|
||||||
// formData.append("startDate", dateToISO(dateStart.value));
|
|
||||||
// }
|
|
||||||
// if (dateEnd.value !== null) {
|
|
||||||
// formData.append("endDate", dateToISO(dateEnd.value));
|
|
||||||
// }
|
|
||||||
// formData.append("file", files.value);
|
|
||||||
// showLoader();
|
|
||||||
// await http
|
|
||||||
// .post(config.API.listRoundInsignia(), formData)
|
|
||||||
// .then(() => {
|
|
||||||
// success($q, "บันทึกข้อมูลสำเร็จ");
|
|
||||||
// })
|
|
||||||
// .catch((e) => {
|
|
||||||
// messageError($q, e);
|
|
||||||
// })
|
|
||||||
// .finally(async () => {
|
|
||||||
// hideLoader();
|
|
||||||
// });
|
|
||||||
};
|
|
||||||
// แก้ไขข้อมูล
|
// แก้ไขข้อมูล
|
||||||
const editData = async (id: string) => {
|
const editData = async (id: string) => {};
|
||||||
// const formData = new FormData();
|
|
||||||
// const name = `รอบการเสนอขอพระราชทานเครื่องราชรอบที่ ${
|
|
||||||
// roundInsig.value.value
|
|
||||||
// } ปี ${yearly.value + 543}`;
|
|
||||||
// formData.append("name", name);
|
|
||||||
// formData.append("year", yearly.value.toString());
|
|
||||||
// formData.append("amount", datelast.value.toString());
|
|
||||||
// formData.append("round", roundInsig.value.value);
|
|
||||||
// if (dateStart.value !== null) {
|
|
||||||
// formData.append("startDate", dateToISO(dateStart.value));
|
|
||||||
// }
|
|
||||||
// if (dateEnd.value !== null) {
|
|
||||||
// formData.append("endDate", dateToISO(dateEnd.value));
|
|
||||||
// }
|
|
||||||
// formData.append("file", files.value);
|
|
||||||
// showLoader();
|
|
||||||
// await http
|
|
||||||
// .put(config.API.editRoundInsignia(id), formData)
|
|
||||||
// .then(() => {
|
|
||||||
// success($q, "แก้ไขข้อมูลสำเร็จ");
|
|
||||||
// })
|
|
||||||
// .catch((e) => {
|
|
||||||
// messageError($q, e);
|
|
||||||
// })
|
|
||||||
// .finally(async () => {
|
|
||||||
// hideLoader();
|
|
||||||
// clickBack();
|
|
||||||
// });
|
|
||||||
};
|
|
||||||
|
|
||||||
const clickBack = () => {
|
const clickBack = () => {
|
||||||
router.push(`/discipline/channel`);
|
router.push(`/discipline/channel`);
|
||||||
|
|
@ -187,6 +70,7 @@ const clickBack = () => {
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="channel"
|
v-model="channel"
|
||||||
|
for="channel"
|
||||||
label="กรอกชื่อช่องทาง"
|
label="กรอกชื่อช่องทาง"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกชื่อช่องทาง'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอกชื่อช่องทาง'}`]"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,7 @@ onMounted(() => {});
|
||||||
dense
|
dense
|
||||||
v-model="filterKeyword"
|
v-model="filterKeyword"
|
||||||
ref="filterRef"
|
ref="filterRef"
|
||||||
|
for="filterKeyword"
|
||||||
outlined
|
outlined
|
||||||
debounce="300"
|
debounce="300"
|
||||||
placeholder="ค้นหา"
|
placeholder="ค้นหา"
|
||||||
|
|
@ -150,6 +151,7 @@ onMounted(() => {});
|
||||||
<q-select
|
<q-select
|
||||||
v-model="visibleColumns"
|
v-model="visibleColumns"
|
||||||
multiple
|
multiple
|
||||||
|
for="visibleColumns"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
options-dense
|
options-dense
|
||||||
|
|
@ -204,18 +206,6 @@ onMounted(() => {});
|
||||||
</q-td>
|
</q-td>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<!-- <template v-slot:pagination="scope">
|
|
||||||
<q-pagination
|
|
||||||
v-model="pagination.page"
|
|
||||||
active-color="primary"
|
|
||||||
color="dark"
|
|
||||||
:max="scope.pagesNumber"
|
|
||||||
:max-pages="5"
|
|
||||||
size="sm"
|
|
||||||
boundary-links
|
|
||||||
direction-links
|
|
||||||
></q-pagination>
|
|
||||||
</template> -->
|
|
||||||
</d-table>
|
</d-table>
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
|
||||||
46
src/modules/11_discipline/interface/request/disciplinary.ts
Normal file
46
src/modules/11_discipline/interface/request/disciplinary.ts
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
interface FormData {
|
||||||
|
Complaint: string;
|
||||||
|
dateInvestigate: Date | null;
|
||||||
|
dateAllegation: Date | null;
|
||||||
|
dateEvident: Date | null;
|
||||||
|
filesEvidence: File | null;
|
||||||
|
filesRecordAccuser: File | null;
|
||||||
|
filesWitnesses: File | null;
|
||||||
|
filesEtc: File | null;
|
||||||
|
casefault: string;
|
||||||
|
typefault: string;
|
||||||
|
faultLevel: string;
|
||||||
|
refLaw: string;
|
||||||
|
detailComplaint: string;
|
||||||
|
whereInvestigate: string;
|
||||||
|
trueDetail: string;
|
||||||
|
evidence: string;
|
||||||
|
recordAccuser: string;
|
||||||
|
witnesses: string;
|
||||||
|
InvestResults: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface disciplinaryRef {
|
||||||
|
Complaint: object | null;
|
||||||
|
dateInvestigate: object | null;
|
||||||
|
dateAllegation: object | null;
|
||||||
|
dateEvident: object | null;
|
||||||
|
filesEvidence: object | null;
|
||||||
|
filesRecordAccuser: object | null;
|
||||||
|
filesWitnesses: object | null;
|
||||||
|
filesEtc: object | null;
|
||||||
|
casefault: object | null;
|
||||||
|
typefault: object | null;
|
||||||
|
faultLevel: object | null;
|
||||||
|
refLaw: object | null;
|
||||||
|
detailComplaint: object | null;
|
||||||
|
whereInvestigate: object | null;
|
||||||
|
trueDetail: object | null;
|
||||||
|
evidence: object | null;
|
||||||
|
recordAccuser: object | null;
|
||||||
|
witnesses: object | null;
|
||||||
|
InvestResults: object | null;
|
||||||
|
[key: string]: any;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type { FormData, disciplinaryRef };
|
||||||
Loading…
Add table
Add a link
Reference in a new issue