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.
|
|
|
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 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 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/list',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|