const URL = "/one-api/mockup/process/cpone-process-resultentry-v21/"; export async function calc_age(prm ) { try { var resp = await axios.post(URL + 'helper/calc_age', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } return { status: "OK", data : resp.data.data }; } catch(e) { return { status: "ERR", message: e.message }; } } export async function check_status_print(prm ) { try { var resp = await axios.post(URL + 'helper/check_status_print', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } return { status: "OK", data : resp.data.data }; } catch(e) { return { status: "ERR", message: e.message }; } } export async function insertlogprint(prm ) { try { var resp = await axios.post(URL + 'helper/insertlogprint', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } return { status: "OK", data : resp.data.data }; } catch(e) { return { status: "ERR", message: e.message }; } }