37 lines
926 B
JavaScript
37 lines
926 B
JavaScript
import request from '@/utils/request.js'
|
|
|
|
// 查询客户已绑定的套餐列表
|
|
export function listCustomerPriceSet(customerId) {
|
|
return request({
|
|
url: '/customersupplier/customerinfo/priceset/bind/list',
|
|
method: 'get',
|
|
params: { customerId }
|
|
})
|
|
}
|
|
|
|
// 查询可绑定的生效套餐选项
|
|
export function listPriceSetOption(query) {
|
|
return request({
|
|
url: '/customersupplier/customerinfo/priceset/option/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 保存客户套餐绑定(已绑定则更新/更换,未绑定则新增)
|
|
export function saveCustomerPriceSet(data) {
|
|
return request({
|
|
url: '/customersupplier/customerinfo/priceset/bind',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 解绑客户套餐
|
|
export function delCustomerPriceSet(customerPricesetIds) {
|
|
return request({
|
|
url: '/customersupplier/customerinfo/priceset/bind/' + customerPricesetIds,
|
|
method: 'delete'
|
|
})
|
|
}
|