const URL = "/one-api/tools/"; export async function save(prm) { try { var resp = await axios.post(URL + 'futureorderfix/addnewtransaction', 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 saveall(prm) { try { var resp = await axios.post(URL + 'futureorderfix/saveallqc', 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 xdelete(token,id) { try { var resp = await axios.post(URL + 'futureorderfix/deleteqc', { id: id ,token:token}); 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 activeqc(token,id) { try { var resp = await axios.post(URL + 'futureorderfix/activeqc', { id: id ,token:token}); 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 searchcontrol(prm) { try { var resp = await axios.post(URL + 'futureorderfix/searchcontrol',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 searchtest(prm) { try { var resp = await axios.post(URL + 'futureorderfix/searchtest',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 searchcity(prm) { try { var resp = await axios.post(URL + 'futureorderfix/searchcity',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 searchdistrict(prm) { try { var resp = await axios.post(URL + 'futureorderfix/searchdistrict',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 searchkelurahan(prm) { try { var resp = await axios.post(URL + 'futureorderfix/searchkelurahan',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 + 'futureorderfix/searchcompany',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 searchmou(prm) { try { var resp = await axios.post(URL + 'futureorderfix/searchmou',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 searchdoctor(prm) { try { var resp = await axios.post(URL + 'futureorderfix/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 lookupbyid(prm) { try { var resp = await axios.post(URL + 'futureorderfix/lookupqcbyid', 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 lookupbyname(prm) { try { var resp = await axios.post(URL + 'futureorderfix/lookupqcbyname', 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 selectaddressdoctor(prm) { try { var resp = await axios.post(URL + 'futureorderfix/selectaddressdoctor',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 }; } }