เงินเดือน => รายการเลื่อนเงินเดือนข้าราชการ ฯ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-20 13:52:36 +07:00
parent 03e925a41b
commit d5b5eec3e8
14 changed files with 90 additions and 89 deletions

View file

@ -145,9 +145,9 @@ function getSnap(code: string) {
* function เรยกขอมลหนยวงาน
* @param id revisionId
*/
async function getAgency(id: string) {
function getAgency(id: string) {
if (id) {
await http
http
.get(config.API.activeOrganizationRootById(id))
.then(async (res) => {
const data = res.data.result;
@ -179,9 +179,9 @@ async function getAgency(id: string) {
* function เรยกขอมลหนยวงานปจ
* @param id revisionId
*/
async function getAgencyPosition(id: string) {
function getAgencyPosition(id: string) {
if (id) {
await http
http
.get(config.API.keycloakPositionByid(id))
.then(async (res) => {
const data = await res.data.result;

View file

@ -124,7 +124,9 @@ function clickAdd() {
editCheck.value = false;
}
/** ดึงข้อมูลเริ่มต้น */
/**
* fetch รายการรอบการขนเงนเดอน
*/
function getData() {
showLoader();
http
@ -165,9 +167,9 @@ function deleteData(id: string) {
showLoader();
http
.delete(config.API.salaryPeriod() + `/${id}`)
.then(() => {
getData();
success($q, "ลบข้อมูลสำเร็จ");
.then(async () => {
await getData();
await success($q, "ลบข้อมูลสำเร็จ");
})
.catch((e) => {
messageError($q, e);
@ -204,15 +206,19 @@ function dialogClose(id: string) {
dialogConfirm(
$q,
() => {
showLoader();
http
.get(config.API.salaryPeriod() + `/close/${id}`)
.then((res) => {
.then(() => {
getData();
success($q, "ลบข้อมูลสำเร็จ");
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {});
.finally(() => {
hideLoader();
});
},
"ยืนยันการปิดรอบ",
"หากปิดรอบแล้วจะไม่สามารถแก้ไขรายการเงินเดือนของรอบนี้ได้ ต้องการยืนยันการปิดรอบนี้ใช่หรือไม่?"
@ -406,14 +412,16 @@ onMounted(async () => {
color="edit"
size="17px"
:name="
props.row.revisionId !== null || !checkPermission($route)?.attrIsUpdate
props.row.revisionId !== null ||
!checkPermission($route)?.attrIsUpdate
? 'mdi-eye-outline'
: 'edit'
"
/>
<div class="q-pl-md">
{{
props.row.revisionId !== null || !checkPermission($route)?.attrIsUpdate
props.row.revisionId !== null ||
!checkPermission($route)?.attrIsUpdate
? "ดูข้อมูล"
: "แก้ไขข้อมูล"
}}