|
|
|
import request from '@/axios';
|
|
|
|
|
|
|
|
export const getList = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/list',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询客户的订单列表
|
|
|
|
* @param {} current
|
|
|
|
* @param {*} size
|
|
|
|
* @param {*} params
|
|
|
|
* @returns
|
|
|
|
*/
|
|
|
|
export const getClientList = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/clientList',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const getListOne = (current, size, params) => { //查询订单数据
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/list',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getDetail = (id) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/detail',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getQueryQRCode = (params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/getShowTemplate',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const remove = (ids) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/remove',
|
|
|
|
method: 'post',
|
|
|
|
params: {
|
|
|
|
ids,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const add = (row) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/submit',
|
|
|
|
method: 'post',
|
|
|
|
data: row
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export const addStockRow = (row) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/saveStockRow',
|
|
|
|
method: 'post',
|
|
|
|
data: row
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const addStock = (ids) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/saveStock',
|
|
|
|
method: 'post',
|
|
|
|
params: {
|
|
|
|
ids,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const update = (row) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/submit',
|
|
|
|
method: 'post',
|
|
|
|
data: row
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 订单添加增值服务
|
|
|
|
* @param row
|
|
|
|
* @returns {AxiosPromise}
|
|
|
|
*/
|
|
|
|
export const addIncrement = (row) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/addIncrement',
|
|
|
|
method: 'post',
|
|
|
|
data: row
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getStockArticleList = ( ids) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/stockArticleInfo',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
ids
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const selectStockArticleList = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/list',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getStockAddValue = (id) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionAddvalue/getStockAddValue',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
id,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const selectStockArticleAndParcel = (params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-distribution/distributionStockArticle/selectStockArticleAndParcel',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|