add progress
This commit is contained in:
@@ -323,6 +323,25 @@ export async function getBarcodes(params) {
|
||||
}
|
||||
}
|
||||
|
||||
export async function getInventarisBelumSerah(params) {
|
||||
try {
|
||||
var resp = await axios.post(URL + '/getInventarisBelumSerah', params);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch (error) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: error.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function template(params) {
|
||||
try {
|
||||
var resp = await axios.post(URL + '/', params);
|
||||
@@ -340,4 +359,4 @@ export async function template(params) {
|
||||
message: error.message
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user