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.
45 lines
844 B
45 lines
844 B
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
|
|
})
|
|
}
|