From 69ab68583242547f51155358f72dcc5b8aa5a2f0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 6 Mar 2024 13:48:07 +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=20=3D>=20=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A=20table=20=E0=B9=80=E0=B8=94=E0=B8=B7?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=95=E0=B8=B8=E0=B8=A5=E0=B8=B2=E0=B8=84?= =?UTF-8?q?=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/SalaryLists/TabMain.vue | 22 +++++--- .../components/SalaryLists/TableTypeOther.vue | 56 +++++++++++++------ 2 files changed, 55 insertions(+), 23 deletions(-) diff --git a/src/modules/13_salary/components/SalaryLists/TabMain.vue b/src/modules/13_salary/components/SalaryLists/TabMain.vue index fb52ed67d..16ed5720b 100644 --- a/src/modules/13_salary/components/SalaryLists/TabMain.vue +++ b/src/modules/13_salary/components/SalaryLists/TabMain.vue @@ -57,6 +57,11 @@ const itemsTabType = computed(() => { name: "tab1", type: "PENDING", }, + { + lable: "รายชื่อผู้เกษียณอายุราชการ", + name: "tab5", + type: "RETIRE", + }, { lable: "1 ขั้น", name: "tab2", @@ -77,11 +82,6 @@ const itemsTabType = computed(() => { name: "tab4", type: "NONE", }, - { - lable: "รายชื่อผู้เกษียณอายุราชการ", - name: "tab5", - type: "RETIRE", - }, ] : [ { @@ -230,7 +230,7 @@ function fetchDataPeriod(id: string) { .put(config.API.salaryListPeriodORG(id), formData) .then((res) => { rows.value = res.data.result.data; - total.value = res.data.result.total + total.value = res.data.result.total; maxPage.value = Math.ceil(res.data.result.total / formFilter.pageSize); }) .catch((err) => { @@ -384,7 +384,15 @@ onMounted(async () => { v-for="(item, index) in itemsTabType" :key="index" class="row" - :style="index == 0 ? 'border-bottom: 1px solid #c8d3db;' : ''" + :style=" + store.roundMainCode === 'OCT' + ? index === 1 + ? 'border-bottom: 1px solid #c8d3db;' + : '' + : index === 0 + ? 'border-bottom: 1px solid #c8d3db;' + : '' + " > -import { ref, watch } from "vue"; +import { ref, watch, computed } from "vue"; import { useQuasar } from "quasar"; import config from "@/app.config"; import http from "@/plugins/http"; @@ -121,6 +121,7 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, + { name: "positionSalaryAmount", align: "left", @@ -130,7 +131,17 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, + { + name: "isRetired", + align: "center", + label: "เกษียณอายุ", + sortable: false, + field: "isRetired", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, ]); + const visibleColumns = ref([ "no", "posNo", @@ -142,6 +153,7 @@ const visibleColumns = ref([ "amount", "amountUse", "positionSalaryAmount", + "isRetired", ]); /** modalDialog*/ @@ -266,7 +278,7 @@ watch( :display-value="$q.lang.table.columns" emit-value map-options - :options="columns" + :options="store.roundMainCode === 'OCT' ? columns : columns.slice(0, 10)" option-value="name" options-cover style="min-width: 150px" @@ -276,7 +288,7 @@ watch( +
+ +
+
{{ col.value ? col.value : "-" }}
@@ -387,19 +412,18 @@ watch( + +