客户编辑添加绑定套餐

This commit is contained in:
luojiaquan
2026-09-16 17:06:50 +08:00
parent b1ceae4776
commit 6fbb9049bf
9 changed files with 761 additions and 0 deletions
@@ -0,0 +1,36 @@
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'
})
}