ปรับระบบพ้นจากราชการ
This commit is contained in:
parent
d043396010
commit
615b280979
26 changed files with 577 additions and 733 deletions
|
|
@ -252,14 +252,7 @@ watch(modal, () => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<q-btn
|
<q-btn flat round class="primary" icon="mdi-plus" @click="modal = true">
|
||||||
flat
|
|
||||||
round
|
|
||||||
class="text-teal-5"
|
|
||||||
icon="mdi-plus"
|
|
||||||
size="md"
|
|
||||||
@click="modal = true"
|
|
||||||
>
|
|
||||||
<q-tooltip>เพิ่มรายชื่อ</q-tooltip></q-btn
|
<q-tooltip>เพิ่มรายชื่อ</q-tooltip></q-btn
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
@ -14,7 +14,7 @@ import type { RetirementList } from "@/modules/06_retirement/interface/index/Mai
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import DialogPopupReason from "@/components/Dialogs/PopupReason.vue";
|
import DialogPopupReason from "@/components/Dialogs/PopupReason.vue";
|
||||||
import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue";
|
import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue";
|
||||||
import AddList from "../ListRetirement/AddList.vue";
|
import AddList from "@/modules/06_retirement/components/01_retirement/AddList.vue";
|
||||||
|
|
||||||
/** Use */
|
/** Use */
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -542,15 +542,14 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<q-table
|
<d-table
|
||||||
flat
|
flat
|
||||||
dense
|
dense
|
||||||
bordered
|
bordered
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
row-key="order"
|
row-key="order"
|
||||||
class="custom-header-table"
|
:filter="filter.trim()"
|
||||||
:filter="filter"
|
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
no-data-label="ไม่มีข้อมูล"
|
no-data-label="ไม่มีข้อมูล"
|
||||||
:pagination-label="paginationLabel"
|
:pagination-label="paginationLabel"
|
||||||
|
|
@ -678,7 +677,7 @@ onMounted(async () => {
|
||||||
}}</q-td>
|
}}</q-td>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:pagination="scope">
|
<!-- <template v-slot:pagination="scope">
|
||||||
<q-pagination
|
<q-pagination
|
||||||
v-model="pagination.page"
|
v-model="pagination.page"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
|
@ -688,8 +687,8 @@ onMounted(async () => {
|
||||||
boundary-links
|
boundary-links
|
||||||
direction-links
|
direction-links
|
||||||
></q-pagination>
|
></q-pagination>
|
||||||
</template>
|
</template> -->
|
||||||
</q-table>
|
</d-table>
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -841,35 +840,6 @@ onMounted(async () => {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scope>
|
<style lang="scss" scope>
|
||||||
.custom-header-table {
|
|
||||||
max-height: 64vh;
|
|
||||||
|
|
||||||
.q-table tr:nth-child(odd) td {
|
|
||||||
background: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table tr:nth-child(even) td {
|
|
||||||
background: #f8f8f8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table thead tr {
|
|
||||||
background: #ecebeb;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table thead tr th {
|
|
||||||
position: sticky;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table thead tr:last-child th {
|
|
||||||
top: 48px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table thead tr:first-child th {
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-btn-dropdown__arrow {
|
.q-btn-dropdown__arrow {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
@ -182,91 +182,85 @@ watchEffect(() => {
|
||||||
<q-card style="width: 1200px; max-width: 80vw">
|
<q-card style="width: 1200px; max-width: 80vw">
|
||||||
<DialogHeader tittle="ส่งไปออกคำสั่งลาออก" :close="closeModal" />
|
<DialogHeader tittle="ส่งไปออกคำสั่งลาออก" :close="closeModal" />
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-card-section class="q-pt-none">
|
<q-card-section>
|
||||||
<div class="row justify-end">
|
<div class="row col-12 q-col-gutter-sm">
|
||||||
<div class="col-5">
|
<div class="col-12 row">
|
||||||
<q-toolbar style="padding: 0">
|
<q-space />
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
outlined
|
outlined
|
||||||
dense
|
|
||||||
debounce="300"
|
|
||||||
:model-value="filterKeyword2"
|
|
||||||
@update:model-value="updateInput"
|
|
||||||
placeholder="ค้นหา"
|
|
||||||
style="width: 850px; max-width: auto"
|
|
||||||
>
|
|
||||||
<template v-slot:append>
|
|
||||||
<q-icon v-if="filterKeyword2 == ''" name="search" />
|
|
||||||
<q-icon
|
|
||||||
v-if="filterKeyword2 !== ''"
|
|
||||||
name="clear"
|
|
||||||
class="cursor-pointer"
|
|
||||||
@click="Reset"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
<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"
|
|
||||||
style="min-width: 140px"
|
|
||||||
class="gt-xs q-ml-sm"
|
|
||||||
/>
|
|
||||||
</q-toolbar>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<d-table
|
|
||||||
:columns="columns"
|
|
||||||
:rows="rows"
|
|
||||||
:filter="filterKeyword2"
|
|
||||||
row-key="id"
|
|
||||||
:visible-columns="visibleColumns"
|
|
||||||
selection="multiple"
|
|
||||||
v-model:selected="selected"
|
|
||||||
>
|
|
||||||
<template v-slot:header-selection="scope">
|
|
||||||
<q-checkbox
|
|
||||||
keep-color
|
|
||||||
color="primary"
|
|
||||||
dense
|
dense
|
||||||
v-model="scope.selected"
|
debounce="300"
|
||||||
|
:model-value="filterKeyword2"
|
||||||
|
@update:model-value="updateInput"
|
||||||
|
placeholder="ค้นหา"
|
||||||
|
>
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-icon name="search" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
<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"
|
||||||
|
style="min-width: 140px"
|
||||||
|
class="gt-xs q-ml-sm"
|
||||||
/>
|
/>
|
||||||
</template>
|
</div>
|
||||||
|
|
||||||
<template v-slot:body="props">
|
<div class="col-12">
|
||||||
<q-tr :props="props" class="cursor-pointer">
|
<d-table
|
||||||
<q-td>
|
:columns="columns"
|
||||||
|
:rows="rows"
|
||||||
|
:filter="filterKeyword2?.trim()"
|
||||||
|
row-key="id"
|
||||||
|
:visible-columns="visibleColumns"
|
||||||
|
selection="multiple"
|
||||||
|
v-model:selected="selected"
|
||||||
|
>
|
||||||
|
<template v-slot:header-selection="scope">
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
keep-color
|
keep-color
|
||||||
color="primary"
|
color="primary"
|
||||||
dense
|
dense
|
||||||
v-model="props.selected"
|
v-model="scope.selected"
|
||||||
/>
|
/>
|
||||||
</q-td>
|
</template>
|
||||||
<q-td v-for="col in props.cols" :key="col.id">
|
|
||||||
<div
|
<template v-slot:body="props">
|
||||||
:class="
|
<q-tr :props="props" class="cursor-pointer">
|
||||||
col.name === 'organizationPositionOld' ||
|
<q-td>
|
||||||
col.name === 'organization'
|
<q-checkbox
|
||||||
? 'table_ellipsis2'
|
keep-color
|
||||||
: ''
|
color="primary"
|
||||||
"
|
dense
|
||||||
>
|
v-model="props.selected"
|
||||||
{{ col.value ? col.value : "" }}
|
/>
|
||||||
</div>
|
</q-td>
|
||||||
</q-td>
|
<q-td v-for="col in props.cols" :key="col.id">
|
||||||
</q-tr>
|
<div
|
||||||
</template>
|
:class="
|
||||||
</d-table>
|
col.name === 'organizationPositionOld' ||
|
||||||
|
col.name === 'organization'
|
||||||
|
? 'table_ellipsis2'
|
||||||
|
: ''
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ col.value ? col.value : "" }}
|
||||||
|
</div>
|
||||||
|
</q-td>
|
||||||
|
</q-tr>
|
||||||
|
</template>
|
||||||
|
</d-table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<q-card-actions align="right" class="bg-white text-teal">
|
<q-card-actions align="right" class="bg-white text-teal">
|
||||||
|
|
@ -11,9 +11,10 @@ import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
|
import type { DataStatus } from "@/modules/06_retirement/interface/index/Main";
|
||||||
import type { ResponseItems } from "@/modules/06_retirement/interface/response/Main";
|
import type { ResponseItems } from "@/modules/06_retirement/interface/response/Main";
|
||||||
|
|
||||||
import DialogSendToCommand from "@/modules/06_retirement/components/resign/DialogSendToCommand.vue";
|
import DialogSendToCommand from "@/modules/06_retirement/components/02_resign/DialogSendToCommand.vue";
|
||||||
|
|
||||||
/** use */
|
/** use */
|
||||||
const $q = useQuasar(); //ใช้ noti quasar
|
const $q = useQuasar(); //ใช้ noti quasar
|
||||||
|
|
@ -135,7 +136,7 @@ const filterKeyword2 = ref<string>("");
|
||||||
const filterKeyword = ref<string>("");
|
const filterKeyword = ref<string>("");
|
||||||
|
|
||||||
const status = ref<string>("");
|
const status = ref<string>("");
|
||||||
const optionStatus = ref<any[]>([]);
|
const optionStatus = ref<DataStatus[]>([]);
|
||||||
|
|
||||||
/**Setting pagination */
|
/**Setting pagination */
|
||||||
const pagination = ref({
|
const pagination = ref({
|
||||||
|
|
@ -175,7 +176,7 @@ async function openModalOrder() {
|
||||||
rowsSendToCommand.value = row;
|
rowsSendToCommand.value = row;
|
||||||
modal.value = true;
|
modal.value = true;
|
||||||
})
|
})
|
||||||
.catch((e: any) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
@ -196,7 +197,7 @@ async function fecthlist() {
|
||||||
const data = await res.data.result;
|
const data = await res.data.result;
|
||||||
rows.value = data;
|
rows.value = data;
|
||||||
})
|
})
|
||||||
.catch((e: any) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
@ -211,9 +212,8 @@ async function fecthlist() {
|
||||||
*/
|
*/
|
||||||
function filterOption(val: string, update: Function) {
|
function filterOption(val: string, update: Function) {
|
||||||
update(() => {
|
update(() => {
|
||||||
status.value = val ? "" : stroeResign.formQurey.status;
|
|
||||||
optionStatus.value = stroeResign.optionStatus.filter(
|
optionStatus.value = stroeResign.optionStatus.filter(
|
||||||
(v: any) => v.name.indexOf(val) > -1
|
(v: DataStatus) => v.name.indexOf(val) > -1
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -249,6 +249,8 @@ onMounted(async () => {
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
use-input
|
use-input
|
||||||
|
hide-selected
|
||||||
|
fill-input
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
(stroeResign.formQurey.status = status), fecthlist()
|
(stroeResign.formQurey.status = status), fecthlist()
|
||||||
"
|
"
|
||||||
|
|
@ -283,13 +285,7 @@ onMounted(async () => {
|
||||||
placeholder="ค้นหา"
|
placeholder="ค้นหา"
|
||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-icon v-if="filterKeyword == ''" name="search" />
|
<q-icon name="search" />
|
||||||
<q-icon
|
|
||||||
v-if="filterKeyword !== ''"
|
|
||||||
name="clear"
|
|
||||||
class="cursor-pointer"
|
|
||||||
@click="filterKeyword = ''"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
|
|
@ -313,7 +309,7 @@ onMounted(async () => {
|
||||||
<d-table
|
<d-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:filter="filterKeyword"
|
:filter="filterKeyword.trim()"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
|
|
@ -166,11 +166,6 @@ function updateInput(value: any) {
|
||||||
emit("update:filterKeyword2", value);
|
emit("update:filterKeyword2", value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** รีเซ็ตค่าในช่องค้นหา */
|
|
||||||
function Reset() {
|
|
||||||
emit("update:filterKeyword2", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
if (props.modal === true) {
|
if (props.modal === true) {
|
||||||
selected.value = [];
|
selected.value = [];
|
||||||
|
|
@ -182,91 +177,85 @@ watchEffect(() => {
|
||||||
<q-card style="width: 1200px; max-width: 80vw">
|
<q-card style="width: 1200px; max-width: 80vw">
|
||||||
<DialogHeader tittle="ส่งไปออกคำสั่งลาออก" :close="closeModal" />
|
<DialogHeader tittle="ส่งไปออกคำสั่งลาออก" :close="closeModal" />
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-card-section class="q-pt-none">
|
<q-card-section>
|
||||||
<div class="row justify-end">
|
<div class="row col-12 q-col-gutter-sm">
|
||||||
<div class="col-5">
|
<div class="col-12 row">
|
||||||
<q-toolbar style="padding: 0">
|
<q-space />
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
outlined
|
outlined
|
||||||
dense
|
|
||||||
debounce="300"
|
|
||||||
:model-value="filterKeyword2"
|
|
||||||
@update:model-value="updateInput"
|
|
||||||
placeholder="ค้นหา"
|
|
||||||
style="width: 850px; max-width: auto"
|
|
||||||
>
|
|
||||||
<template v-slot:append>
|
|
||||||
<q-icon v-if="filterKeyword2 == ''" name="search" />
|
|
||||||
<q-icon
|
|
||||||
v-if="filterKeyword2 !== ''"
|
|
||||||
name="clear"
|
|
||||||
class="cursor-pointer"
|
|
||||||
@click="Reset"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
<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"
|
|
||||||
style="min-width: 140px"
|
|
||||||
class="gt-xs q-ml-sm"
|
|
||||||
/>
|
|
||||||
</q-toolbar>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<d-table
|
|
||||||
:columns="columns"
|
|
||||||
:rows="rows"
|
|
||||||
:filter="filterKeyword2"
|
|
||||||
row-key="id"
|
|
||||||
:visible-columns="visibleColumns"
|
|
||||||
selection="multiple"
|
|
||||||
v-model:selected="selected"
|
|
||||||
>
|
|
||||||
<template v-slot:header-selection="scope">
|
|
||||||
<q-checkbox
|
|
||||||
keep-color
|
|
||||||
color="primary"
|
|
||||||
dense
|
dense
|
||||||
v-model="scope.selected"
|
debounce="300"
|
||||||
|
:model-value="filterKeyword2"
|
||||||
|
@update:model-value="updateInput"
|
||||||
|
placeholder="ค้นหา"
|
||||||
|
>
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-icon name="search" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
<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"
|
||||||
|
style="min-width: 140px"
|
||||||
|
class="gt-xs q-ml-sm"
|
||||||
/>
|
/>
|
||||||
</template>
|
</div>
|
||||||
|
|
||||||
<template v-slot:body="props">
|
<div class="col-12">
|
||||||
<q-tr :props="props" class="cursor-pointer">
|
<d-table
|
||||||
<q-td>
|
:columns="columns"
|
||||||
|
:rows="rows"
|
||||||
|
:filter="filterKeyword2?.trim()"
|
||||||
|
row-key="id"
|
||||||
|
:visible-columns="visibleColumns"
|
||||||
|
selection="multiple"
|
||||||
|
v-model:selected="selected"
|
||||||
|
>
|
||||||
|
<template v-slot:header-selection="scope">
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
keep-color
|
keep-color
|
||||||
color="primary"
|
color="primary"
|
||||||
dense
|
dense
|
||||||
v-model="props.selected"
|
v-model="scope.selected"
|
||||||
/>
|
/>
|
||||||
</q-td>
|
</template>
|
||||||
<q-td v-for="col in props.cols" :key="col.id">
|
|
||||||
<div
|
<template v-slot:body="props">
|
||||||
:class="
|
<q-tr :props="props" class="cursor-pointer">
|
||||||
col.name === 'organizationPositionOld' ||
|
<q-td>
|
||||||
col.name === 'organization'
|
<q-checkbox
|
||||||
? 'table_ellipsis2'
|
keep-color
|
||||||
: ''
|
color="primary"
|
||||||
"
|
dense
|
||||||
>
|
v-model="props.selected"
|
||||||
{{ col.value ? col.value : "" }}
|
/>
|
||||||
</div>
|
</q-td>
|
||||||
</q-td>
|
<q-td v-for="col in props.cols" :key="col.id">
|
||||||
</q-tr>
|
<div
|
||||||
</template>
|
:class="
|
||||||
</d-table>
|
col.name === 'organizationPositionOld' ||
|
||||||
|
col.name === 'organization'
|
||||||
|
? 'table_ellipsis2'
|
||||||
|
: ''
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ col.value ? col.value : "" }}
|
||||||
|
</div>
|
||||||
|
</q-td>
|
||||||
|
</q-tr>
|
||||||
|
</template>
|
||||||
|
</d-table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<q-card-actions align="right" class="bg-white text-teal">
|
<q-card-actions align="right" class="bg-white text-teal">
|
||||||
|
|
@ -11,9 +11,10 @@ import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
|
import type { DataStatus } from "@/modules/06_retirement/interface/index/Main";
|
||||||
import type { ResponseItems } from "@/modules/06_retirement/interface/response/Main";
|
import type { ResponseItems } from "@/modules/06_retirement/interface/response/Main";
|
||||||
|
|
||||||
import DialogSendToCommand from "@/modules/06_retirement/components/resignEMP/DialogSendToCommand.vue";
|
import DialogSendToCommand from "@/modules/06_retirement/components/03_resignEmp/DialogSendToCommand.vue";
|
||||||
|
|
||||||
/** use */
|
/** use */
|
||||||
const $q = useQuasar(); //ใช้ noti quasar
|
const $q = useQuasar(); //ใช้ noti quasar
|
||||||
|
|
@ -134,7 +135,7 @@ const filterKeyword2 = ref<string>("");
|
||||||
const filterKeyword = ref<string>("");
|
const filterKeyword = ref<string>("");
|
||||||
|
|
||||||
const statusEMP = ref<string>("");
|
const statusEMP = ref<string>("");
|
||||||
const optionStatus = ref<any[]>([]);
|
const optionStatus = ref<DataStatus[]>([]);
|
||||||
|
|
||||||
/**Setting pagination */
|
/**Setting pagination */
|
||||||
const pagination = ref({
|
const pagination = ref({
|
||||||
|
|
@ -174,7 +175,7 @@ async function openModalOrder() {
|
||||||
rowsSendToCommand.value = row;
|
rowsSendToCommand.value = row;
|
||||||
modal.value = true;
|
modal.value = true;
|
||||||
})
|
})
|
||||||
.catch((e: any) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
@ -195,7 +196,7 @@ async function fecthlist() {
|
||||||
const data = await res.data.result;
|
const data = await res.data.result;
|
||||||
rows.value = data;
|
rows.value = data;
|
||||||
})
|
})
|
||||||
.catch((e: any) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
@ -212,7 +213,7 @@ function filterOption(val: string, update: Function) {
|
||||||
update(() => {
|
update(() => {
|
||||||
statusEMP.value = val ? "" : stroeResign.formQureyEMP.status;
|
statusEMP.value = val ? "" : stroeResign.formQureyEMP.status;
|
||||||
optionStatus.value = stroeResign.optionStatusEMP.filter(
|
optionStatus.value = stroeResign.optionStatusEMP.filter(
|
||||||
(v: any) => v.name.indexOf(val) > -1
|
(v: DataStatus) => v.name.indexOf(val) > -1
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -248,6 +249,8 @@ onMounted(async () => {
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
use-input
|
use-input
|
||||||
|
hide-selected
|
||||||
|
fill-input
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
(stroeResign.formQureyEMP.status = statusEMP), fecthlist()
|
(stroeResign.formQureyEMP.status = statusEMP), fecthlist()
|
||||||
"
|
"
|
||||||
|
|
@ -313,7 +316,7 @@ onMounted(async () => {
|
||||||
<d-table
|
<d-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:filter="filterKeyword"
|
:filter="filterKeyword.trim()"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
|
|
@ -269,7 +269,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) =>
|
(val:string) =>
|
||||||
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 1',
|
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 1',
|
||||||
|
|
@ -286,7 +286,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
||||||
]"
|
]"
|
||||||
|
|
@ -308,7 +308,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
||||||
]"
|
]"
|
||||||
|
|
@ -338,7 +338,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) =>
|
(val:string) =>
|
||||||
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 2',
|
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 2',
|
||||||
|
|
@ -355,7 +355,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
||||||
]"
|
]"
|
||||||
|
|
@ -377,7 +377,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
||||||
]"
|
]"
|
||||||
|
|
@ -407,7 +407,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) =>
|
(val:string) =>
|
||||||
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 3',
|
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 3',
|
||||||
|
|
@ -424,7 +424,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
||||||
]"
|
]"
|
||||||
|
|
@ -446,7 +446,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
||||||
]"
|
]"
|
||||||
|
|
@ -476,7 +476,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) =>
|
(val:string) =>
|
||||||
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 4',
|
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 4',
|
||||||
|
|
@ -493,7 +493,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
||||||
]"
|
]"
|
||||||
|
|
@ -515,7 +515,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
||||||
]"
|
]"
|
||||||
|
|
@ -545,7 +545,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) =>
|
(val:string) =>
|
||||||
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 5',
|
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 5',
|
||||||
|
|
@ -563,7 +563,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
||||||
]"
|
]"
|
||||||
|
|
@ -592,7 +592,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) =>
|
(val:string) =>
|
||||||
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 6',
|
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 6',
|
||||||
|
|
@ -610,7 +610,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
||||||
]"
|
]"
|
||||||
|
|
@ -639,7 +639,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) =>
|
(val:string) =>
|
||||||
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 7',
|
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 7',
|
||||||
|
|
@ -656,7 +656,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
||||||
]"
|
]"
|
||||||
|
|
@ -678,7 +678,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
||||||
]"
|
]"
|
||||||
|
|
@ -708,7 +708,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) =>
|
(val:string) =>
|
||||||
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 8',
|
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 8',
|
||||||
|
|
@ -726,7 +726,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
||||||
]"
|
]"
|
||||||
|
|
@ -748,7 +748,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
||||||
]"
|
]"
|
||||||
|
|
@ -778,7 +778,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) =>
|
(val:string) =>
|
||||||
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 9',
|
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 9',
|
||||||
|
|
@ -796,7 +796,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
||||||
]"
|
]"
|
||||||
|
|
@ -818,7 +818,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคำตอบ',
|
||||||
]"
|
]"
|
||||||
|
|
@ -848,7 +848,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) =>
|
(val:string) =>
|
||||||
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 10',
|
(val && val.length > 0) || 'กรุณากรอกคำถามข้อที่ 10',
|
||||||
|
|
@ -866,7 +866,7 @@ onMounted(async () => {
|
||||||
autogrow
|
autogrow
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="bg-white"
|
class="inputgreen"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
(val:string) => (val && val.length > 0) || 'กรุณากรอกคะแนน',
|
||||||
]"
|
]"
|
||||||
|
|
@ -307,7 +307,7 @@ onMounted(async () => {
|
||||||
class="q-mr-sm"
|
class="q-mr-sm"
|
||||||
@click="router.go(-1)"
|
@click="router.go(-1)"
|
||||||
/>
|
/>
|
||||||
รายละเอียด Exit interview ของ{{ fullname }}
|
รายละเอียด Exit interview {{ fullname }}
|
||||||
</div>
|
</div>
|
||||||
<CardProfile :data="dataProfile as DataProfile" />
|
<CardProfile :data="dataProfile as DataProfile" />
|
||||||
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, reactive } from "vue";
|
import { ref, onMounted } from "vue";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
import { useRouter, useRoute } from "vue-router";
|
import { useRouter, useRoute } from "vue-router";
|
||||||
import type { QInput, QForm } from "quasar";
|
import type { QInput, QForm } from "quasar";
|
||||||
|
|
@ -125,8 +125,8 @@ async function getData() {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.detailByidDeceased(profileId.value))
|
.get(config.API.detailByidDeceased(profileId.value))
|
||||||
.then((res) => {
|
.then(async (res) => {
|
||||||
const data = res.data.result;
|
const data = await res.data.result;
|
||||||
let list: DataCopyOrder[] = [];
|
let list: DataCopyOrder[] = [];
|
||||||
data.map((r: any) => {
|
data.map((r: any) => {
|
||||||
let selectCopyOrder = [];
|
let selectCopyOrder = [];
|
||||||
|
|
@ -162,7 +162,7 @@ async function getData() {
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(async () => {
|
.finally(() => {
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -178,8 +178,8 @@ async function saveData() {
|
||||||
const dataToSend = { Persons: persons };
|
const dataToSend = { Persons: persons };
|
||||||
await http
|
await http
|
||||||
.put(config.API.detailByidDeceased(profileId.value), dataToSend)
|
.put(config.API.detailByidDeceased(profileId.value), dataToSend)
|
||||||
.then((res) => {
|
.then(async (res) => {
|
||||||
getData();
|
await getData();
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
@ -220,22 +220,21 @@ function clickAdd() {
|
||||||
* ลบข้อมูล
|
* ลบข้อมูล
|
||||||
*/
|
*/
|
||||||
function clickDelete(id: string) {
|
function clickDelete(id: string) {
|
||||||
dialogRemove($q, () => deleteData(id));
|
dialogRemove($q, async () => {
|
||||||
}
|
showLoader();
|
||||||
|
await http
|
||||||
/**ลบข้อมูล */
|
.delete(config.API.detailByidDeceased(id))
|
||||||
async function deleteData(id: string) {
|
.then(async () => {
|
||||||
await http
|
await getData();
|
||||||
.delete(config.API.detailByidDeceased(id))
|
success($q, "ลบข้อมูลสำเร็จ");
|
||||||
.then((res) => {
|
})
|
||||||
success($q, "ลบข้อมูลสำเร็จ");
|
.catch((e) => {
|
||||||
})
|
messageError($q, e);
|
||||||
.catch((e) => {
|
})
|
||||||
messageError($q, e);
|
.finally(async () => {
|
||||||
})
|
hideLoader();
|
||||||
.finally(async () => {
|
});
|
||||||
await getData();
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -269,16 +268,16 @@ async function fetchSaveCopyOrder() {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.put(config.API.notiDeceased(profileId.value), { Persons: list })
|
.put(config.API.notiDeceased(profileId.value), { Persons: list })
|
||||||
.then((res: any) => {
|
.then(async () => {
|
||||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
await getData();
|
||||||
next();
|
next();
|
||||||
|
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hideLoader();
|
hideLoader();
|
||||||
getData();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -323,17 +322,10 @@ onMounted(async () => {
|
||||||
outlined
|
outlined
|
||||||
debounce="300"
|
debounce="300"
|
||||||
placeholder="ค้นหา"
|
placeholder="ค้นหา"
|
||||||
style="max-width: 200px"
|
|
||||||
class="q-ml-sm"
|
class="q-ml-sm"
|
||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-icon v-if="filter == ''" name="search" />
|
<q-icon name="search" />
|
||||||
<q-icon
|
|
||||||
v-if="filter !== ''"
|
|
||||||
name="clear"
|
|
||||||
class="cursor-pointer"
|
|
||||||
@click="resetFilter"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
<!-- แสดงคอลัมน์ใน table -->
|
<!-- แสดงคอลัมน์ใน table -->
|
||||||
|
|
@ -358,7 +350,7 @@ onMounted(async () => {
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
:filter="filter"
|
:filter="filter.trim()"
|
||||||
row-key="idCard"
|
row-key="idCard"
|
||||||
>
|
>
|
||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
|
|
@ -395,7 +387,7 @@ onMounted(async () => {
|
||||||
dense
|
dense
|
||||||
lazy-rules
|
lazy-rules
|
||||||
v-model="props.row.mutiselect"
|
v-model="props.row.mutiselect"
|
||||||
:rules="[(val:any) => !!val || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`,(val:any) => val.length > 0 || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`,(val:string) => val.length > 0 || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`]"
|
||||||
:label="`${'เลือกช่องทางการส่งสำเนา'}`"
|
:label="`${'เลือกช่องทางการส่งสำเนา'}`"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
|
|
@ -167,6 +167,7 @@ function Reset() {
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
if (props.modal === true) {
|
if (props.modal === true) {
|
||||||
selected.value = [];
|
selected.value = [];
|
||||||
|
updateInput("");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -175,89 +176,85 @@ watchEffect(() => {
|
||||||
<q-card style="width: 1200px; max-width: 80vw">
|
<q-card style="width: 1200px; max-width: 80vw">
|
||||||
<DialogHeader tittle="ส่งไปออกคำสั่งให้ออก" :close="closeModal" />
|
<DialogHeader tittle="ส่งไปออกคำสั่งให้ออก" :close="closeModal" />
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-card-section class="q-pt-none">
|
<q-card-section>
|
||||||
<div class="row justify-end">
|
<div class="row col-12 q-col-gutter-sm">
|
||||||
<div class="col-5">
|
<div class="row col-12">
|
||||||
<q-toolbar style="padding: 0">
|
<q-space />
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
outlined
|
outlined
|
||||||
dense
|
|
||||||
debounce="300"
|
|
||||||
:model-value="filterKeyword2"
|
|
||||||
@update:model-value="updateInput"
|
|
||||||
placeholder="ค้นหา"
|
|
||||||
style="width: 850px; max-width: auto"
|
|
||||||
>
|
|
||||||
<template v-slot:append>
|
|
||||||
<q-icon v-if="filterKeyword2 == ''" name="search" />
|
|
||||||
<q-icon
|
|
||||||
v-if="filterKeyword2 !== ''"
|
|
||||||
name="clear"
|
|
||||||
class="cursor-pointer"
|
|
||||||
@click="Reset"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
<q-select
|
|
||||||
v-model="visibleColumns2"
|
|
||||||
multiple
|
|
||||||
outlined
|
|
||||||
dense
|
|
||||||
options-dense
|
|
||||||
:display-value="$q.lang.table.columns"
|
|
||||||
emit-value
|
|
||||||
map-options
|
|
||||||
:options="columns2"
|
|
||||||
option-value="name"
|
|
||||||
|
|
||||||
style="min-width: 140px"
|
|
||||||
class="gt-xs q-ml-sm"
|
|
||||||
/>
|
|
||||||
</q-toolbar>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<d-table
|
|
||||||
:columns="columns2"
|
|
||||||
:rows="rows2"
|
|
||||||
:filter="filterKeyword2"
|
|
||||||
row-key="id"
|
|
||||||
:visible-columns="visibleColumns2"
|
|
||||||
selection="multiple"
|
|
||||||
v-model:selected="selected"
|
|
||||||
>
|
|
||||||
<template v-slot:header-selection="scope">
|
|
||||||
<q-checkbox
|
|
||||||
keep-color
|
|
||||||
color="primary"
|
|
||||||
dense
|
dense
|
||||||
v-model="scope.selected"
|
debounce="300"
|
||||||
|
:model-value="filterKeyword2"
|
||||||
|
@update:model-value="updateInput"
|
||||||
|
placeholder="ค้นหา"
|
||||||
|
>
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-icon name="search" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
<q-select
|
||||||
|
v-model="visibleColumns2"
|
||||||
|
multiple
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
options-dense
|
||||||
|
:display-value="$q.lang.table.columns"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
:options="columns2"
|
||||||
|
option-value="name"
|
||||||
|
style="min-width: 140px"
|
||||||
|
class="gt-xs q-ml-sm"
|
||||||
/>
|
/>
|
||||||
</template>
|
</div>
|
||||||
|
|
||||||
<template v-slot:body="props">
|
<div class="col-12">
|
||||||
<q-tr :props="props" class="cursor-pointer">
|
<d-table
|
||||||
<q-td>
|
:columns="columns2"
|
||||||
|
:rows="rows2"
|
||||||
|
:filter="filterKeyword2?.trim()"
|
||||||
|
row-key="id"
|
||||||
|
:visible-columns="visibleColumns2"
|
||||||
|
selection="multiple"
|
||||||
|
v-model:selected="selected"
|
||||||
|
>
|
||||||
|
<template v-slot:header-selection="scope">
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
keep-color
|
keep-color
|
||||||
color="primary"
|
color="primary"
|
||||||
dense
|
dense
|
||||||
v-model="props.selected"
|
v-model="scope.selected"
|
||||||
/>
|
/>
|
||||||
</q-td>
|
</template>
|
||||||
<q-td v-for="col in props.cols" :key="col.id">
|
|
||||||
<div v-if="col.name === 'no'">
|
|
||||||
{{ props.rowIndex + 1 }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div v-else :class="col.name === 'org' ? 'table_ellipsis' : ''">
|
<template v-slot:body="props">
|
||||||
{{ col.value ? col.value : "-" }}
|
<q-tr :props="props" class="cursor-pointer">
|
||||||
</div>
|
<q-td>
|
||||||
</q-td>
|
<q-checkbox
|
||||||
</q-tr>
|
keep-color
|
||||||
</template>
|
color="primary"
|
||||||
</d-table>
|
dense
|
||||||
|
v-model="props.selected"
|
||||||
|
/>
|
||||||
|
</q-td>
|
||||||
|
<q-td v-for="col in props.cols" :key="col.id">
|
||||||
|
<div v-if="col.name === 'no'">
|
||||||
|
{{ props.rowIndex + 1 }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
v-else
|
||||||
|
:class="col.name === 'org' ? 'table_ellipsis' : ''"
|
||||||
|
>
|
||||||
|
{{ col.value ? col.value : "-" }}
|
||||||
|
</div>
|
||||||
|
</q-td>
|
||||||
|
</q-tr>
|
||||||
|
</template>
|
||||||
|
</d-table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<q-card-actions align="right" class="bg-white text-teal">
|
<q-card-actions align="right" class="bg-white text-teal">
|
||||||
|
|
@ -45,4 +45,10 @@ interface RoundData {
|
||||||
round: string;
|
round: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type { Pagination, RetirementList, PersonData, RoundData };
|
interface DataStatus {
|
||||||
|
name: string;
|
||||||
|
value: string;
|
||||||
|
group: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type { Pagination, RetirementList, PersonData, RoundData, DataStatus };
|
||||||
|
|
|
||||||
|
|
@ -2,46 +2,62 @@
|
||||||
* Router พ้นจากราชการ (Retirement)
|
* Router พ้นจากราชการ (Retirement)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const Main = () => import("@/modules/06_retirement/views/Main.vue");
|
/** ประกาศเกษียณอายุราชการ*/
|
||||||
|
const Main = () => import("@/modules/06_retirement/views/01_retirement.vue");
|
||||||
const Listretirement = () =>
|
const Listretirement = () =>
|
||||||
import("@/modules/06_retirement/components/ListRetirement/TableList.vue");
|
import(
|
||||||
|
"@/modules/06_retirement/components/01_retirement/RetirementDetail.vue"
|
||||||
|
);
|
||||||
const ListretirementDetail = () =>
|
const ListretirementDetail = () =>
|
||||||
import("@/modules/06_retirement/components/ListRetirement/TableList.vue");
|
import(
|
||||||
const deceased = () =>
|
"@/modules/06_retirement/components/01_retirement/RetirementDetail.vue"
|
||||||
import("@/modules/06_retirement/components/Deceased/Deceased.vue");
|
);
|
||||||
const detaildeceased = () =>
|
|
||||||
import("@/modules/06_retirement/components/Deceased/DetailDeceased.vue");
|
|
||||||
const dismissOrder = () =>
|
|
||||||
import("@/modules/06_retirement/components/DismissOrder/DismissOrder.vue");
|
|
||||||
const outDetail = () =>
|
|
||||||
import("@/modules/06_retirement/components/DismissOrder/outRegistry.vue");
|
|
||||||
const outDetailOnly = () =>
|
|
||||||
import("@/modules/06_retirement/components/DismissOrder/outRegistry.vue");
|
|
||||||
const exitInterviewMain = () =>
|
|
||||||
import("@/modules/06_retirement/components/ExitInterview/exitMain.vue");
|
|
||||||
const exitInterviewDetails = () =>
|
|
||||||
import("@/modules/06_retirement/components/ExitInterview/exitRegistry.vue");
|
|
||||||
const exitInterviewDetailsOnly = () =>
|
|
||||||
import("@/modules/06_retirement/components/ExitInterview/exitRegistry.vue");
|
|
||||||
const exitInterviewEditQuestion = () =>
|
|
||||||
import("@/modules/06_retirement/components/ExitInterview/EditQuestion.vue");
|
|
||||||
const detaildeceasedByid = () =>
|
|
||||||
import("@/modules/06_retirement/components/Deceased/DetailByidDeceased.vue");
|
|
||||||
|
|
||||||
/** รายการลาออก */
|
|
||||||
const resign = () =>
|
|
||||||
import("@/modules/06_retirement/components/resign/Main.vue");
|
|
||||||
const resign_EMP = () =>
|
|
||||||
import("@/modules/06_retirement/components/resignEMP/Main.vue");
|
|
||||||
|
|
||||||
|
/** รายการลาออก*/
|
||||||
|
const resign = () => import("@/modules//06_retirement/views/02_resign.vue");
|
||||||
const resignByid = () =>
|
const resignByid = () =>
|
||||||
import("@/modules/06_retirement/components/resign/ResignByid.vue");
|
import("@/modules/06_retirement/components/02_resign/ResignByid.vue");
|
||||||
const resignByidEMP = () =>
|
|
||||||
import("@/modules/06_retirement/components/resignEMP/ResignByid.vue");
|
|
||||||
const resignReject = () =>
|
const resignReject = () =>
|
||||||
import("@/modules/06_retirement/components/resign/ResignReject.vue");
|
import("@/modules/06_retirement/components/02_resign/ResignReject.vue");
|
||||||
|
|
||||||
|
/** รายการลาออกลูกจ้าง*/
|
||||||
|
const resign_EMP = () =>
|
||||||
|
import("@/modules/06_retirement/views/03_resignEmp.vue");
|
||||||
|
const resignByidEMP = () =>
|
||||||
|
import("@/modules/06_retirement/components/03_resignEmp/ResignByid.vue");
|
||||||
const resignRejectEMP = () =>
|
const resignRejectEMP = () =>
|
||||||
import("@/modules/06_retirement/components/resignEMP/ResignReject.vue");
|
import("@/modules/06_retirement/components/03_resignEmp/ResignReject.vue");
|
||||||
|
|
||||||
|
/** รายการ Exit interview*/
|
||||||
|
const exitInterviewMain = () =>
|
||||||
|
import("@/modules/06_retirement/views/04_exitInterview.vue");
|
||||||
|
const exitInterviewDetails = () =>
|
||||||
|
import(
|
||||||
|
"@/modules/06_retirement/components/04_exitInterview/ExitInterviewDetail.vue"
|
||||||
|
);
|
||||||
|
const exitInterviewDetailsOnly = () =>
|
||||||
|
import(
|
||||||
|
"@/modules/06_retirement/components/04_exitInterview/ExitInterviewDetail.vue"
|
||||||
|
);
|
||||||
|
const exitInterviewEditQuestion = () =>
|
||||||
|
import(
|
||||||
|
"@/modules/06_retirement/components/04_exitInterview/EditQuestion.vue"
|
||||||
|
);
|
||||||
|
|
||||||
|
/** รายการบันทึกเวียนแจ้งการถึงแก่กรรม*/
|
||||||
|
const deceased = () => import("@/modules/06_retirement/views/05_deceased.vue");
|
||||||
|
const detaildeceased = () =>
|
||||||
|
import("@/modules/06_retirement/components/05_deceased/DetailDeceased.vue");
|
||||||
|
const detaildeceasedByid = () =>
|
||||||
|
import("@/modules/06_retirement/components/05_deceased/SendCircularPage.vue");
|
||||||
|
|
||||||
|
/** รายการให้ออก*/
|
||||||
|
const dismissOrder = () =>
|
||||||
|
import("@/modules/06_retirement/views/06_dismissOrder.vue");
|
||||||
|
const outDetail = () =>
|
||||||
|
import("@/modules/06_retirement/components/06_dismissOrder/Detail.vue");
|
||||||
|
const outDetailOnly = () =>
|
||||||
|
import("@/modules/06_retirement/components/06_dismissOrder/Detail.vue");
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { ref, computed, reactive, watch } from "vue";
|
import { ref, computed, reactive, watch } from "vue";
|
||||||
|
|
||||||
|
import type { DataStatus } from "@/modules/06_retirement/interface/index/Main";
|
||||||
|
|
||||||
export const useDataStore = defineStore("resign", () => {
|
export const useDataStore = defineStore("resign", () => {
|
||||||
const mainTabs = ref<string>("1");
|
const mainTabs = ref<string>("1");
|
||||||
const mainTabsEMP = ref<string>("1");
|
const mainTabsEMP = ref<string>("1");
|
||||||
const baseOptionStatus = ref<any[]>([
|
const baseOptionStatus = ref<DataStatus[]>([
|
||||||
{
|
{
|
||||||
name: "รอดำเนินการ",
|
name: "รอดำเนินการ",
|
||||||
value: "WAITTING",
|
value: "WAITTING",
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref, useAttrs, reactive, watch } from "vue";
|
import { onMounted, ref, watch } from "vue";
|
||||||
import type { QTableProps } from "quasar";
|
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
import { useRouter } from "vue-router";
|
|
||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
|
|
||||||
import http from "@/plugins/http";
|
import { useRouter } from "vue-router";
|
||||||
import config from "@/app.config";
|
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useDataStoreRetirement } from "@/modules/06_retirement/store/storeRetirement";
|
import { useDataStoreRetirement } from "@/modules/06_retirement/store/storeRetirement";
|
||||||
import { checkPermission } from "@/utils/permissions";
|
import { checkPermission } from "@/utils/permissions";
|
||||||
|
import http from "@/plugins/http";
|
||||||
|
import config from "@/app.config";
|
||||||
|
|
||||||
|
import type { QTableProps } from "quasar";
|
||||||
import type { resMain } from "@/modules/06_retirement/interface/response/Main";
|
import type { resMain } from "@/modules/06_retirement/interface/response/Main";
|
||||||
|
|
||||||
import popupAdd from "@/modules/06_retirement/components/ListRetirement/popupAdd.vue";
|
import popupAdd from "@/modules/06_retirement/components/01_retirement/DialogAddListRetirement.vue";
|
||||||
|
|
||||||
const $q = useQuasar(); //ใช้ noti quasar
|
const $q = useQuasar(); //ใช้ noti quasar
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
@ -29,8 +29,6 @@ const yearOptionsFilter = ref<any>({
|
||||||
});
|
});
|
||||||
const actionOption = ref<resMain[]>([]);
|
const actionOption = ref<resMain[]>([]);
|
||||||
|
|
||||||
const attrs = ref<any>(useAttrs());
|
|
||||||
const paging = ref<boolean>(true);
|
|
||||||
const pagination = ref({
|
const pagination = ref({
|
||||||
sortBy: "",
|
sortBy: "",
|
||||||
descending: false,
|
descending: false,
|
||||||
|
|
@ -95,8 +93,6 @@ const currentYear = new Date().getFullYear();
|
||||||
const rows = ref<resMain[]>([]);
|
const rows = ref<resMain[]>([]);
|
||||||
const yearOptions = ref<any>([{ id: "", year: "ทั้งหมด" }]);
|
const yearOptions = ref<any>([{ id: "", year: "ทั้งหมด" }]);
|
||||||
|
|
||||||
// หาปีปัจจุบัน
|
|
||||||
|
|
||||||
// ประกาศเกษียณอายุราชการ
|
// ประกาศเกษียณอายุราชการ
|
||||||
async function fetchRetirement(type: string, year: any) {
|
async function fetchRetirement(type: string, year: any) {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
@ -251,14 +247,14 @@ onMounted(async () => {
|
||||||
</q-tabs>
|
</q-tabs>
|
||||||
</div>
|
</div>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-tab-panels v-model="tab" animated
|
<q-tab-panels v-model="tab" animated>
|
||||||
><q-tab-panel
|
<q-tab-panel
|
||||||
v-for="item in useStoreRetire.taboption"
|
v-for="item in useStoreRetire.taboption"
|
||||||
:key="item.name"
|
:key="item.name"
|
||||||
:name="item.name"
|
:name="item.name"
|
||||||
class="q-pa-none"
|
class="q-pa-none"
|
||||||
>
|
>
|
||||||
<div class="col-12 row q-pa-md">
|
<div class="col-12 row q-pa-md q-col-gutter-sm">
|
||||||
<div class="row col-12">
|
<div class="row col-12">
|
||||||
<div class="row col-12 q-col-gutter-sm">
|
<div class="row col-12 q-col-gutter-sm">
|
||||||
<q-select
|
<q-select
|
||||||
|
|
@ -304,7 +300,6 @@ onMounted(async () => {
|
||||||
<q-space />
|
<q-space />
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
|
||||||
standout
|
standout
|
||||||
dense
|
dense
|
||||||
v-model="filterKeyword"
|
v-model="filterKeyword"
|
||||||
|
|
@ -314,13 +309,7 @@ onMounted(async () => {
|
||||||
placeholder="ค้นหา"
|
placeholder="ค้นหา"
|
||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-icon v-if="filterKeyword == ''" name="search" />
|
<q-icon name="search" />
|
||||||
<q-icon
|
|
||||||
v-if="filterKeyword !== ''"
|
|
||||||
name="clear"
|
|
||||||
class="cursor-pointer"
|
|
||||||
@click="resetFilter"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
|
|
@ -336,100 +325,89 @@ onMounted(async () => {
|
||||||
:options="columns"
|
:options="columns"
|
||||||
option-value="name"
|
option-value="name"
|
||||||
style="min-width: 140px"
|
style="min-width: 140px"
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 q-pt-sm">
|
</div>
|
||||||
<q-table
|
|
||||||
ref="table"
|
<div class="col-12">
|
||||||
:columns="columns"
|
<d-table
|
||||||
:rows="rows"
|
ref="table"
|
||||||
:filter="filterKeyword"
|
:columns="columns"
|
||||||
row-key="name"
|
:rows="rows"
|
||||||
flat
|
:filter="filterKeyword.trim()"
|
||||||
bordered
|
row-key="name"
|
||||||
:paging="true"
|
flat
|
||||||
dense
|
bordered
|
||||||
class="custom-header-table"
|
:paging="true"
|
||||||
v-bind="attrs"
|
dense
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
>
|
>
|
||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
<q-th auto-width> </q-th>
|
<q-th auto-width> </q-th>
|
||||||
<q-th
|
<q-th
|
||||||
v-for="col in props.cols"
|
v-for="col in props.cols"
|
||||||
:key="col.name"
|
:key="col.name"
|
||||||
:props="props"
|
:props="props"
|
||||||
|
>
|
||||||
|
<span class="text-weight-medium">{{ col.label }}</span>
|
||||||
|
</q-th>
|
||||||
|
</q-tr>
|
||||||
|
</template>
|
||||||
|
<template v-slot:body="props">
|
||||||
|
<q-tr :props="props">
|
||||||
|
<q-td auto-width>
|
||||||
|
<q-btn
|
||||||
|
v-if="checkPermission($route)?.attrIsGet"
|
||||||
|
flat
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
icon="mdi-eye"
|
||||||
|
color="info"
|
||||||
|
@click="nextPageDetail(props.row)"
|
||||||
>
|
>
|
||||||
<span class="text-weight-medium">{{ col.label }}</span>
|
<q-tooltip>รายละเอียด</q-tooltip>
|
||||||
</q-th>
|
</q-btn>
|
||||||
</q-tr>
|
|
||||||
</template>
|
<q-btn
|
||||||
<template v-slot:body="props">
|
v-if="
|
||||||
<q-tr :props="props">
|
checkPermission($route)?.attrIsGet &&
|
||||||
<q-td auto-width>
|
checkPermission($route)?.attrIsUpdate
|
||||||
<q-btn
|
"
|
||||||
v-if="checkPermission($route)?.attrIsGet"
|
flat
|
||||||
flat
|
round
|
||||||
round
|
dense
|
||||||
dense
|
icon="edit"
|
||||||
icon="mdi-eye"
|
:disable="props.row.document"
|
||||||
color="info"
|
:color="!props.row.document ? 'edit' : 'grey-5'"
|
||||||
@click="nextPageDetail(props.row)"
|
@click="nextPage(props.row)"
|
||||||
>
|
>
|
||||||
<q-tooltip>รายละเอียด</q-tooltip>
|
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-btn
|
</q-td>
|
||||||
v-if="
|
<q-td key="no" :props="props">
|
||||||
checkPermission($route)?.attrIsGet &&
|
{{ props.rowIndex + 1 }}
|
||||||
checkPermission($route)?.attrIsUpdate &&
|
</q-td>
|
||||||
!props.row.document
|
<q-td key="signDate" :props="props">
|
||||||
"
|
{{ props.row.signDate ? props.row.signDate : "-" }}
|
||||||
flat
|
</q-td>
|
||||||
round
|
<q-td key="Date" :props="props">
|
||||||
dense
|
{{ props.row.Date }}
|
||||||
icon="edit"
|
</q-td>
|
||||||
color="edit"
|
<q-td key="retireNumber" :props="props">
|
||||||
@click="nextPage(props.row)"
|
{{ props.row.total }}
|
||||||
>
|
</q-td>
|
||||||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
<q-td key="typeReport" :props="props">
|
||||||
</q-btn>
|
{{ props.row.typeReport }}
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td key="no" :props="props">
|
</q-tr>
|
||||||
{{ props.rowIndex + 1 }}
|
</template>
|
||||||
</q-td>
|
</d-table>
|
||||||
<q-td key="signDate" :props="props">
|
</div>
|
||||||
{{ props.row.signDate ? props.row.signDate : "-" }}
|
</div>
|
||||||
</q-td>
|
</q-tab-panel>
|
||||||
<q-td key="Date" :props="props">
|
</q-tab-panels>
|
||||||
{{ props.row.Date }}
|
|
||||||
</q-td>
|
|
||||||
<q-td key="retireNumber" :props="props">
|
|
||||||
{{ props.row.total }}
|
|
||||||
</q-td>
|
|
||||||
<q-td key="typeReport" :props="props">
|
|
||||||
{{ props.row.typeReport }}
|
|
||||||
</q-td>
|
|
||||||
</q-tr>
|
|
||||||
</template>
|
|
||||||
<template v-slot:pagination="scope">
|
|
||||||
<q-pagination
|
|
||||||
v-model="pagination.page"
|
|
||||||
active-color="primary"
|
|
||||||
color="primary"
|
|
||||||
:max="scope.pagesNumber"
|
|
||||||
:max-pages="5"
|
|
||||||
size="sm"
|
|
||||||
boundary-links
|
|
||||||
direction-links
|
|
||||||
></q-pagination>
|
|
||||||
</template>
|
|
||||||
</q-table>
|
|
||||||
</div>
|
|
||||||
</div></div></q-tab-panel
|
|
||||||
></q-tab-panels>
|
|
||||||
</q-card>
|
</q-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -452,35 +430,4 @@ onMounted(async () => {
|
||||||
.icon-color {
|
.icon-color {
|
||||||
color: #4154b3;
|
color: #4154b3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-header-table {
|
|
||||||
max-height: 64vh;
|
|
||||||
|
|
||||||
.q-table tr:nth-child(odd) td {
|
|
||||||
background: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table tr:nth-child(even) td {
|
|
||||||
background: #f8f8f8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table thead tr {
|
|
||||||
background: #ecebeb;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table thead tr th {
|
|
||||||
position: sticky;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* this will be the loading indicator */
|
|
||||||
.q-table thead tr:last-child th {
|
|
||||||
/* height of all previous header rows */
|
|
||||||
top: 48px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table thead tr:first-child th {
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useDataStore } from "@/modules/06_retirement/store/resignMain";
|
import { useDataStore } from "@/modules/06_retirement/store/resignMain";
|
||||||
|
|
||||||
import Table from "@/modules/06_retirement/components/resign/Table.vue";
|
import Table from "@/modules/06_retirement/components/02_resign/Table.vue";
|
||||||
|
|
||||||
const stroe = useDataStore();
|
const stroe = useDataStore();
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useDataStore } from "@/modules/06_retirement/store/resignMain";
|
import { useDataStore } from "@/modules/06_retirement/store/resignMain";
|
||||||
|
|
||||||
import Table from "@/modules/06_retirement/components/resignEMP/Table.vue";
|
import Table from "@/modules/06_retirement/components/03_resignEmp/Table.vue";
|
||||||
|
|
||||||
const stroe = useDataStore();
|
const stroe = useDataStore();
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -171,21 +171,23 @@ async function fecthlist() {
|
||||||
fullname: r.fullname ?? "",
|
fullname: r.fullname ?? "",
|
||||||
createdAt: new Date(r.createdAt),
|
createdAt: new Date(r.createdAt),
|
||||||
futureWork: !!r.futureWork,
|
futureWork: !!r.futureWork,
|
||||||
futureWorkReason: r.futureWorkReason ?? "",
|
futureWorkReason: r.futureWorkReason ?? "-",
|
||||||
havejob: !!r.havejob,
|
havejob: !!r.havejob,
|
||||||
havejobReason: r.havejobReason ?? "",
|
havejobReason: r.havejobReason ?? "-",
|
||||||
id: r.id ?? "",
|
id: r.id ?? "",
|
||||||
lastUpdatedAt: new Date(r.lastUpdatedAt),
|
lastUpdatedAt: new Date(r.lastUpdatedAt),
|
||||||
notExitFactor: r.notExitFactor ?? "",
|
notExitFactor: r.notExitFactor ?? "-",
|
||||||
realReason: r.realReason ?? "",
|
realReason: r.realReason ? r.realReason : "-",
|
||||||
suggestFriends: !!r.suggestFriends,
|
suggestFriends: !!r.suggestFriends,
|
||||||
suggestFriendsReason: r.suggestFriendsReason ?? "",
|
suggestFriendsReason: r.suggestFriendsReason ?? "-",
|
||||||
suggestion: r.suggestion ?? "",
|
suggestion: r.suggestion ?? "-",
|
||||||
status: r.status ?? "",
|
status: r.status ?? "-",
|
||||||
appointDate: date2Thai(r.appointDate),
|
appointDate: date2Thai(r.appointDate),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
rows.value = list;
|
rows.value = list;
|
||||||
|
console.log(rows.value);
|
||||||
|
|
||||||
filters.value = list;
|
filters.value = list;
|
||||||
})
|
})
|
||||||
.catch((e: any) => {
|
.catch((e: any) => {
|
||||||
|
|
@ -292,8 +294,8 @@ onMounted(async () => {
|
||||||
<q-card flat bordered class="col-12 q-mt-sm">
|
<q-card flat bordered class="col-12 q-mt-sm">
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<div class="col-12 row q-pa-md">
|
<div class="col-12 row q-pa-md">
|
||||||
<div class="row col-12">
|
<div class="row col-12 q-col-gutter-sm">
|
||||||
<div class="row col-12 q-col-gutter-sm">
|
<div class="row col-12">
|
||||||
<div>
|
<div>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="
|
v-if="
|
||||||
|
|
@ -308,47 +310,41 @@ onMounted(async () => {
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-input
|
<div class="row q-col-gutter-sm">
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
<q-input
|
||||||
standout
|
standout
|
||||||
dense
|
dense
|
||||||
v-model="filterKeyword"
|
v-model="filterKeyword"
|
||||||
ref="filterRef"
|
ref="filterRef"
|
||||||
outlined
|
outlined
|
||||||
debounce="300"
|
debounce="300"
|
||||||
placeholder="ค้นหา"
|
placeholder="ค้นหา"
|
||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-icon v-if="filterKeyword == ''" name="search" />
|
<q-icon name="search" />
|
||||||
<q-icon
|
</template>
|
||||||
v-if="filterKeyword !== ''"
|
</q-input>
|
||||||
name="clear"
|
<q-select
|
||||||
class="cursor-pointer"
|
v-model="visibleColumns"
|
||||||
@click="resetFilter"
|
multiple
|
||||||
/>
|
outlined
|
||||||
</template>
|
dense
|
||||||
</q-input>
|
options-dense
|
||||||
<q-select
|
:display-value="$q.lang.table.columns"
|
||||||
v-model="visibleColumns"
|
emit-value
|
||||||
multiple
|
map-options
|
||||||
outlined
|
:options="columns"
|
||||||
dense
|
option-value="name"
|
||||||
options-dense
|
style="min-width: 140px"
|
||||||
:display-value="$q.lang.table.columns"
|
/>
|
||||||
emit-value
|
</div>
|
||||||
map-options
|
|
||||||
:options="columns"
|
|
||||||
option-value="name"
|
|
||||||
|
|
||||||
style="min-width: 140px"
|
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 q-pt-sm">
|
|
||||||
|
<div class="col-12">
|
||||||
<d-table
|
<d-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:filter="filterKeyword"
|
:filter="filterKeyword.trim()"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
>
|
>
|
||||||
|
|
@ -396,14 +392,15 @@ onMounted(async () => {
|
||||||
>
|
>
|
||||||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="
|
v-if="
|
||||||
!props.row.appointDate &&
|
|
||||||
checkPermission($route)?.attrIsGet &&
|
checkPermission($route)?.attrIsGet &&
|
||||||
checkPermission($route)?.attrIsUpdate
|
checkPermission($route)?.attrIsUpdate
|
||||||
"
|
"
|
||||||
icon="mdi-calendar"
|
icon="mdi-calendar"
|
||||||
color="blue-7"
|
:color="!props.row.appointDate ? 'blue-7' : 'grey-5'"
|
||||||
|
:disable="props.row.appointDate !== ''"
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
dense
|
dense
|
||||||
|
|
@ -486,6 +483,7 @@ onMounted(async () => {
|
||||||
<q-input
|
<q-input
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
|
class="inputgreen"
|
||||||
:model-value="
|
:model-value="
|
||||||
dateBreak !== null ? date2Thai(dateBreak) : null
|
dateBreak !== null ? date2Thai(dateBreak) : null
|
||||||
"
|
"
|
||||||
|
|
@ -129,11 +129,6 @@ async function fectListDecased() {
|
||||||
|
|
||||||
//ค้นหา คอลัมน์ คอลัมน์ที่แสดง
|
//ค้นหา คอลัมน์ คอลัมน์ที่แสดง
|
||||||
const filterKeyword = ref<string>("");
|
const filterKeyword = ref<string>("");
|
||||||
const filterRef = ref<any>(null);
|
|
||||||
function resetFilter() {
|
|
||||||
filterKeyword.value = "";
|
|
||||||
filterRef.value.focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Setting Pagination */
|
/** Setting Pagination */
|
||||||
function nextPage(id: string) {
|
function nextPage(id: string) {
|
||||||
|
|
@ -152,58 +147,50 @@ onMounted(() => {
|
||||||
<q-card flat bordered class="col-12 q-mt-sm">
|
<q-card flat bordered class="col-12 q-mt-sm">
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<div class="col-12 row q-pa-md">
|
<div class="col-12 row q-pa-md">
|
||||||
<div class="row col-12">
|
<div class="row col-12 q-col-gutter-sm">
|
||||||
<div class="row col-12 q-col-gutter-sm">
|
<div class="row col-12">
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-input
|
<div class="row q-col-gutter-sm">
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
<q-input
|
||||||
standout
|
standout
|
||||||
dense
|
dense
|
||||||
v-model="filterKeyword"
|
v-model="filterKeyword"
|
||||||
ref="filterRef"
|
ref="filterRef"
|
||||||
outlined
|
outlined
|
||||||
debounce="300"
|
debounce="300"
|
||||||
placeholder="ค้นหา"
|
placeholder="ค้นหา"
|
||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-icon v-if="filterKeyword == ''" name="search" />
|
<q-icon name="search" />
|
||||||
<q-icon
|
</template>
|
||||||
v-if="filterKeyword !== ''"
|
</q-input>
|
||||||
name="clear"
|
|
||||||
class="cursor-pointer"
|
|
||||||
@click="resetFilter"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
|
|
||||||
<q-select
|
<q-select
|
||||||
v-model="visibleColumns"
|
v-model="visibleColumns"
|
||||||
multiple
|
multiple
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
options-dense
|
options-dense
|
||||||
:display-value="$q.lang.table.columns"
|
:display-value="$q.lang.table.columns"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
:options="columns"
|
:options="columns"
|
||||||
option-value="name"
|
option-value="name"
|
||||||
|
style="min-width: 140px"
|
||||||
style="min-width: 140px"
|
/>
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
</div>
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 q-pt-sm">
|
<div class="col-12">
|
||||||
<d-table
|
<d-table
|
||||||
ref="table"
|
ref="table"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:filter="filterKeyword"
|
:filter="filterKeyword.trim()"
|
||||||
row-key="fullname"
|
row-key="fullname"
|
||||||
flat
|
flat
|
||||||
bordered
|
bordered
|
||||||
:paging="true"
|
:paging="true"
|
||||||
dense
|
dense
|
||||||
class="custom-header-table"
|
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
>
|
>
|
||||||
|
|
@ -250,35 +237,4 @@ onMounted(() => {
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
</template>
|
</template>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss"></style>
|
||||||
.custom-header-table {
|
|
||||||
max-height: 64vh;
|
|
||||||
|
|
||||||
.q-table tr:nth-child(odd) td {
|
|
||||||
background: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table tr:nth-child(even) td {
|
|
||||||
background: #f8f8f8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table thead tr {
|
|
||||||
background: #ecebeb;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table thead tr th {
|
|
||||||
position: sticky;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* this will be the loading indicator */
|
|
||||||
.q-table thead tr:last-child th {
|
|
||||||
/* height of all previous header rows */
|
|
||||||
top: 48px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table thead tr:first-child th {
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
@ -12,7 +12,7 @@ import { useTransferDataStore } from "@/modules/05_placement/store";
|
||||||
|
|
||||||
import type { ResponseData } from "@/modules/06_retirement/interface/response/out";
|
import type { ResponseData } from "@/modules/06_retirement/interface/response/out";
|
||||||
|
|
||||||
import DialogSendToCommand from "@/modules/06_retirement/components/DismissOrder/DialogSendToCommand.vue";
|
import DialogSendToCommand from "@/modules/06_retirement/components/06_dismissOrder/DialogSendToCommand.vue";
|
||||||
|
|
||||||
/** use */
|
/** use */
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
|
|
@ -25,7 +25,8 @@ const {
|
||||||
showLoader,
|
showLoader,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
success,
|
success,
|
||||||
dialogMessage,
|
|
||||||
|
dialogRemove,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
const { statusText } = transferStore;
|
const { statusText } = transferStore;
|
||||||
const modal = ref<boolean>(false);
|
const modal = ref<boolean>(false);
|
||||||
|
|
@ -165,39 +166,29 @@ async function getData() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function clickDelete(id: string) {
|
async function clickDelete(id: string) {
|
||||||
dialogMessage(
|
dialogRemove($q, async () => {
|
||||||
$q,
|
showLoader();
|
||||||
`ลบข้อมูล`,
|
await http
|
||||||
`ต้องการทำการลบข้อมูลนี้ใช่หรือไม่?`,
|
.delete(config.API.outByid(id))
|
||||||
"delete",
|
.then(async () => {
|
||||||
"ยืนยัน",
|
await getData();
|
||||||
"red",
|
success($q, "ลบข้อมูลสำเร็จ");
|
||||||
async () => await deleteData(id),
|
})
|
||||||
async () => await getData()
|
.catch((e) => {
|
||||||
);
|
messageError($q, e);
|
||||||
|
})
|
||||||
|
.finally(async () => {
|
||||||
|
hideLoader();
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function deleteData(id: string) {
|
function openModal() {
|
||||||
await http
|
modal.value = true;
|
||||||
.delete(config.API.outByid(id))
|
|
||||||
.then(() => {
|
|
||||||
success($q, "ลบข้อมูลสำเร็จ");
|
|
||||||
})
|
|
||||||
.catch((e) => {
|
|
||||||
messageError($q, e);
|
|
||||||
})
|
|
||||||
.finally(async () => {
|
|
||||||
await getData();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const openModal = () => (modal.value = true);
|
function closeModal() {
|
||||||
const closeModal = () => (modal.value = false);
|
modal.value = false;
|
||||||
|
|
||||||
function resetFilter() {
|
|
||||||
filterKeyword.value = "";
|
|
||||||
filterKeyword2.value = "";
|
|
||||||
filterRef.value.focus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
|
@ -225,48 +216,42 @@ onMounted(async () => {
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-input
|
<div class="row q-col-gutter-sm">
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
<q-input
|
||||||
standout
|
standout
|
||||||
dense
|
dense
|
||||||
v-model="filterKeyword"
|
v-model="filterKeyword"
|
||||||
ref="filterRef"
|
ref="filterRef"
|
||||||
outlined
|
outlined
|
||||||
debounce="300"
|
debounce="300"
|
||||||
placeholder="ค้นหา"
|
placeholder="ค้นหา"
|
||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-icon v-if="filterKeyword == ''" name="search" />
|
<q-icon name="search" />
|
||||||
<q-icon
|
</template>
|
||||||
v-if="filterKeyword !== ''"
|
</q-input>
|
||||||
name="clear"
|
|
||||||
class="cursor-pointer"
|
|
||||||
@click="resetFilter"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
|
|
||||||
<q-select
|
<q-select
|
||||||
v-model="visibleColumns"
|
v-model="visibleColumns"
|
||||||
multiple
|
multiple
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
options-dense
|
options-dense
|
||||||
:display-value="$q.lang.table.columns"
|
:display-value="$q.lang.table.columns"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
:options="columns"
|
:options="columns"
|
||||||
option-value="name"
|
option-value="name"
|
||||||
style="min-width: 140px"
|
style="min-width: 140px"
|
||||||
class="col-xs-12 col-sm-3 col-md-2 q-ml-sm"
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 q-pt-sm">
|
<div class="col-12 q-pt-sm">
|
||||||
<d-table
|
<d-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:filter="filterKeyword"
|
:filter="filterKeyword.trim()"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
|
|
@ -342,7 +327,7 @@ onMounted(async () => {
|
||||||
v-else
|
v-else
|
||||||
:class="
|
:class="
|
||||||
col.name === 'organizationPositionOld'
|
col.name === 'organizationPositionOld'
|
||||||
? 'table_ellipsis'
|
? 'table_ellipsis2'
|
||||||
: ''
|
: ''
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue