header.js
2.41 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import request from '@/utils/request'
// 查询出库单主表
export function listHeader(query) {
return request({
url: '/shipment/shipmentHeader',
method: 'get',
params: query
})
}
// 删除出库单主表
export function delHeader(ids) {
return request({
url: '/shipment/shipmentHeader/'+ids,
method: 'delete'
})
}
// 获取出库单根据id查询出库单主表
export function getHeader(id) {
return request({
url: '/shipment/shipmentHeader/'+id,
method: 'get'
})
}
// 新增出库单主
export function addHeader(data) {
return request({
url: '/shipment/shipmentHeader/add',
method: 'post',
data: data
})
}
// 加入波次
export function addwave(code,ids) {
return request({
url: '/shipment/shipmentHeader/addWave',
method: 'post',
params: {code,ids}
})
}
// 修改保存出库单主
export function updateHeader(data) {
return request({
url: '/shipment/shipmentHeader/edit',
method: 'post',
data: data
})
}
// 审核出库单主表
export function auditHeader(ids) {
return request({
url: '/shipment/shipmentHeader/review?ids='+ids,
method: 'post'
})
}
// 查询波次列表
export function checkWave(data) {
return request({
url: '/shipment/shipmentHeader/waveList',
method: 'get',
data: data
})
}
// 获取出库单类型select---------------------------------------------
export function getTypeSelect() {
return request({
url: '/config/shipmentType/getType',
method: 'get'
})
}
// 获取用户可操作的货主------------------------------
export function getCompanySelect() {
return request({
url: '/system/company/getCompaniesByToken',
method: 'get'
})
}
//查询客户编码select----------------------
export function getCustomerSelect() {
return request({
url: '/config/customer/getCode',
method: 'get'
})
}
/*// 查询主表打印列表
export function listHeaderprint(data) {
return request({
// url: '/shipment/shipmentHeader/',
method: 'get',
data: data
})
export function getType2(shipmentType) {
return request({
url: '/config/shipmentType/getByCode',
method: 'post',
params: {shipmentType}
})
//根据用户id和仓库编码获取货主select
export function getCompanySelect(userId,warehouseCode) {
return request({
url: '/system/company/companies',
method: 'get',
params: {userId, warehouseCode}
})
}
}*/