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.
209 lines
4.1 KiB
209 lines
4.1 KiB
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', |
|
responseType: 'blob', |
|
params: { |
|
...params |
|
} |
|
}) |
|
} |
|
|
|
export const showOrderPackgeCode = (params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockArticle/showOrderPackgeCode', |
|
method: 'get', |
|
params: { |
|
...params |
|
} |
|
}) |
|
} |
|
|
|
export const getStockTemplate = (params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockArticle/getPrintTemplate', |
|
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, |
|
} |
|
}) |
|
} |
|
|
|
export const selectStockArticleInfoList = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/distributionStockArticle/selectStockArticleInfoList', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
|
|
export const selectUpdateAvailableStockArticle = (id) => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/selectUpdateAvailableStockArticle', |
|
method: 'get', |
|
params: { |
|
id |
|
} |
|
}) |
|
} |
|
|
|
|
|
|