diff --git a/src/modules/04_registryPerson/components/detail/Salary/02_NotReceiveSalary.vue b/src/modules/04_registryPerson/components/detail/Salary/02_NotReceiveSalary.vue index 51ecd7408..c148fe868 100644 --- a/src/modules/04_registryPerson/components/detail/Salary/02_NotReceiveSalary.vue +++ b/src/modules/04_registryPerson/components/detail/Salary/02_NotReceiveSalary.vue @@ -32,6 +32,9 @@ const { } = useCounterMixin(); const { createPathUploadFlie, getPathUploadFlie, uploadFile } = useRegistryNewDataStore(); +const salaryText = ref( + route.name === "registryNewByid" ? "เงินเดือน" : "ค่าจ้าง" +); const id = ref(""); const profileId = ref( @@ -166,7 +169,7 @@ const pagination = ref({ const columnsHistory = ref(baseColumns.value); const visibleColumnsHistory = ref(baseVisibleColumns.value); -const fileGroup = ref("เอกสารบันทึกวันที่ไม่ได้รับเงินเดือน"); +const fileGroup = ref(`เอกสารบันทึกวันที่ไม่ได้รับ${salaryText.value}`); const fileUpload = ref(null); const fileData = ref(null); const isUpload = ref(false); @@ -443,7 +446,9 @@ onMounted(() => { icon="mdi-history" @click.stop.prevent="onClickHistory(props.row.id)" > - ประวัติบันทึกวันที่ไม่ได้รับเงินเดือนฯ + {{ + `ประวัติบันทึกวันที่ไม่ได้รับ${salaryText}ฯ` + }} { icon="mdi-history" @click="onClickHistory(props.row.id)" > - ประวัติบันทึกวันที่ไม่ได้รับเงินเดือนฯ + {{ + `ประวัติบันทึกวันที่ไม่ได้รับ${salaryText}ฯ` + }} { @@ -789,7 +796,7 @@ onMounted(() => { diff --git a/src/modules/04_registryPerson/components/detail/Salary/Main.vue b/src/modules/04_registryPerson/components/detail/Salary/Main.vue index 2aed9c576..a78286a65 100644 --- a/src/modules/04_registryPerson/components/detail/Salary/Main.vue +++ b/src/modules/04_registryPerson/components/detail/Salary/Main.vue @@ -1,5 +1,6 @@