Flatten nested repos
This commit is contained in:
75
test/vuex/one-process-instrument-order/api/io_left.js
Normal file
75
test/vuex/one-process-instrument-order/api/io_left.js
Normal file
@@ -0,0 +1,75 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL =
|
||||
"/one-api/mockup/process/instrumentorder/";
|
||||
|
||||
export async function search_px(start_date, end_date, search, page) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'io_left/search_px', {
|
||||
start_date: start_date,
|
||||
end_date: end_date,
|
||||
search: search,
|
||||
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 search_patient(start_date, end_date, search, page) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'io_left/search_patient', {
|
||||
start_date: start_date,
|
||||
end_date: end_date,
|
||||
search: search,
|
||||
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 search_worklist(search, page) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'io_left/search_worklist', {
|
||||
search: search,
|
||||
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
|
||||
};
|
||||
}
|
||||
}
|
||||
97
test/vuex/one-process-instrument-order/api/io_right.js
Normal file
97
test/vuex/one-process-instrument-order/api/io_right.js
Normal file
@@ -0,0 +1,97 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL =
|
||||
"/one-api/mockup/process/instrumentorder/";
|
||||
|
||||
export async function search_px(order_id, page) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'io_right/search_px', {
|
||||
order_id: order_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 search_patient(start_date, end_date, px_id, page) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'io_right/search_patient', {
|
||||
start_date: start_date,
|
||||
end_date: end_date,
|
||||
px_id: px_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 search_worklist_patient(start_date, end_date, worklist_id, page) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'io_right/search_worklist_patient', {
|
||||
start_date: start_date,
|
||||
end_date: end_date,
|
||||
worklist_id: worklist_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 send_orders(token, datax) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'io_right/send_orders', {
|
||||
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
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user