45 lines
898 B
JavaScript
45 lines
898 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询主要产品销售记录列表
|
|
export function listMainProductsSales(query) {
|
|
return request({
|
|
url: '/mainProductsSales/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询主要产品销售记录详细
|
|
export function getMainProductsSales(id) {
|
|
return request({
|
|
url: '/mainProductsSales/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增主要产品销售记录
|
|
export function addMainProductsSales(data) {
|
|
return request({
|
|
url: '/mainProductsSales',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改主要产品销售记录
|
|
export function updateMainProductsSales(data) {
|
|
return request({
|
|
url: '/mainProductsSales',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除主要产品销售记录
|
|
export function delMainProductsSales(id) {
|
|
return request({
|
|
url: '/mainProductsSales/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|