inventory.js
1.05 KB
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
import http from './interface'
// 选取补充入库的库位
export const pickLocation = () => {
return http.request({
url: '/inventory/mobile/pickLocation',
method:'POST'
})
}
// 查询库存明细列表
export const inventoryDetailList = (data) => {
return http.request({
url: '/inventory/inventoryDetail/inventoryDetailList',
method:'GET',
data
})
}
// 获取首页库存分布
export const getInventoryProp = () => {
return http.request({
url: '/inventory/inventoryHeader/home/getInventoryProp',
method: 'GET',
})
}
// 查询库存交易列表
export const listTransaction = (data) => {
return http.request({
url: '/inventory/inventoryTransaction',
method: 'GET',
data
})
}
// 获取库存超出上线和低于下限的数量
export const getMaterialWarningProp = () => {
return http.request({
url: '/inventory/inventoryWarning/getMaterialWarningProp',
method: 'GET'
})
}
export default {
pickLocation,
inventoryDetailList,
getInventoryProp,
listTransaction,
getMaterialWarningProp
}