Files
FE_CPONE/test/vuex/cpone-map-test-local/api/fisikdetail.js
2026-04-27 10:13:31 +07:00

39 lines
987 B
JavaScript

const URL = "/one-api/cpone/masterdata/";
export async function lookup(prm) {
try {
var resp = await axios.post(URL + 'maplocaltest/lookupdetailbyid', prm);
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
let data = resp.data;
return data;
} catch (e) {
return {
status: "ERR",
message: e.message
};
}
}
export async function saveaddeditfisikdetail(prm) {
try {
var resp = await axios.post(URL + 'maplocaltest/saveaddeditfisikdetail', prm);
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
let data = resp.data;
return data;
} catch (e) {
return {
status: "ERR",
message: e.message
};
}
}