haoxuan
2023-08-18 8118f56d86267e443f147c17ccb014338607e247
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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);
// };