|
|
|
import request from '@/axios';
|
|
|
|
|
|
|
|
export const getList = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/list',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export const getPage = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/page',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export const getstatistics = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/statistics',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getDetail = (id) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/detail',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export const getOneclick = (data) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/oneloading',
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getWrapdetail = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/wrapdetail',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export const getpackdetail = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/packdetail',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export const getinventorydetail = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/inventory',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export const getorddetail = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/order',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const remove = (ids) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/remove',
|
|
|
|
method: 'post',
|
|
|
|
params: {
|
|
|
|
ids,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const add = (row) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/submit',
|
|
|
|
method: 'post',
|
|
|
|
data: row
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const update = (row) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/submit',
|
|
|
|
method: 'post',
|
|
|
|
data: row
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询配送任务信息
|
|
|
|
* @param id
|
|
|
|
* @returns {AxiosPromise}
|
|
|
|
*/
|
|
|
|
export const getDeliveryList = (id) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/deliveryList/getDeliveryList',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
id,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|