Files
FE_CPONE/test/vuex/one-process-ref-out/api/company.js
2026-04-27 10:13:31 +07:00

25 lines
624 B
JavaScript

const URL = "/one-api/mockup/refout/refout/";
export async function search(search, is_internal, page) {
try {
var resp = await axios.post(URL + 'refout/search_company', {
search: search,
page: page,
is_internal: is_internal
});
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
let data = resp.data;
return data;
} catch (e) {
return {
status: "ERR",
message: e.message
};
}
}