เงินเดือน => pemission รายการเลื่อนค่าจ้างลูกจ้างประจำ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-13 14:49:34 +07:00
parent e422ef250c
commit 891955e26e
9 changed files with 96 additions and 71 deletions

View file

@ -1,6 +1,7 @@
<script setup lang="ts">
import { ref, onMounted } from "vue";
import { useQuasar } from "quasar";
import { checkPermission } from "@/utils/permissions";
import axios from "axios";
import http from "@/plugins/http";
@ -248,7 +249,10 @@ onMounted(() => {
<div class="row col-12 q-pa-md">
<q-toolbar style="padding: 0px">
<q-file
v-if="store.statusQuota == 'PENDING'"
v-if="
store.statusQuota == 'PENDING' &&
checkPermission($route)?.attrIsUpdate
"
bg-color="white"
clearable
outlined
@ -274,7 +278,10 @@ onMounted(() => {
<div>
<!-- การเจาหนาทของหนวยงานสงเอกสารให ผอ. หนวยงานตรวจสอบ -->
<q-btn
v-if="store.statusQuota == 'PENDING'"
v-if="
store.statusQuota == 'PENDING' &&
checkPermission($route)?.attrIsUpdate
"
unelevated
color="public"
label="ส่งเอกสารให้ ผอ. ตรวจสอบ"
@ -283,7 +290,10 @@ onMounted(() => {
<!-- ผอ. หนวยงานทำการยนยนและสงให สกจ. -->
<q-btn
v-if="store.statusQuota == 'WAITHEAD1'"
v-if="
store.statusQuota == 'WAITHEAD1' &&
checkPermission($route)?.attrIsUpdate
"
unelevated
color="public"
label="ยืนยันและส่งเอกสารให้ สกจ."
@ -292,7 +302,10 @@ onMounted(() => {
<!-- สกจ. ตรวจสอบเอกสารและขอมลรายการเงนเดอนทแตละหนวยงานสงมา ไมปรบโควต -->
<q-btn
v-if="store.statusQuota == 'WAITOWNER1'"
v-if="
store.statusQuota == 'WAITOWNER1' &&
checkPermission($route)?.attrIsUpdate
"
unelevated
color="green"
label="ยืนยันการตรวจสอบ"
@ -301,7 +314,10 @@ onMounted(() => {
<!-- สกจ. ตรวจสอบเอกสารและขอมลรายการเงนเดอนทแตละหนวยงานสงมา ปรบโควต -->
<q-btn
v-if="store.statusQuota == 'WAITOWNER1'"
v-if="
store.statusQuota == 'WAITOWNER1' &&
checkPermission($route)?.attrIsUpdate
"
class="q-ml-sm"
unelevated
color="warning"
@ -311,7 +327,10 @@ onMounted(() => {
<!-- ผอ.หนวยงานสงคำแนะนำใหการเจาหนาทหนวยงาน -->
<q-btn
v-if="store.statusQuota == 'WAITHEAD2'"
v-if="
store.statusQuota == 'WAITHEAD2' &&
checkPermission($route)?.attrIsUpdate
"
unelevated
color="public"
label="ส่งคำแนะนำให้การเจ้าหน้าที่หน่วยงาน"
@ -321,13 +340,19 @@ onMounted(() => {
/>
<q-btn
v-if="store.statusQuota == 'WAITOFFICER2'"
v-if="
store.statusQuota == 'WAITOFFICER2' &&
checkPermission($route)?.attrIsUpdate
"
unelevated
color="public"
label="ส่งไปออกคำสั่ง"
/>
<q-btn
v-if="store.statusQuota == 'REPORT'"
v-if="
store.statusQuota == 'REPORT' &&
checkPermission($route)?.attrIsUpdate
"
unelevated
color="public"
disable
@ -348,6 +373,7 @@ onMounted(() => {
<div class="row">
<div>
<q-btn
v-if="checkPermission($route)?.attrIsGet"
dense
flat
round
@ -361,6 +387,7 @@ onMounted(() => {
</div>
<div>
<q-btn
v-if="checkPermission($route)?.attrIsDelete"
dense
flat
round