ออกคำสั่งเลื่อนเงินเดือน =>รายละเอียด
This commit is contained in:
parent
a3426a22d3
commit
4eff0314a8
2 changed files with 10 additions and 17 deletions
|
|
@ -1,16 +1,14 @@
|
|||
<script setup lang="ts">
|
||||
import { defineAsyncComponent, ref,onMounted } from "vue";
|
||||
import { defineAsyncComponent, ref, onMounted } from "vue";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
|
||||
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const orderId_params = route.params.id;
|
||||
const orderId = ref<string>('')
|
||||
const orderId = ref<string>("");
|
||||
const step = ref<number>(0);
|
||||
const step01 = defineAsyncComponent(
|
||||
() => import("@/modules/13_salary/components/Command/step01.vue")
|
||||
|
|
@ -47,10 +45,9 @@ const previousStep = async () => {
|
|||
await http
|
||||
.put(config.API.prevStep(orderId.value))
|
||||
.then(() => {
|
||||
router.push(
|
||||
`/salary/command/detail/${orderId.value}?step=${step.value - 1}`
|
||||
);
|
||||
|
||||
router.push(
|
||||
`/salary/command/detail/${orderId.value}?step=${step.value - 1}`
|
||||
);
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log(e);
|
||||
|
|
@ -58,12 +55,12 @@ const previousStep = async () => {
|
|||
}
|
||||
};
|
||||
|
||||
function destroyLocalStorage(){
|
||||
function destroyLocalStorage() {
|
||||
localStorage.clear();
|
||||
};
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
destroyLocalStorage()
|
||||
destroyLocalStorage();
|
||||
if (route.query.step) {
|
||||
step.value = Number(route.query.step);
|
||||
localStorage.setItem("currentStep", step.value.toString());
|
||||
|
|
@ -155,4 +152,4 @@ onMounted(() => {
|
|||
.step .q-stepper__header--standard-labels .q-stepper__tab {
|
||||
min-height: 60px;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -367,8 +367,6 @@ function getClass(val: boolean) {
|
|||
};
|
||||
}
|
||||
|
||||
function updateYear() {}
|
||||
|
||||
/** ดึงข้อมูลเริ่มต้น */
|
||||
function fetchSalaryRound() {
|
||||
showLoader();
|
||||
|
|
@ -391,7 +389,6 @@ function fetchSalaryRound() {
|
|||
: "-",
|
||||
}));
|
||||
salaryRoundOptionMain.value = list;
|
||||
// salaryRoundOption.value = list;
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
@ -403,9 +400,8 @@ function fetchSalaryRound() {
|
|||
</script>
|
||||
<template>
|
||||
<q-form greedy @submit.prevent @validation-success="submit" class="q-pa-md">
|
||||
<div style="max-height: 68vh; overflow-y: scroll">
|
||||
<div class="q-pa-md">
|
||||
<!-- Main -->
|
||||
|
||||
<div class="row col-12 q-col-gutter-x-lg q-col-gutter-y-md">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<q-select
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue