Initial import
This commit is contained in:
74
one-ui/system/one-inject-price/api/patient.js
Normal file
74
one-ui/system/one-inject-price/api/patient.js
Normal file
@@ -0,0 +1,74 @@
|
||||
// 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
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user