salary - check isClose round
This commit is contained in:
parent
8b0eeb5f95
commit
2e0f98448f
4 changed files with 10 additions and 4 deletions
|
|
@ -109,9 +109,7 @@ function closeModal() {
|
||||||
|
|
||||||
/** function เรียกรายชื่อ คนเลื่อนเงินเดือน*/
|
/** function เรียกรายชื่อ คนเลื่อนเงินเดือน*/
|
||||||
function fetchListPerson() {
|
function fetchListPerson() {
|
||||||
showLoader();
|
showLoader();
|
||||||
console.log(store.rootId);
|
|
||||||
|
|
||||||
formFilter.rootId = store.rootId;
|
formFilter.rootId = store.rootId;
|
||||||
http
|
http
|
||||||
.post(config.API.salaryListPerson, formFilter)
|
.post(config.API.salaryListPerson, formFilter)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ interface DataRound {
|
||||||
revisionId: string;
|
revisionId: string;
|
||||||
status: string;
|
status: string;
|
||||||
year: number;
|
year: number;
|
||||||
|
isClose: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DataAgency {
|
interface DataAgency {
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
|
||||||
const rootId = ref<string>("");
|
const rootId = ref<string>("");
|
||||||
const roundMainCode = ref<string>("");
|
const roundMainCode = ref<string>("");
|
||||||
const roundCode = ref<string>("");
|
const roundCode = ref<string>("");
|
||||||
|
const isClosedRound = ref<boolean>(false); // การปิดรอบ
|
||||||
/** List Menu*/
|
/** List Menu*/
|
||||||
const itemMenu = ref<ItemsMenu[]>([
|
const itemMenu = ref<ItemsMenu[]>([
|
||||||
{
|
{
|
||||||
|
|
@ -151,5 +152,6 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
|
||||||
groupOp,
|
groupOp,
|
||||||
roundMainCode,
|
roundMainCode,
|
||||||
remaining,
|
remaining,
|
||||||
|
isClosedRound
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ function getRound() {
|
||||||
id: x.id,
|
id: x.id,
|
||||||
revisionId: x.revisionId,
|
revisionId: x.revisionId,
|
||||||
shortCode: x.period,
|
shortCode: x.period,
|
||||||
|
isClose: x.isClose,
|
||||||
name:
|
name:
|
||||||
(x.period === "OCT"
|
(x.period === "OCT"
|
||||||
? "รอบตุลาคม "
|
? "รอบตุลาคม "
|
||||||
|
|
@ -77,6 +78,7 @@ function getRound() {
|
||||||
: "");
|
: "");
|
||||||
|
|
||||||
store.roundMainCode = roundFilter.value.shortCode;
|
store.roundMainCode = roundFilter.value.shortCode;
|
||||||
|
store.isClosedRound = roundFilter.value.isClose;
|
||||||
|
|
||||||
await getSnap(roundFilter.value.shortCode);
|
await getSnap(roundFilter.value.shortCode);
|
||||||
await getAgency(roundFilter.value.revisionId);
|
await getAgency(roundFilter.value.revisionId);
|
||||||
|
|
@ -228,6 +230,9 @@ function fetchSalalyPeriod(rootId: string, periodId: string, snap: string) {
|
||||||
|
|
||||||
/** function เปลี่ยนรอบการขั้นเงินเดือน*/
|
/** function เปลี่ยนรอบการขั้นเงินเดือน*/
|
||||||
async function onChangeRound() {
|
async function onChangeRound() {
|
||||||
|
// เก็บสถานะการปิดรอบในตัวแปร isClosedRound เพื่อใช้ในการเช็ค
|
||||||
|
store.isClosedRound = roundFilter.value.isClose;
|
||||||
|
|
||||||
await getSnap(roundFilter.value.shortCode);
|
await getSnap(roundFilter.value.shortCode);
|
||||||
await getAgency(roundFilter.value.revisionId);
|
await getAgency(roundFilter.value.revisionId);
|
||||||
await getAgencyPosition(roundFilter.value.revisionId);
|
await getAgencyPosition(roundFilter.value.revisionId);
|
||||||
|
|
@ -391,7 +396,7 @@ onMounted(async () => {
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
||||||
<q-card v-if="isLoad" flat bordered class="row col-12 q-mt-xs">
|
<q-card v-if="isLoad && !store.isClosedRound" flat bordered class="row col-12 q-mt-xs">
|
||||||
<ProcessStep />
|
<ProcessStep />
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue