เงินเดือน => fix bug
This commit is contained in:
parent
b3ba722e5a
commit
d2f1276c86
1 changed files with 4 additions and 7 deletions
|
|
@ -226,9 +226,12 @@ function fetchSalalyPeriod(rootId: string, periodId: string, snap: string) {
|
||||||
.post(config.API.salaryListPeriodLatestEmp, body)
|
.post(config.API.salaryListPeriodLatestEmp, body)
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
|
console.log(data.group1id);
|
||||||
|
|
||||||
data && store.fetchPeriodLatest(data, store.tabGroup);
|
data && store.fetchPeriodLatest(data, store.tabGroup);
|
||||||
periodLatest.value = data;
|
periodLatest.value = data;
|
||||||
isLoad.value = true;
|
|
||||||
|
isLoad.value = data.group1id ? true : false;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
|
|
@ -245,17 +248,11 @@ function fetchSalalyPeriod(rootId: string, periodId: string, snap: string) {
|
||||||
async function onChangeRound() {
|
async function onChangeRound() {
|
||||||
// เก็บสถานะการปิดรอบในตัวแปร isClosedRound เพื่อใช้ในการเช็ค
|
// เก็บสถานะการปิดรอบในตัวแปร isClosedRound เพื่อใช้ในการเช็ค
|
||||||
store.isClosedRound = roundFilter.value.isClose;
|
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);
|
||||||
|
|
||||||
if (agencyFilter.value && roundFilter.value.id && snapFilter.value) {
|
if (agencyFilter.value && roundFilter.value.id && snapFilter.value) {
|
||||||
// fetchSalalyPeriod(
|
|
||||||
// agencyFilter.value,
|
|
||||||
// roundFilter.value.id,
|
|
||||||
// snapFilter.value
|
|
||||||
// );
|
|
||||||
store.tabType = "PENDING";
|
store.tabType = "PENDING";
|
||||||
store.roundMainCode = roundFilter.value.shortCode;
|
store.roundMainCode = roundFilter.value.shortCode;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue