Files
REG_IBL/one-ui/system/one-inject-price/api/patient.js
2026-05-25 20:01:37 +07:00

74 lines
1.8 KiB
JavaScript

// http://devbandungraya.aplikasi.web.id/one-api/mockup/injectprice/injectprice/getCompany/
const URL = "/one-api/mockup/injectprice/injectprice/";
export async function getCompany(prm) {
try {
var resp = await axios.post(URL + 'getCompany', 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 getMou(prm) {
try {
var resp = await axios.post(URL + 'getMou', 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 getTest(prm) {
try {
var resp = await axios.post(URL + 'getTest', prm);
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
return resp.data;
} catch (e) {
return {
status: "ERR",
message: e.message
};
}
}
export async function inject(prm) {
try {
var resp = await axios.post(URL + 'inject', 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
};
}
}