Flatten nested repos
This commit is contained in:
27
test/vuex/one-process-resultvalidation-v6/api/company.js
Normal file
27
test/vuex/one-process-resultvalidation-v6/api/company.js
Normal file
@@ -0,0 +1,27 @@
|
||||
const URL = "/one-api/mockup/process/resultvalidation-v5/";
|
||||
|
||||
export async function search(token, qry, c_token) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'company/search', {
|
||||
token: token,
|
||||
qry: qry
|
||||
},{ cancelToken : c_token });
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data.data;
|
||||
return {
|
||||
status: "OK",
|
||||
data : data
|
||||
};
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
63
test/vuex/one-process-resultvalidation-v6/api/re_fna.js
Normal file
63
test/vuex/one-process-resultvalidation-v6/api/re_fna.js
Normal file
@@ -0,0 +1,63 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL = "/one-api/mockup/process/resultentryv4/";
|
||||
|
||||
export async function getfnaresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getfnaresult', 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 get_doctors(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getdoctorsfna', 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 saveresult_fna(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_fna', 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
|
||||
};
|
||||
}
|
||||
}
|
||||
29
test/vuex/one-process-resultvalidation-v6/api/re_history.js
Normal file
29
test/vuex/one-process-resultvalidation-v6/api/re_history.js
Normal file
@@ -0,0 +1,29 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL =
|
||||
"/one-api/mockup/process/resultvalidation-v6/";
|
||||
|
||||
export async function search(token, order_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/search', {
|
||||
token: token,
|
||||
order_id: order_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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
276
test/vuex/one-process-resultvalidation-v6/api/re_lcprep.js
Normal file
276
test/vuex/one-process-resultvalidation-v6/api/re_lcprep.js
Normal file
@@ -0,0 +1,276 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL = "/one-api/mockup/process/resultentryv4/";
|
||||
|
||||
export async function search(token, order_id, lang_id, lang_si, group_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/search', {
|
||||
token: token,
|
||||
order_id: order_id,
|
||||
lang_id: lang_id,
|
||||
lang_si: lang_si,
|
||||
group_id: group_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 save(token, lang_id, is_si, datax) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/save', {
|
||||
token: token,
|
||||
lang_id: lang_id,
|
||||
is_si: is_si,
|
||||
data: datax
|
||||
});
|
||||
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_template(token, test_id, value) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/save_template', {
|
||||
token: token,
|
||||
test_id: test_id,
|
||||
value: value
|
||||
});
|
||||
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 lang_export(token, order_id, lang_id, is_si) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/export', {
|
||||
token: token,
|
||||
order_id: order_id,
|
||||
lang_id: lang_id,
|
||||
is_si: is_si
|
||||
});
|
||||
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 search_group() {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/search_group', {});
|
||||
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 search_rerun(detail_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/search_rerun', {detail_id: detail_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 getpapsmearresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getpapsmearresult', 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 getlcprepresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getlcprepresult', 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 getfnaresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getfnaresult', 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 saveresult_papsmear(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_papsmear', 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 saveresult_lcprep(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_lcprep', 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 get_doctors(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getdoctorsfna', 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 saveresult_fna(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_fna', 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
|
||||
};
|
||||
}
|
||||
}
|
||||
237
test/vuex/one-process-resultvalidation-v6/api/re_papsmear.js
Normal file
237
test/vuex/one-process-resultvalidation-v6/api/re_papsmear.js
Normal file
@@ -0,0 +1,237 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL = "/one-api/mockup/process/resultentryv5/";
|
||||
|
||||
export async function search(token, order_id, lang_id, lang_si, group_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/search', {
|
||||
token: token,
|
||||
order_id: order_id,
|
||||
lang_id: lang_id,
|
||||
lang_si: lang_si,
|
||||
group_id: group_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 save(token, lang_id, is_si, datax) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/save', {
|
||||
token: token,
|
||||
lang_id: lang_id,
|
||||
is_si: is_si,
|
||||
data: datax
|
||||
});
|
||||
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_template(token, test_id, value) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/save_template', {
|
||||
token: token,
|
||||
test_id: test_id,
|
||||
value: value
|
||||
});
|
||||
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 lang_export(token, order_id, lang_id, is_si) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/export', {
|
||||
token: token,
|
||||
order_id: order_id,
|
||||
lang_id: lang_id,
|
||||
is_si: is_si
|
||||
});
|
||||
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 search_group() {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/search_group', {});
|
||||
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 search_rerun(detail_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/search_rerun', {detail_id: detail_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 getpapsmearresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getpapsmearresult', 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 getfnaresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getfnaresult', 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 saveresult_papsmear(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_papsmear', 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 get_doctors(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getdoctorsfna', 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 saveresult_fna(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_fna', 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
|
||||
};
|
||||
}
|
||||
}
|
||||
95
test/vuex/one-process-resultvalidation-v6/api/re_patient.js
Normal file
95
test/vuex/one-process-resultvalidation-v6/api/re_patient.js
Normal file
@@ -0,0 +1,95 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL =
|
||||
"/one-api/mockup/process/resultvalidation-v6/";
|
||||
|
||||
export async function save_note(token, order_id , note) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_patient/save_note', {
|
||||
token: token,
|
||||
order_id:order_id ,
|
||||
note
|
||||
});
|
||||
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 send_to_adm(token, order_id ) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_patient/send_to_adm', {
|
||||
token: token,
|
||||
order_id:order_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 search(token, sdate, search, page,company_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_patient/search', {
|
||||
token: token,
|
||||
start_date: sdate,
|
||||
search: search,
|
||||
company_id: company_id,
|
||||
page: page
|
||||
});
|
||||
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 info_req(token, order_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_patient/info_req', {
|
||||
token: token,
|
||||
order_id: order_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
|
||||
};
|
||||
}
|
||||
}
|
||||
180
test/vuex/one-process-resultvalidation-v6/api/re_px.js
Normal file
180
test/vuex/one-process-resultvalidation-v6/api/re_px.js
Normal file
@@ -0,0 +1,180 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL = "/one-api/mockup/process/resultvalidation-v6/";
|
||||
|
||||
export async function single_validation(token, order_id, val) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_px/single_validation', {
|
||||
token: token,
|
||||
order_id: order_id,
|
||||
validation: val
|
||||
});
|
||||
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 search(token, order_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_px/search', {
|
||||
token: token,
|
||||
order_id: order_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 confirm(token, datax) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_validation/confirm', {
|
||||
token: token,
|
||||
data: datax
|
||||
});
|
||||
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 unvalidate(token, id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_validation/unvalidate', {
|
||||
token: token,
|
||||
order_id: 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 mr_state(token, order_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_validation/mr_state', {
|
||||
token: token,
|
||||
order_id: order_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 print_count(token, order_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_validation/print_count', {
|
||||
token: token,
|
||||
order_id: order_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 search_group() {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_px/search_group', {});
|
||||
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 reject(token, id, action) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_validation/reject', {
|
||||
token: token,
|
||||
id: id,
|
||||
action: action
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user