const URL = "/one-api/cpone/masterdata/"; export async function search(prm) { try { var resp = await axios.post(URL + 'nonlabtemplate/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 addnonlab(prm) { try { var resp = await axios.post(URL + 'nonlabtemplate/addnonlab', 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 editnonlab(prm) { try { var resp = await axios.post(URL + 'nonlabtemplate/editnonlab', 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 deletenonlab(prm) { try { var resp = await axios.post(URL + 'nonlabtemplate/deletenonlab', 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 }; } }