เงินเดือน => อัตราเงินเดือน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-03 18:14:44 +07:00
parent efc6b4db98
commit 04385785f0
2 changed files with 13 additions and 6 deletions

View file

@ -107,15 +107,18 @@ const pagination = ref({
rowsPerPage: formFilter.pageSize,
});
const isActive = ref<boolean>(false);
const group = ref<string>("");
function fetchDataDetail() {
http
.get(config.API.salaryEmployeeChartByid(salaryEmployeeId.value))
.then((res) => {
isActive.value = res.data.result.isActive;
group.value = `กลุ่มที่ ${res.data.result.group}`;
})
.catch((e) => {})
.finally(() => {});
.catch((e) => {
messageError($q, e);
});
}
function fetchSalalyEmployeeRate() {
@ -240,7 +243,7 @@ onMounted(() => {
class="q-mr-sm"
@click="router.go(-1)"
/>
ตราคาจาง
ตราคาจาง {{ group }}
</div>
</div>
<q-card flat bordered class="q-pa-md">

View file

@ -34,6 +34,8 @@ const {
} = useCounterMixin();
const isActive = ref<boolean>(false);
const posType = ref<string>("");
const salaryId = ref<string>(route.params.id.toString());
/** modalDialog*/
@ -209,9 +211,11 @@ function fetchList() {
.get(config.API.salaryChartByid(salaryId.value))
.then((res) => {
isActive.value = res.data.result.isActive;
posType.value = `${res.data.result.posTypeName}(${res.data.result.posLevelName})`;
})
.catch((e) => {})
.finally(() => {});
.catch((e) => {
messageError($q, e);
});
}
onMounted(async () => {
await fetchList();
@ -236,7 +240,7 @@ watch([() => formQuery.page, () => formQuery.pageSize], async () => {
class="q-mr-sm"
@click="router.go(-1)"
/>
ตราเงนเดอน
ตราเงนเดอน {{ posType }}
</div>
</div>
<q-card flat bordered class="q-pa-md">