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.
udi-cpt-vue/src/api/purchase/suppliersRegistrationBasic.js

57 lines
1.2 KiB
JavaScript

import axios from "@/utils/request";
export function getRegistrationList(query) {
return axios({
url: "/sup/manufacturer/getCompanyList",
// url: "/sup/product/getRegistrationList",
method: "get",
params: query
});
}
export function getRegistrationInfo(query) {
return axios({
url: "/sup/product/getRegistrationInfo",
method: "get",
params: query
});
}
export function addOrModifyRegistration(query, formName) {
let url = formName === "add" ?
"/sup/product/addRegistration" : "/sup/product/modifyRegistration";
return axios(
{
url: url,
method: "post",
data: query
}
);
}
export function deleteRegistration(query) {
return axios({
url: "/sup/product/delete",
method: "get",
params: query
});
}
export function auditSupProduct(data) {
return axios({
url: '/udiwms/pur/suppliers/product/audit',
method: 'post',
data: data
})
}
export function bindProduct(data) {
return axios({
url: '/sup/product/selectBind',
method: 'post',
data: data
})
}