การอนุมัติ รายการเลื่อนเงินเดือนข้าราชการฯ
This commit is contained in:
parent
9bfe0ad6fa
commit
50a128cf64
4 changed files with 31 additions and 13 deletions
|
|
@ -63,7 +63,6 @@ function saveReccommend(reason:string) {
|
|||
titleRecommend:reason
|
||||
})
|
||||
.then((res)=>{
|
||||
console.log(res)
|
||||
props.getData?.()
|
||||
}).catch((e)=>{
|
||||
messageError($q,e)
|
||||
|
|
@ -86,14 +85,12 @@ function sendToDirector(msg: string,type:string) {
|
|||
http
|
||||
.get(config.API.salaryPeriodStatus(type, props.periodId ? props.periodId:'', props.rootId ? props.rootId:''))
|
||||
.then((res)=>{
|
||||
console.log(res)
|
||||
props.getData?.()
|
||||
}).catch((e)=>{
|
||||
messageError($q,e)
|
||||
}).finally(()=>{
|
||||
hideLoader()
|
||||
})
|
||||
sendStep.value = sendStep.value == 3 ? 6 : sendStep.value + 1;
|
||||
},
|
||||
"ยืนยันการ" + msg,
|
||||
"ต้องการยืนยันการ" + msg + "หรือไม่?"
|
||||
|
|
@ -106,7 +103,6 @@ function sendAndRecommend(title: string,typeOrder:string) {
|
|||
modalRecommend.value = true;
|
||||
titleRecommend.value = title;
|
||||
type.value = typeOrder
|
||||
props.getData?.()
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
@ -156,7 +152,7 @@ function sendAndRecommend(title: string,typeOrder:string) {
|
|||
<div>
|
||||
<!-- การเจ้าหน้าที่ของหน่วยงานส่งเอกสารให้ ผอ. หน่วยงานตรวจสอบ -->
|
||||
<q-btn
|
||||
v-if="sendStep == 1"
|
||||
v-if="store.statusQuota == 'PENDING'"
|
||||
unelevated
|
||||
color="public"
|
||||
label="ส่งเอกสารให้ ผอ. ตรวจสอบ"
|
||||
|
|
@ -165,16 +161,16 @@ function sendAndRecommend(title: string,typeOrder:string) {
|
|||
|
||||
<!-- ผอ. หน่วยงานทำการยืนยันและส่งให้ สกจ. -->
|
||||
<q-btn
|
||||
v-if="sendStep == 2"
|
||||
v-if="store.statusQuota == 'WAITHEAD1'"
|
||||
unelevated
|
||||
color="public"
|
||||
label="ยืนยันและส่งเอกสารให้ สกจ."
|
||||
@click="sendToDirector('ยืนยันและส่งเอกสารให้ สกจ.','head')"
|
||||
/>
|
||||
|
||||
|
||||
<!-- สกจ. ตรวจสอบเอกสารและข้อมูลรายการเงินเดือนที่แต่ละหน่วยงานส่งมา ไม่มีปรับโควต้า -->
|
||||
<q-btn
|
||||
v-if="sendStep == 3"
|
||||
v-if="store.statusQuota == 'WAITOWNER1'"
|
||||
unelevated
|
||||
color="green"
|
||||
label="ยืนยันการตรวจสอบ"
|
||||
|
|
@ -183,7 +179,7 @@ function sendAndRecommend(title: string,typeOrder:string) {
|
|||
|
||||
<!-- สกจ. ตรวจสอบเอกสารและข้อมูลรายการเงินเดือนที่แต่ละหน่วยงานส่งมา มีปรับโควต้า -->
|
||||
<q-btn
|
||||
v-if="sendStep == 3"
|
||||
v-if="store.statusQuota == 'WAITOWNER1'"
|
||||
class="q-ml-sm"
|
||||
unelevated
|
||||
color="warning"
|
||||
|
|
@ -193,19 +189,26 @@ function sendAndRecommend(title: string,typeOrder:string) {
|
|||
|
||||
<!-- ผอ.หน่วยงานส่งคำแนะนำให้การเจ้าหน้าที่หน่วยงาน -->
|
||||
<q-btn
|
||||
v-if="sendStep == 4"
|
||||
v-if="store.statusQuota == 'WAITHEAD2'"
|
||||
unelevated
|
||||
color="public"
|
||||
label="ส่งคำแนะนำให้การเจ้าหน้าที่หน่วยงาน"
|
||||
@click="sendAndRecommend('ส่งคำแนะนำให้ ผอ. ตรวจสอบ','head')"
|
||||
@click="sendAndRecommend('ส่งคำแนะนำให้การเจ้าหน้าที่หน่วยงาน','head')"
|
||||
/>
|
||||
|
||||
<q-btn
|
||||
v-if="sendStep > 4"
|
||||
v-if="store.statusQuota == 'WAITOFFICER2'"
|
||||
unelevated
|
||||
color="public"
|
||||
label="ส่งไปออกคำสั่ง"
|
||||
/>
|
||||
<q-btn
|
||||
v-if="store.statusQuota == 'REPORT'"
|
||||
unelevated
|
||||
color="public"
|
||||
disable
|
||||
label="รอออกคำสั่ง"
|
||||
/>
|
||||
</div>
|
||||
</q-toolbar>
|
||||
|
||||
|
|
|
|||
|
|
@ -228,7 +228,9 @@ function fetchDataQuota(id: string) {
|
|||
.get(config.API.salaryListPeriodQuota(id))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
|
||||
store.remaining = data.remaining;
|
||||
store.statusQuota = data.status
|
||||
itemsCard.value[0].total = data.total;
|
||||
itemsCard.value[1].total = data.fifteenPercent;
|
||||
itemsCard.value[2].total = data.chosen;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
|
|||
|
||||
const remaining = ref<number>(0);
|
||||
|
||||
const statusQuota = ref<string>('')
|
||||
const groupId = ref<string>("");
|
||||
const rootId = ref<string>("");
|
||||
const roundMainCode = ref<string>("");
|
||||
|
|
@ -155,5 +156,6 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
|
|||
remaining,
|
||||
isClosedRound,
|
||||
roundYear,
|
||||
statusQuota
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -319,7 +319,18 @@ function onScroll({ to, ref }: { to: number; ref: any }) {
|
|||
}
|
||||
|
||||
function getQuota() {
|
||||
fetchSalalyPeriod(agencyFilter.value, roundFilter.value.id, snapFilter.value);
|
||||
http
|
||||
.get(config.API.salaryListPeriodQuota(store.groupId))
|
||||
.then((res)=>{
|
||||
console.log("q",res)
|
||||
const data = res.data.result
|
||||
store.statusQuota = data.status
|
||||
|
||||
}).catch((e)=>{
|
||||
messageError($q,e)
|
||||
}).finally(()=>{
|
||||
|
||||
})
|
||||
}
|
||||
onMounted(async () => {
|
||||
await getRound();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue