add modules folder based on s_menu

This commit is contained in:
2026-06-30 10:16:11 +07:00
parent 315b657ee3
commit a1aab09ac9
625 changed files with 192283 additions and 794 deletions

View File

@@ -0,0 +1,115 @@
const URL = "/one-api/mockup/masterdata/accounting/JournalVerifEdit/";
export async function getListJournalEdit(params) {
try {
var resp = await axios.post(URL + "getListJournalEdit", params);
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
var data = resp.data;
return data;
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function getDetailJournalEdit(params) {
try {
var resp = await axios.post(URL + "getDetailJournalEdit", params);
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
var data = resp.data;
return data;
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function verifEditJurnal(params) {
try {
var resp = await axios.post(URL + "verifEditJurnal", params);
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
var data = resp.data;
return data;
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function getListPeriode(params) {
try {
var resp = await axios.post(URL + "getListPeriode", params);
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
var data = resp.data;
return data;
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function getListTypeJurnal(params) {
try {
var resp = await axios.post(URL + "getListTypeJurnal", params);
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
var data = resp.data;
return data;
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function updateRequestEditStatus(params) {
try {
var resp = await axios.post(URL + "updateRequestEditJurnal", params);
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
var data = resp.data;
return data;
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}