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 }); }