You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
158 lines
2.9 KiB
158 lines
2.9 KiB
import request from '@/axios'; |
|
|
|
export const getList = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
|
|
export const getListAllocation = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/listAllocation', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
|
|
export const getStockListOwn = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/listOwn', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
|
|
export const getStockListClient = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/listClient', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
/** |
|
* 查询库存品详情 |
|
* @param current |
|
* @param size |
|
* @param params |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const selectInventoryDetail = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/selectInventoryDetail', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
|
|
export const getListStockList = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
|
|
export const getDetail = (id) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/detail', |
|
method: 'get', |
|
params: { |
|
id |
|
} |
|
}) |
|
} |
|
|
|
export const remove = (ids) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/remove', |
|
method: 'post', |
|
params: { |
|
ids, |
|
} |
|
}) |
|
} |
|
|
|
export const add = (row) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/submit', |
|
method: 'post', |
|
data: row |
|
}) |
|
} |
|
|
|
export const addParcels = (row) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/parcels', |
|
method: 'post', |
|
data: row |
|
}) |
|
} |
|
|
|
export const update = (row) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/submit', |
|
method: 'post', |
|
data: row |
|
}) |
|
} |
|
|
|
/** |
|
* 库存品列表 |
|
* @param current |
|
* @param size |
|
* @param params |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const getInventoryList = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/getInventoryList', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
|
|
/** |
|
* 查询包件详情 |
|
* @param id |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const getPackage = (id) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockList/packageList', |
|
method: 'get', |
|
params: { |
|
id |
|
} |
|
}) |
|
} |
|
|
|
|