เงินเดือน => fix bug

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-17 16:33:38 +07:00
parent b3ba722e5a
commit d2f1276c86

View file

@ -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 {