import request from "@/utils/request";
|
|
export const overviewMaterial = () => {
|
return request({
|
url: "/api-s/v1/material/overview",
|
method: "get",
|
});
|
};
|
// 物料导出
|
export const exportMaterial = (data) => {
|
return request({
|
url: "/api-s/v1/material/exportMaterial",
|
method: "post",
|
methodType:'down',
|
data,
|
});
|
};
|
export const getInpMaterialList = (data) => {
|
return request({
|
url: "/api-s/v1/material/getMaterialList",
|
method: "post",
|
data,
|
});
|
};
|
|
export const getOutMaterialList = (data) => {
|
return request({
|
url: "/api-s/v1/material/getMaterialList",
|
method: "post",
|
data,
|
});
|
};
|
export const getMaterialList = (data) => {
|
return request({
|
url: "/api-s/v1/material/getMaterialList",
|
method: "post",
|
data,
|
});
|
};
|
|
export const addMaterial = (data) => {
|
return request({
|
url: "/api-s/v1/material/addMaterial",
|
method: "post",
|
data,
|
});
|
};
|
export const deleteMaterial = (data) => {
|
return request({
|
url: 'api-s/v1/material/deleteMaterial',
|
method: "post",
|
data,
|
});
|
};
|
// 修改物料状态
|
|
export const setMaterialStatus = (data) => {
|
return request({
|
url: 'api-s/v1/material/setMaterialStatus',
|
method: "post",
|
data,
|
});
|
};
|
export const updateMaterial = (data) => {
|
return request({
|
url: "/api-s/v1/material/updateMaterial",
|
method: "post",
|
data,
|
});
|
};
|
|
// export const getInpMaterialList = async (data) => {
|
// return await axios.post("/api-s/v1/material/getInputMaterialList", data);
|
// };
|
|
// export const getOutMaterialList = async (data) => {
|
// return await axios.post("/api-s/v1/material/getOutputMaterialList", data);
|
// };
|
|
// export const getMaterialList = async (data) => {
|
// return await axios.post("/api-s/v1/material/getMaterialList", data);
|
// };
|
|
// export const addMaterial = async (data) => {
|
// return await axios.post("/api-s/v1/material/addMaterial", data);
|
// };
|
|
|
|
// export const updateMaterial = async (data) => {
|
// return await axios.post("/api-s/v1/material/updateMaterial", data);
|
// };
|