From 2f13c0fd2774de477884844a9b476ca0f69d26b4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 29 Feb 2024 13:56:23 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94?= =?UTF-8?q?=E0=B8=B7=E0=B8=AD=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/SalaryLists/TabMain.vue | 3 ++- .../components/SalaryLists/TableTypeOther.vue | 27 +++++++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/src/modules/13_salary/components/SalaryLists/TabMain.vue b/src/modules/13_salary/components/SalaryLists/TabMain.vue index 3ec16d409..2c3ecafd1 100644 --- a/src/modules/13_salary/components/SalaryLists/TabMain.vue +++ b/src/modules/13_salary/components/SalaryLists/TabMain.vue @@ -217,7 +217,8 @@ async function fetchDataPeriod(id: string) { page: formFilter.page.toString(), pageSize: formFilter.pageSize.toString(), keyword: formFilter.keyword, - type: store.tabType, + type: store.tabType === "RETIRE" ? "" : store.tabType, + isRetire: store.tabType === "RETIRE" ? true : null, }; await http diff --git a/src/modules/13_salary/components/SalaryLists/TableTypeOther.vue b/src/modules/13_salary/components/SalaryLists/TableTypeOther.vue index 04cab0cbb..d5c402b9e 100644 --- a/src/modules/13_salary/components/SalaryLists/TableTypeOther.vue +++ b/src/modules/13_salary/components/SalaryLists/TableTypeOther.vue @@ -118,6 +118,15 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, + { + name: "positionSalaryAmount", + align: "left", + label: "เงินเดือนหลังเลื่อน", + sortable: false, + field: "positionSalaryAmount", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, ]); const visibleColumns = ref([ "no", @@ -129,6 +138,7 @@ const visibleColumns = ref([ "posExecutive", "amount", "amountUse", + "positionSalaryAmount", ]); /** modalDialog*/ @@ -299,10 +309,23 @@ watch( }}
- {{ props.row.amount.toLocaleString() }} + {{ + props.row.amount !== null ? props.row.amount.toLocaleString() : "" + }}
- {{ props.row.amountUse.toLocaleString() }} + {{ + props.row.amountUse !== null + ? props.row.amountUse.toLocaleString() + : "" + }} +
+
+ {{ + props.row.positionSalaryAmount !== null + ? props.row.positionSalaryAmount.toLocaleString() + : "" + }}