ทะเบียนประวัติ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-24 13:11:42 +07:00
parent c05701c8ea
commit 1c645bc42e
8 changed files with 1694 additions and 18 deletions

View file

@ -34,11 +34,11 @@ const rowsMain = ref<ResListSalary[]>([]); //รายการข้อมู
const keyword = 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),
@ -83,11 +83,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,6 +133,15 @@ 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",
},
@ -164,11 +173,11 @@ const baseColumns = ref<QTableProps["columns"]>([
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",
},
@ -178,6 +187,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",
},
@ -202,12 +225,12 @@ const baseColumns = ref<QTableProps["columns"]>([
},
]);
const visibleColumns = ref<string[]>([
"date",
"commandDateAffect",
"amount",
"positionSalaryAmount",
"mouthSalaryAmount",
"oc",
"position",
"positionName",
"posNo",
"positionLine",
"positionPathSide",
@ -216,8 +239,9 @@ const visibleColumns = ref<string[]>([
"positionExecutive",
"positionExecutiveSide",
"salaryClass",
"templateDoc",
"commandName",
"refCommandNo",
"remark",
"lastUpdateFullName",
"lastUpdatedAt",
]);