diff --git a/src/components/Workflow/DialogSelectPerson.vue b/src/components/Workflow/DialogSelectPerson.vue index 3a9b740..bc52e15 100644 --- a/src/components/Workflow/DialogSelectPerson.vue +++ b/src/components/Workflow/DialogSelectPerson.vue @@ -36,6 +36,15 @@ const rejectName = computed(() => const selected = ref([]); const rows = ref([]); const columns = ref([ + { + name: "posNo", + align: "left", + label: "เลขที่ตำแหน่ง", + sortable: true, + field: "posNo", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, { name: "fullName", align: "left", diff --git a/src/modules/05_leave/components/DialogDetail.vue b/src/modules/05_leave/components/DialogDetail.vue index a1ee1de..d644ea2 100644 --- a/src/modules/05_leave/components/DialogDetail.vue +++ b/src/modules/05_leave/components/DialogDetail.vue @@ -432,7 +432,7 @@ watch( - +
diff --git a/src/modules/10_registry/02_Government/01_Government.vue b/src/modules/10_registry/02_Government/01_Government.vue index f9a6c23..e251927 100644 --- a/src/modules/10_registry/02_Government/01_Government.vue +++ b/src/modules/10_registry/02_Government/01_Government.vue @@ -542,7 +542,7 @@ onMounted(async () => {
{{ formData.govAge - ? `${formData.govAge.year} ปี ${formData.govAge.month} เดือน ${formData.govAge.year} วัน` + ? `${formData.govAge.year} ปี ${formData.govAge.month} เดือน ${formData.govAge.day} วัน` : "-" }}
diff --git a/src/modules/10_registry/02_Government/07_Position.vue b/src/modules/10_registry/02_Government/07_Position.vue index 93a2625..2fbaa00 100644 --- a/src/modules/10_registry/02_Government/07_Position.vue +++ b/src/modules/10_registry/02_Government/07_Position.vue @@ -561,7 +561,7 @@ onMounted(async () => { icon="mdi-history" @click="onHistory(props.row.id)" > - ประวัติแก้ไขตำแหน่ง/เงินเดือน + ประวัติแก้ไขตำแหน่ง @@ -580,7 +580,7 @@ onMounted(async () => { class="absolute_button" @click="onHistory(props.row.id)" > - ประวัติแก้ไขตำแหน่ง/เงินเดือน + ประวัติแก้ไขตำแหน่ง diff --git a/src/modules/10_registry/03_Salary/01_Salary.vue b/src/modules/10_registry/03_Salary/01_Salary.vue index 1399784..7917069 100644 --- a/src/modules/10_registry/03_Salary/01_Salary.vue +++ b/src/modules/10_registry/03_Salary/01_Salary.vue @@ -38,6 +38,10 @@ const checkType = ref( const modalHistory = ref(false); /** ตัวแปรข้อมูล */ +const salaryText = computed(() => { + return link.value == "" ? "เงินเดือน" : "ค่าจ้าง"; +}); + const baseColumns = ref([ { name: "commandDateAffect", @@ -194,7 +198,7 @@ const baseColumns = ref([ { name: "amount", align: "left", - label: link.value === "-employee" ? "ค่าจ้าง" : "เงินเดือน", + label: salaryText.value, sortable: true, field: "amount", headerStyle: "font-size: 14px", @@ -503,7 +507,7 @@ const baseColumnsHistory = ref([ { name: "amount", align: "left", - label: link.value === "-employee" ? "ค่าจ้าง" : "เงินเดือน", + label: salaryText.value, sortable: true, field: "amount", headerStyle: "font-size: 14px", @@ -652,9 +656,9 @@ onMounted(async () => {
- ตำแหน่ง/เงินเดือน + {{ + `${salaryText}` + }} { icon="mdi-history" @click="onHistory(props.row.id)" > - ประวัติแก้ไขตำแหน่ง/เงินเดือน + {{ `ประวัติแก้ไข${salaryText}` }} @@ -756,7 +760,7 @@ onMounted(async () => { class="absolute_button" @click="onHistory(props.row.id)" > - ประวัติแก้ไขตำแหน่ง/เงินเดือน + {{ `ประวัติแก้ไข${salaryText}` }} @@ -778,7 +782,7 @@ onMounted(async () => {
+import { ref, onMounted, computed } from "vue"; import { useCounterMixin } from "@/stores/mixin"; import { useQuasar, type QTableProps } from "quasar"; -import { ref, onMounted } from "vue"; import http from "@/plugins/http"; import config from "@/app.config"; @@ -28,7 +28,9 @@ const { showLoader, hideLoader, messageError, date2Thai, onSearchDataTable } = const { getPathUploadFlie } = useRegistryDataStore(); const modalHistory = ref(false); -/** ตัวแปรข้อมูล */ +const salaryText = computed(() => { + return link.value == "" ? "เงินเดือน" : "ค่าจ้าง"; +}); const visibleColumns = ref([ "date", @@ -220,7 +222,7 @@ const columnsHistory = ref([ }, ]); -const fileGroup = ref("เอกสารบันทึกวันที่ไม่ได้รับเงินเดือน"); +const fileGroup = ref(`เอกสารบันทึกวันที่ไม่ได้รับ${salaryText.value}`); function onHistory(id: string) { modalHistory.value = true; @@ -287,9 +289,9 @@ onMounted(async () => {
- บันทึกวันที่ไม่ได้รับเงินเดือนฯ + {{ + `บันทึกวันที่ไม่ได้รับ${salaryText}ฯ` + }} { icon="mdi-history" @click="onHistory(props.row.id)" > - ประวัติแก้ไขบันทึกวันที่ไม่ได้รับเงินเดือนฯ + {{ + `ประวัติแก้ไขบันทึกวันที่ไม่ได้รับ${salaryText}ฯ` + }} @@ -412,9 +416,9 @@ onMounted(async () => { size="14px" @click="onHistory(props.row.id)" > - ประวัติแก้ไขบันทึกวันที่ไม่ได้รับเงินเดือนฯ + {{ + `ประวัติแก้ไขบันทึกวันที่ไม่ได้รับ${salaryText}ฯ` + }}
@@ -438,7 +442,7 @@ onMounted(async () => { -import { ref } from "vue"; +import { ref, computed } from "vue"; import { useCounterMixin } from "@/stores/mixin"; import { useDataStore } from "@/stores/data"; import { useRegistryInFormationStore } from "@/modules/10_registry/store/registry"; @@ -25,6 +25,9 @@ const mixin = useCounterMixin(); const { messageError, showLoader, hideLoader } = mixin; const router = useRouter(); const tab = ref("information"); +const salaryText = computed(() => { + return dataStore.officerType == "OFFICER" ? "เงินเดือน" : "ค่าจ้าง"; +}); const sizeImg = ref(""); function onResize(size: any) { @@ -210,7 +213,7 @@ function redirectToPagePetition() { class="bg-active" /> - + @@ -316,7 +319,7 @@ function redirectToPagePetition() {
- ข้อมูลเงินเดือน/ค่าจ้าง + {{ `ข้อมูล${salaryText}` }} diff --git a/src/modules/11_probation/views/mainDetail.vue b/src/modules/11_probation/views/mainDetail.vue index 8bcec15..6a35432 100644 --- a/src/modules/11_probation/views/mainDetail.vue +++ b/src/modules/11_probation/views/mainDetail.vue @@ -414,7 +414,7 @@ onMounted(async () => { class="absolute_button" @click="onDetail(props.row.id)" > - ประวัติแก้ไขตำแหน่ง/เงินเดือน + ดูรายละเอียด