ทะเบียนประวัติ ตำแหน่งเงินเดือน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-24 11:52:58 +07:00
parent a353681605
commit 39e32b0f30

View file

@ -60,11 +60,11 @@ const command = ref<string>("");
const commandId = ref<string>("");
const baseColumns = ref<QTableProps["columns"]>([
{
name: "date",
name: "commandDateAffect",
align: "left",
label: "วัน เดือน ปี",
sortable: true,
field: "date",
field: "commandDateAffect",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => date2Thai(v),
@ -110,11 +110,11 @@ const baseColumns = ref<QTableProps["columns"]>([
style: "font-size: 14px",
},
{
name: "position",
name: "positionName",
align: "left",
label: "ตำแหน่ง",
sortable: true,
field: "position",
field: "positionName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
@ -133,16 +133,24 @@ const baseColumns = ref<QTableProps["columns"]>([
label: "ระดับ",
sortable: true,
field: "positionLevel",
format(val, row) {
return `${
row.positionLevel
? row.positionLevel
: row.positionCee
? row.positionCee
: "-"
}`;
},
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "templateDoc",
name: "commandName",
align: "left",
label: "เอกสารอ้างอิง",
sortable: true,
field: "templateDoc",
field: "commandName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
@ -152,6 +160,20 @@ const baseColumns = ref<QTableProps["columns"]>([
label: "เลขที่คำสั่ง",
sortable: true,
field: "refCommandNo",
format(val, row) {
return row.commandNo && row.commandYear
? `${row.commandNo}/${row.commandYear}`
: "";
},
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "remark",
align: "left",
label: "หมายเหตุ",
sortable: true,
field: "remark",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
@ -169,16 +191,17 @@ const columns = computed(() => {
return baseColumns.value;
});
const visibleColumns = ref<string[]>([
"date",
"commandDateAffect",
"amount",
"positionSalaryAmount",
"mouthSalaryAmount",
"posNo",
"position",
"positionName",
"positionType",
"positionLevel",
"templateDoc",
"commandName",
"refCommandNo",
"remark",
]);
const pagination = ref({
page: 1,