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