21 lines
560 B
JavaScript
21 lines
560 B
JavaScript
const URL = "/one-api/mockup/fo/verification/";
|
|
|
|
export async function search(search,companyid,mouid,orderdate,cito) {
|
|
try {
|
|
var resp = await axios.post(URL + 'px/search',{search:search,companyid:companyid,mouid:mouid,orderdate:orderdate,cito:cito});
|
|
if (resp.status != 200) {
|
|
return {
|
|
status: "ERR",
|
|
message: resp.statusText
|
|
};
|
|
}
|
|
let data = resp.data;
|
|
return data;
|
|
} catch(e) {
|
|
return {
|
|
status: "ERR",
|
|
message: e.message
|
|
};
|
|
}
|
|
}
|