material.js
984 Bytes
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
import http from './interface'
// 查询物料信息
export const searchMaterialInCondition = (data) => {
return http.request({
url: '/config/mobile/searchMaterialInCondition',
method:'POST',
data
})
}
// 获取物料类型
export const getMaterialType = () => {
return http.request({
url: '/config/mobile/getMaterialType',
method:'POST'
})
}
// 创建物料编码
export const createMaterialCode = () => {
return http.request({
url: '/config/mobile/createMaterialCode',
method:'POST'
})
}
// 增加物料信息
export const addMaterial = (data) => {
return http.request({
url: '/config/mobile/addMaterial',
method:'POST',
data
})
}
// 删除物料信息
export const delMaterial = (id) => {
return http.request({
url: '/config/material?ids='+id,
method:'DELETE',
})
}
export default {
searchMaterialInCondition,
getMaterialType,
createMaterialCode,
addMaterial,
delMaterial
}