ปรับ code => เงินเดือน/ค่าจ้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-04-30 16:21:27 +07:00
parent 068769e317
commit 72590f3ac9
9 changed files with 133 additions and 134 deletions

View file

@ -1,10 +1,11 @@
<script setup lang="ts">
import { onMounted, ref, computed, nextTick } from "vue";
import { onMounted, ref, nextTick } from "vue";
import { useQuasar } from "quasar";
import config from "@/app.config";
import http from "@/plugins/http";
import ProcessStep from "@/modules/13_salary/components/SalaryLists/ProcessStep.vue";
import PageDashBoard from "@/modules/13_salary/components/SalaryLists/Dashboard.vue";
/** importType*/
import type {
DataOption,
@ -164,7 +165,6 @@ async function getAgency(id: string) {
name: x.orgRootName,
}))
);
// agencyFilter.value = store.rootId;
})
.catch((err) => {
messageError($q, err);
@ -240,7 +240,6 @@ function fetchSalalyPeriod(rootId: string, periodId: string, snap: string) {
})
.catch((err) => {
messageError($q, err);
// isLoad.value = true;
})
.finally(() => {
setTimeout(() => {
@ -259,7 +258,6 @@ async function onChangeRound() {
}
getSnap(roundFilter.value.shortCode);
await getAgency(roundFilter.value.revisionId);
// await getAgencyPosition(roundFilter.value.revisionId);
if (agencyFilter.value && roundFilter.value.id && snapFilter.value) {
fetchSalalyPeriod(
agencyFilter.value,
@ -288,7 +286,6 @@ async function onChangeSnap() {
/** function เปลี่ยนหน่วยงาน*/
async function onChangeAgency() {
store.rootId = agencyFilter.value;
if (
agencyFilter.value !== "ALL" &&
roundFilter.value.id &&
@ -325,11 +322,11 @@ function onScroll({ to, ref }: { to: number; ref: any }) {
}
}
/** function fetch PeriodQuota*/
function getQuota() {
http
.get(config.API.salaryListPeriodQuota(store.groupId))
.then((res) => {
console.log("q", res);
const data = res.data.result;
store.statusQuota = data.status;
})
@ -338,8 +335,8 @@ function getQuota() {
})
.finally(() => {});
}
onMounted(async () => {
await getRound();
onMounted(() => {
getRound();
});
</script>
@ -445,25 +442,6 @@ onMounted(async () => {
/>
</div>
<!-- <q-card> -->
<!-- <q-tabs
v-model="tabMain"
dense
class="text-grey"
active-color="secondary"
indicator-color="secondary"
align="justify"
>
<q-tab
name="first_snapshot"
:label="store.titelPage === 'OCT' ? '1 มีนาคม' : '1 กันยายน'"
/>
<q-tab
name="two_snapshot"
:label="store.titelPage === 'OCT' ? '1 เมษายน' : '1 ตุลาคม'"
/>
</q-tabs>
<q-separator /> -->
<q-card flat bordered>
<div v-if="agencyFilter !== 'ALL'">
<TabGroup
@ -503,8 +481,6 @@ onMounted(async () => {
:get-data="getQuota"
/>
</q-card>
<!-- </q-card> -->
</template>
<style lang="sass" scoped>