You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
udiwms-vue/src/api/basic/basicUnitMaintain.js

44 lines
985 B
JavaScript

import axios from "../../utils/axios";
export function getBasicUnitMaintains(query) {
return axios({
url: "/udiwms/basic/unit/maintain/filter",
method: "get",
params: query
});
}
export function basicUnitMaintainSave(data, formName, method = "post") {
let url =
formName === "add" ? "/udiwms/basic/unit/maintain/save" : "/udiwms/basic/unit/maintain/update";
return axios({
url: url,
method: method,
data: data
});
}
export function combine(query) {
return axios({
url: "/udiwms/basic/unit/maintain/combine",
method: "post",
data: query
});
}
export function deleteBasicUnitMaintain(query) {
return axios({
url: "/udiwms/basic/unit/maintain/delete",
method: "post",
data: query
});
}
export function ucloudUnit(query) {
return axios({
url: "/udiwms/unitMaintain/filterErp",
method: "get",
params: query
});
}