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,81 @@
const URL = "/one-api/mockup/purchase/order/PurchaseOrderAset/";
export async function getListSupplier(params) {
try {
var response = await axios.post(URL + "getListSupplier", params)
if (response.status !== 200) {
return {
status: 'ERR',
message: responsep.statusText
};
}
let data = response.data
return data
} catch (error) {
return {
status: 'ERR',
message: error.message
};
}
}
export async function getListCabang(params) {
try {
var response = await axios.post(URL + "getListCabang", params)
if (response.status !== 200) {
return {
status: 'ERR',
message: responsep.statusText
};
}
let data = response.data
return data
} catch (error) {
return {
status: 'ERR',
message: error.message
};
}
}
export async function searchRequestAset(params) {
try {
var response = await axios.post(URL + "searchRequestAset", params)
if (response.status !== 200) {
return {
status: 'ERR',
message: responsep.statusText
};
}
let data = response.data
return data
} catch (error) {
return {
status: 'ERR',
message: error.message
};
}
}
export async function getUserApproveLevel(params) {
try {
var response = await axios.post(URL + "getUserApproveLevel", params)
if (response.status !== 200) {
return {
status: 'ERR',
message: responsep.statusText
};
}
let data = response.data
return data
} catch (error) {
return {
status: 'ERR',
message: error.message
};
}
}