1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import request from '@/utils/request'
// 更新客户佣金详情
export function updateCustomerCommissionInfo(data) {
return request({
url: '/ecw/customer-commission/update',
method: 'put',
data: data
})
}
//商品类型列表
export function itemTypeListApi(query){
return request({
url:'/ecw/product-attr/list',
method:'get',
query:query
})
}
//
export function customerDropDownList(query){
return request({
url:'/ecw/customer/select',
method:'get',
query,
})
}
//商品
export function commodityList(){
return request({
url:'/ecw/product/list',
method:'get',
})
}
//创建佣金
export function createCommission(query){
return request({
url:'/ecw/customer-commission/create',
method:'post',
data:query
})
}
// 获得客户佣金类型详情
export function getCustomerCommission(id) {
return request({
url: '/ecw/customer-commission-info/get-by-commission-id?commissionId=' + id,
method: 'get'
})
}
//获得客户佣金详情
export function commissionGetByCustomerId (id){
return request({
url:'/ecw/customer-commission/getByCustomerId?customerId='+id,
method:'get'
})
}