const URL = "/one-api/mockup/fo/supervisor/"; export async function lookup(prm) { try { var resp = await axios.post(URL + 'supervisor/lookup_order',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 getdoctoraddress(prm) { try { var resp = await axios.post(URL + 'supervisor/getdoctoraddress',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 + 'supervisor/getmou',{id:prm.id}); 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 searchdoctor(prm) { try { console.log('aye') console.log(prm) var resp = await axios.post(URL + 'supervisor/searchdoctor',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 searchcompany(prm) { try { var resp = await axios.post(URL + 'supervisor/searchcompany',{search: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 checkprice(prm) { try { var resp = await axios.post(URL + 'supervisor/checkprice',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 save(prm) { try { var resp = await axios.post(URL + 'supervisor/saveorder',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 }; } }