Flatten nested repos
This commit is contained in:
96
test/vuex/cpone-md-nonlab-template-v2/api/detail.js
Normal file
96
test/vuex/cpone-md-nonlab-template-v2/api/detail.js
Normal file
@@ -0,0 +1,96 @@
|
||||
const URL = "/one-api/cpone/masterdata/";
|
||||
|
||||
export async function searchdetail(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'nonlabtemplatev2/searchdetail', 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 adddetail(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'nonlabtemplatev2/adddetail', 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 deletedetail(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'nonlabtemplatev2/deletedetail', 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 saveeditflag(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'nonlabtemplatev2/saveeditflag', 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 editdetail(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'nonlabtemplatev2/editdetail', 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
|
||||
};
|
||||
}
|
||||
}
|
||||
77
test/vuex/cpone-md-nonlab-template-v2/api/nonlab.js
Normal file
77
test/vuex/cpone-md-nonlab-template-v2/api/nonlab.js
Normal file
@@ -0,0 +1,77 @@
|
||||
const URL = "/one-api/cpone/masterdata/";
|
||||
|
||||
export async function search(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'nonlabtemplatev2/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 + 'nonlabtemplatev2/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 + 'nonlabtemplatev2/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 + 'nonlabtemplatev2/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
|
||||
};
|
||||
}
|
||||
}
|
||||
39
test/vuex/cpone-md-nonlab-template-v2/api/nonlabtest.js
Normal file
39
test/vuex/cpone-md-nonlab-template-v2/api/nonlabtest.js
Normal file
@@ -0,0 +1,39 @@
|
||||
const URL = "/one-api/cpone/masterdata/";
|
||||
|
||||
export async function lookuptest(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'nonlabtemplatev2/lookuptest', 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 saveedittestmap(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'nonlabtemplatev2/saveedittestmap', 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
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user