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.
65 lines
1.1 KiB
65 lines
1.1 KiB
import http from '../utils/http/index.js'
|
|
|
|
/**
|
|
* 获取产品列表
|
|
*/
|
|
export function getProductionList(data = {}) {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/packagingProduct/list',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 添加或修改产品
|
|
*/
|
|
export function changeProduction(data = {}) {
|
|
return http.post({
|
|
url: '/base-paper-trading/save/packagingProduct',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 删除产品
|
|
* @param {object} data
|
|
* @property {array} idList string[]
|
|
*/
|
|
export function removeProduction(data = {}) {
|
|
return http.post({
|
|
url: '/base-paper-trading/delete/packagingProduct/by/ids',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取产品详情
|
|
* @param {object} data
|
|
* @property {string} id
|
|
*/
|
|
export function getProductionInfo(data = {}) {
|
|
return http.get({
|
|
url: `/base-paper-trading/get/packagingProduct/${data.id}`,
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取样品盒列表
|
|
*/
|
|
export function getSimpleList(data = {}) {
|
|
return http.get({
|
|
url: `/base-paper-trading/get/sample/box/list`,
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取样品盒详情
|
|
*/
|
|
export function getSimpleInfo(data = {}) {
|
|
return http.get({
|
|
url: `/base-paper-trading/get/sample/box/details`,
|
|
data
|
|
})
|
|
}
|