ปรับการแสดง format ตัวเลขเงินเดือน
This commit is contained in:
parent
a0f4a6d596
commit
abb55a7791
2 changed files with 25 additions and 0 deletions
|
|
@ -149,6 +149,7 @@ const columnsAPR = ref<QTableProps["columns"]>([
|
|||
field: "total",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
|
||||
{
|
||||
|
|
@ -159,6 +160,11 @@ const columnsAPR = ref<QTableProps["columns"]>([
|
|||
field: "fifteenPercent",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) =>
|
||||
Number(v).toLocaleString("en", {
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "chosen",
|
||||
|
|
@ -168,6 +174,7 @@ const columnsAPR = ref<QTableProps["columns"]>([
|
|||
field: "chosen",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
{
|
||||
name: "remaining",
|
||||
|
|
@ -177,6 +184,7 @@ const columnsAPR = ref<QTableProps["columns"]>([
|
|||
field: "remaining",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
{
|
||||
name: "totalBackup",
|
||||
|
|
@ -186,6 +194,7 @@ const columnsAPR = ref<QTableProps["columns"]>([
|
|||
field: "totalBackup",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
]);
|
||||
const columnsOCT = ref<QTableProps["columns"]>([
|
||||
|
|
@ -292,6 +301,7 @@ const columnsOCT = ref<QTableProps["columns"]>([
|
|||
field: "totalBackup",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
]);
|
||||
|
||||
|
|
@ -313,6 +323,7 @@ const columnsSpeciel = ref<QTableProps["columns"]>([
|
|||
field: "total",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
|
||||
{
|
||||
|
|
@ -323,6 +334,7 @@ const columnsSpeciel = ref<QTableProps["columns"]>([
|
|||
field: "chosen",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
|
||||
{
|
||||
|
|
@ -333,6 +345,7 @@ const columnsSpeciel = ref<QTableProps["columns"]>([
|
|||
field: "totalBackup",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
]);
|
||||
const columns = computed(() => {
|
||||
|
|
|
|||
|
|
@ -164,6 +164,11 @@ const columnsAPR = ref<QTableProps["columns"]>([
|
|||
field: "fifteenPercent",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) =>
|
||||
Number(v).toLocaleString("en", {
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "chosen",
|
||||
|
|
@ -173,6 +178,7 @@ const columnsAPR = ref<QTableProps["columns"]>([
|
|||
field: "chosen",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
{
|
||||
name: "remaining",
|
||||
|
|
@ -182,6 +188,7 @@ const columnsAPR = ref<QTableProps["columns"]>([
|
|||
field: "remaining",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
{
|
||||
name: "totalBackup",
|
||||
|
|
@ -191,6 +198,7 @@ const columnsAPR = ref<QTableProps["columns"]>([
|
|||
field: "totalBackup",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
]);
|
||||
const columnsOCT = ref<QTableProps["columns"]>([
|
||||
|
|
@ -297,6 +305,7 @@ const columnsOCT = ref<QTableProps["columns"]>([
|
|||
field: "totalBackup",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
]);
|
||||
const columnsSpeciel = ref<QTableProps["columns"]>([
|
||||
|
|
@ -317,6 +326,7 @@ const columnsSpeciel = ref<QTableProps["columns"]>([
|
|||
field: "total",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
|
||||
{
|
||||
|
|
@ -327,6 +337,7 @@ const columnsSpeciel = ref<QTableProps["columns"]>([
|
|||
field: "chosen",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
|
||||
{
|
||||
|
|
@ -337,6 +348,7 @@ const columnsSpeciel = ref<QTableProps["columns"]>([
|
|||
field: "totalBackup",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format: (v) => Number(v).toLocaleString(),
|
||||
},
|
||||
]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue