import request from '@/utils/request'
|
|
// 查询转运单列表
|
export function listTransport(query) {
|
return request({
|
url: '/system/transport/list',
|
method: 'get',
|
params: query
|
})
|
}
|
|
// 查询转运单详细
|
export function getTransport(id) {
|
return request({
|
url: '/system/transport/' + id,
|
method: 'get'
|
})
|
}
|
|
// 新增转运单
|
export function addTransport(data) {
|
return request({
|
url: '/system/transport',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 修改转运单
|
export function updateTransport(data) {
|
return request({
|
url: '/system/transport',
|
method: 'put',
|
data: data
|
})
|
}
|
|
// 删除转运单
|
export function delTransport(id) {
|
return request({
|
url: '/system/transport/' + id,
|
method: 'delete'
|
})
|
}
|
|
// 更新转运状态
|
export function updateTransportStatus(data) {
|
return request({
|
url: '/system/transport/status',
|
method: 'put',
|
data: data
|
})
|
}
|
|
// 导出转运单
|
export function exportTransport(query) {
|
return request({
|
url: '/system/transport/export',
|
method: 'get',
|
params: query
|
})
|
}
|