hrms-user/src/modules/10_registry/03_Salary/01_Salary.vue

800 lines
22 KiB
Vue
Raw Normal View History

<script setup lang="ts">
2025-03-19 17:30:44 +07:00
import { useQuasar, type QTableColumn } from "quasar";
import { ref, onMounted, computed } from "vue";
import http from "@/plugins/http";
import config from "@/app.config";
2024-09-10 15:10:18 +07:00
import { useCounterMixin } from "@/stores/mixin";
import { useDataStore } from "@/stores/data";
2024-11-06 16:47:02 +07:00
2024-09-10 15:10:18 +07:00
import type { SalaryFormType } from "@/modules/10_registry/interface/index/Main";
//history dialog
import DialogHistory from "@/modules/10_registry/Dialog/DialogHistory.vue";
2024-11-07 14:51:21 +07:00
const link = ref<string>("");
const $q = useQuasar();
2024-11-06 16:47:02 +07:00
const dataPerson = useDataStore();
const mixin = useCounterMixin();
2025-03-19 17:30:44 +07:00
const {
showLoader,
hideLoader,
messageError,
date2Thai,
onSearchDataTable,
findOrgName,
} = mixin;
2024-09-10 15:10:18 +07:00
const idByRow = ref<string>("");
const rows = ref<SalaryFormType[]>([]);
2024-12-11 13:46:33 +07:00
const rowsData = ref<SalaryFormType[]>([]);
2024-09-10 15:10:18 +07:00
const filter = ref<string>("");
const rowsHistory = ref<SalaryFormType[]>([]);
2024-12-11 13:46:33 +07:00
const rowsHistoryData = ref<SalaryFormType[]>([]);
2024-09-10 15:10:18 +07:00
const mode = ref<boolean>($q.screen.gt.xs);
const checkType = ref<boolean>(
2024-11-06 16:47:02 +07:00
dataPerson.officerType == "OFFICER" ? true : false
);
const modalHistory = ref<boolean>(false);
/** ตัวแปรข้อมูล */
2025-03-19 17:30:44 +07:00
const baseColumns = ref<QTableColumn[]>([
{
name: "commandDateAffect",
align: "left",
2025-03-19 17:30:44 +07:00
label: "วันที่คำสั่งมีผล",
sortable: true,
field: "commandDateAffect",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => date2Thai(v),
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "commandDateSign",
align: "left",
2025-03-19 17:30:44 +07:00
label: "วันที่ลงนาม",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "commandDateSign",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
format: (v) => date2Thai(v),
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "posNo",
align: "left",
2025-03-19 17:30:44 +07:00
label: link.value === "-employee" ? "ตำแหน่งเลขที่" : "เลขที่ตำแหน่ง",
sortable: true,
field: "posNo",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return row.posNoAbb && row.posNo
? `${row.posNoAbb}${row.posNo}`
: row.posNo
? row.posNo
: "-";
},
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "positionName",
align: "left",
2025-03-19 17:30:44 +07:00
label: link.value === "-employee" ? "ตำแหน่ง" : "ตำแหน่งในสายงาน",
sortable: true,
field: "positionName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "positionType",
align: "left",
2025-03-19 17:30:44 +07:00
label: link.value === "-employee" ? "กลุ่มงาน" : "ตำแหน่งประเภท",
sortable: true,
field: "positionType",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "positionLevel",
align: "left",
2025-03-19 17:30:44 +07:00
label: link.value === "-employee" ? "ระดับชั้นงาน" : "ระดับ",
sortable: true,
field: "positionLevel",
format(val, row) {
return `${
row.positionLevel
? row.positionLevel
: row.positionCee
? row.positionCee
: "-"
}`;
},
2025-03-19 17:30:44 +07:00
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "positionExecutive",
align: "left",
2025-03-19 17:30:44 +07:00
label: "ตำแหน่งทางการบริหาร",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "positionExecutive",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "commandNo",
align: "left",
label: "เลขที่คำสั่ง",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "commandNo",
format(val, row) {
return row.commandNo && row.commandYear
? `${row.commandNo}/${Number(row.commandYear) + 543}`
: "";
},
2025-03-19 17:30:44 +07:00
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "commandCode",
align: "left",
label: "ประเภทคำสั่ง",
sortable: true,
field: "commandCode",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "organization",
align: "left",
label: "สังกัด",
sortable: true,
field: "organization",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return findOrgName({
root: row.orgRoot,
child1: row.orgChild1,
child2: row.orgChild2,
child3: row.orgChild3,
child4: row.orgChild4,
});
},
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "amount",
align: "left",
label: link.value === "-employee" ? "ค่าจ้าง" : "เงินเดือน",
sortable: true,
field: "amount",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(v, row) {
return row.amount
? `${row.amount.toLocaleString()}${
row.amountSpecial !== 0 && row.amountSpecial
? ` (${row.amountSpecial.toLocaleString()})`
: ""
}`
: "-";
},
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "mouthSalaryAmount",
align: "left",
label: "เงินค่าตอบแทนรายเดือน",
sortable: true,
field: "mouthSalaryAmount",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => Number(v).toLocaleString(),
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "positionSalaryAmount",
align: "left",
label: "เงินประจำตำแหน่ง",
sortable: true,
field: "positionSalaryAmount",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => Number(v).toLocaleString(),
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
2025-03-19 17:30:44 +07:00
{
name: "remark",
align: "left",
label: "หมายเหตุ",
sortable: true,
field: "remark",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "lastUpdateFullName",
align: "left",
label: "ผู้ดำเนินการ",
sortable: true,
field: "lastUpdateFullName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "lastUpdatedAt",
align: "left",
label: "วันที่แก้ไข",
sortable: true,
field: "lastUpdatedAt",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => date2Thai(v, false, true),
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
]);
2025-03-19 17:30:44 +07:00
const visibleColumns = ref<string[]>([
"commandDateAffect",
2025-03-19 17:30:44 +07:00
"posNo",
"positionName",
"positionType",
"positionLevel",
"positionExecutive",
"amount",
"positionSalaryAmount",
"mouthSalaryAmount",
2025-03-19 17:30:44 +07:00
"commandNo",
"commandCode",
"commandDateSign",
"organization",
"remark",
"lastUpdateFullName",
"lastUpdatedAt",
]);
const columns = computed(() => {
if (link.value === "-employee") {
if (baseColumns.value) {
return baseColumns.value.filter(
(column) =>
column.name !== "positionSalaryAmount" &&
column.name !== "mouthSalaryAmount"
);
}
}
return baseColumns.value;
});
const visibleColumnsHistory = ref<string[]>([
"commandDateAffect",
"posNo",
2025-03-19 17:30:44 +07:00
"positionName",
"positionType",
"positionLevel",
"positionExecutive",
2025-03-19 17:30:44 +07:00
"amount",
"positionSalaryAmount",
"mouthSalaryAmount",
"commandNo",
"commandCode",
"commandDateSign",
"organization",
"remark",
"lastUpdateFullName",
"lastUpdatedAt",
]);
const columnsHistory = computed(() => {
2025-03-19 17:30:44 +07:00
if (link.value === "-employee") {
if (baseColumnsHistory.value) {
return baseColumnsHistory.value.filter(
2025-03-19 17:30:44 +07:00
(column: QTableColumn) =>
column.name !== "positionSalaryAmount" &&
column.name !== "mouthSalaryAmount"
);
}
}
return baseColumns.value;
});
2025-03-19 17:30:44 +07:00
const baseColumnsHistory = ref<QTableColumn[]>([
{
name: "commandDateAffect",
align: "left",
2025-03-19 17:30:44 +07:00
label: "วันที่คำสั่งมีผล",
sortable: true,
field: "commandDateAffect",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => date2Thai(v),
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "commandDateSign",
align: "left",
2025-03-19 17:30:44 +07:00
label: "วันที่ลงนาม",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "commandDateSign",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
format: (v) => date2Thai(v),
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "posNo",
align: "left",
2025-03-19 17:30:44 +07:00
label: link.value === "-employee" ? "ตำแหน่งเลขที่" : "เลขที่ตำแหน่ง",
sortable: true,
field: "posNo",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return row.posNoAbb && row.posNo
? `${row.posNoAbb}${row.posNo}`
: row.posNo
? row.posNo
: "-";
},
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "positionName",
align: "left",
2025-03-19 17:30:44 +07:00
label: link.value === "-employee" ? "ตำแหน่ง" : "ตำแหน่งในสายงาน",
sortable: true,
field: "positionName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "positionType",
align: "left",
2025-03-19 17:30:44 +07:00
label: link.value === "-employee" ? "กลุ่มงาน" : "ตำแหน่งประเภท",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "positionType",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "positionLevel",
align: "left",
2025-03-19 17:30:44 +07:00
label: link.value === "-employee" ? "ระดับชั้นงาน" : "ระดับ",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "positionLevel",
format(val, row) {
return `${
row.positionLevel
? row.positionLevel
: row.positionCee
? row.positionCee
: "-"
}`;
},
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "positionExecutive",
align: "left",
2025-03-19 17:30:44 +07:00
label: "ตำแหน่งทางการบริหาร",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "positionExecutive",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "commandNo",
align: "left",
2025-03-19 17:30:44 +07:00
label: "เลขที่คำสั่ง",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "commandNo",
format(val, row) {
return row.commandNo && row.commandYear
? `${row.commandNo}/${Number(row.commandYear) + 543}`
: "";
},
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "commandCode",
align: "left",
2025-03-19 17:30:44 +07:00
label: "ประเภทคำสั่ง",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "commandCode",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "organization",
align: "left",
2025-03-19 17:30:44 +07:00
label: "สังกัด",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "organization",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
format(val, row) {
return findOrgName({
root: row.orgRoot,
child1: row.orgChild1,
child2: row.orgChild2,
child3: row.orgChild3,
child4: row.orgChild4,
});
},
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "amount",
align: "left",
2025-03-19 17:30:44 +07:00
label: link.value === "-employee" ? "ค่าจ้าง" : "เงินเดือน",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "amount",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
format(v, row) {
return row.amount
? `${row.amount.toLocaleString()}${
row.amountSpecial !== 0 && row.amountSpecial
? ` (${row.amountSpecial.toLocaleString()})`
: ""
}`
: "-";
},
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "mouthSalaryAmount",
align: "left",
2025-03-19 17:30:44 +07:00
label: "เงินค่าตอบแทนรายเดือน",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "mouthSalaryAmount",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
format: (v) => Number(v).toLocaleString(),
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
2025-03-19 17:30:44 +07:00
name: "positionSalaryAmount",
align: "left",
2025-03-19 17:30:44 +07:00
label: "เงินประจำตำแหน่ง",
sortable: true,
2025-03-19 17:30:44 +07:00
field: "positionSalaryAmount",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
format: (v) => Number(v).toLocaleString(),
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
2025-03-19 17:30:44 +07:00
{
name: "remark",
align: "left",
label: "หมายเหตุ",
sortable: true,
field: "remark",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "lastUpdateFullName",
align: "left",
label: "ผู้ดำเนินการ",
sortable: true,
field: "lastUpdateFullName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "lastUpdatedAt",
align: "left",
label: "วันที่แก้ไข",
sortable: true,
field: "lastUpdatedAt",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => date2Thai(v, false, true),
2025-03-19 17:30:44 +07:00
sort: (a: string, b: string) =>
a
.toString()
.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
]);
2024-09-10 15:10:18 +07:00
/** เปิด dialog ประวัติ*/
function onHistory(id: string) {
modalHistory.value = true;
idByRow.value = id;
}
/** get data */
function getData() {
showLoader();
http
2024-11-07 14:51:21 +07:00
.get(config.API.dataUserSalaryByType(link.value))
.then((res) => {
const data = res.data.result;
rows.value = data;
2024-12-11 13:46:33 +07:00
rowsData.value = data;
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
}
/** get history */
function getHistory() {
showLoader();
http
2024-11-07 14:51:21 +07:00
.get(config.API.dataUserSalaryHistoryByType(link.value, idByRow.value))
.then((res) => {
const data = res.data.result;
rowsHistory.value = data;
2024-12-11 13:46:33 +07:00
rowsHistoryData.value = data;
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
}
2024-12-11 13:46:33 +07:00
function onSearch() {
rows.value = onSearchDataTable(
filter.value,
rowsData.value,
columns.value ? columns.value : []
);
}
2024-11-07 14:51:21 +07:00
onMounted(async () => {
link.value = await dataPerson.getProFileType();
getData();
});
</script>
<template>
<!-- v-if="mode" -->
<div class="col-12">
<q-toolbar class="q-px-none">
<span class="text-blue-6 text-weight-bold text-body1"
>ตำแหน/เงนเดอน</span
>
<q-space />
<q-input
v-if="mode"
class="inputgreen"
outlined
dense
v-model="filter"
label="ค้นหา"
style="max-width: 200px"
2024-12-11 13:46:33 +07:00
@keydown.enter="onSearch"
>
<template v-slot:append>
2024-12-11 13:46:33 +07:00
<q-icon name="search" />
</template>
</q-input>
<q-select
v-if="mode"
class="q-ml-sm"
dense
multiple
outlined
emit-value
map-options
options-dense
option-value="name"
2024-11-05 16:40:01 +07:00
style="min-width: 140px"
v-model="visibleColumns"
:options="columns"
:display-value="$q.lang.table.columns"
/>
</q-toolbar>
<d-table
flat
dense
bordered
virtual-scroll
:rows="rows.length !== 0 ? rows : []"
:columns="columns"
:grid="!mode"
:rows-per-page-options="[10, 25, 50, 100]"
:visible-columns="visibleColumns"
:virtual-scroll-sticky-size-start="48"
>
<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-th auto-width />
</q-tr>
</template>
<template v-if="mode" v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
2025-03-05 15:09:35 +07:00
<q-td
v-for="(col, index) in props.cols"
:key="col.name"
:class="props.row.isEntry ? 'text-red' : ''"
>
<div v-if="col.name == 'no'">
{{ props.rowIndex + 1 }}
</div>
<div v-else-if="col.name == 'status'">
{{ props.row.status ? props.row.status : "-" }}
</div>
2025-03-19 17:30:44 +07:00
<div v-else-if="col.name == 'organization'" class="table_ellipsis">
{{ col.value ? col.value : "-" }}
</div>
<div v-else>
{{ col.value ? col.value : "-" }}
</div>
</q-td>
<q-td auto-width>
<q-btn
color="info"
flat
dense
round
size="14px"
icon="mdi-history"
@click="onHistory(props.row.id)"
>
<q-tooltip>ประวแกไขตำแหน/เงนเดอน</q-tooltip>
</q-btn>
</q-td>
</q-tr>
</template>
<template v-else v-slot:item="props">
<div class="q-mb-xs col-xs-12 col-sm-6 col-md-4 col-lg-3">
<q-card bordered flat>
<q-list dense class="q-mt-lg relative-position">
<q-btn
icon="mdi-history"
color="info"
flat
dense
round
size="14px"
class="absolute_button"
@click="onHistory(props.row.id)"
>
<q-tooltip>ประวแกไขตำแหน/เงนเดอน</q-tooltip>
</q-btn>
<q-item v-for="col in props.cols" :key="col.name">
<q-item-section class="fix_top">
<q-item-label class="text-grey-6 text-weight-medium">{{
col.label
}}</q-item-label>
</q-item-section>
<q-item-section class="fix_top">
<q-item-label class="text-dark text-weight-medium">{{
col.value ? col.value : "-"
}}</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-card>
</div>
</template>
</d-table>
</div>
<DialogHistory
v-model:modal="modalHistory"
:title="'ประวัติแก้ไขตำแหน่ง/เงินเดือน'"
:getData="getHistory"
:rows="rowsHistory"
2024-12-11 13:46:33 +07:00
:rows-data="rowsHistoryData"
:visibleColumns="visibleColumnsHistory"
:columns="columnsHistory"
/>
</template>
<style scoped>
.absolute_button {
position: absolute;
right: 5px;
top: -20px;
}
.fix_top {
justify-content: start !important;
}
</style>