@cpzxrobot/sdk 1.1.85 → 1.1.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/customer_gateway.ts +13 -21
- package/dist/customer_gateway.js +8 -16
- package/package.json +1 -1
package/customer_gateway.ts
CHANGED
|
@@ -20,7 +20,7 @@ export class CustomerGateway extends Object {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
listByProvince(area_code:string){
|
|
23
|
+
listByProvince(area_code: string) {
|
|
24
24
|
return this.context.ready.then((axios) => {
|
|
25
25
|
return axios.get(`/api/v2/coremde-sale/customer/province/get?area_code=${area_code}`);
|
|
26
26
|
});
|
|
@@ -44,7 +44,7 @@ export class CustomerGateway extends Object {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
accountManager(customerId: number,pageNo:number|undefined= undefined,pageSize:number|undefined=undefined) {
|
|
47
|
+
accountManager(customerId: number, pageNo: number | undefined = undefined, pageSize: number | undefined = undefined) {
|
|
48
48
|
return this.context.ready.then((axios) => {
|
|
49
49
|
var params = {
|
|
50
50
|
customerId: customerId,
|
|
@@ -52,9 +52,9 @@ export class CustomerGateway extends Object {
|
|
|
52
52
|
pageSize: pageSize,
|
|
53
53
|
}
|
|
54
54
|
return axios.get(
|
|
55
|
-
`/api/v2/coremde-sale/customer/account-manager/list`,{
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
`/api/v2/coremde-sale/customer/account-manager/list`, {
|
|
56
|
+
params: params,
|
|
57
|
+
}
|
|
58
58
|
);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
@@ -105,25 +105,17 @@ export class CustomerGateway extends Object {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
//获得客户状态列表
|
|
108
|
-
|
|
109
|
-
return {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
return axios.get(`/api/v2/coremde-sale/customer/status`);
|
|
113
|
-
});
|
|
114
|
-
},
|
|
115
|
-
}
|
|
108
|
+
status() {
|
|
109
|
+
return this.context.ready.then((axios) => {
|
|
110
|
+
return axios.get(`/api/v2/coremde-sale/customer/status`);
|
|
111
|
+
});
|
|
116
112
|
}
|
|
117
113
|
|
|
118
114
|
//获得客户类型列表
|
|
119
|
-
|
|
120
|
-
return {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
return axios.get(`/api/v2/coremde-sale/customer/types`);
|
|
124
|
-
});
|
|
125
|
-
},
|
|
126
|
-
}
|
|
115
|
+
types() {
|
|
116
|
+
return this.context.ready.then((axios) => {
|
|
117
|
+
return axios.get(`/api/v2/coremde-sale/customer/types`);
|
|
118
|
+
});
|
|
127
119
|
}
|
|
128
120
|
|
|
129
121
|
}
|
package/dist/customer_gateway.js
CHANGED
|
@@ -77,24 +77,16 @@ class CustomerGateway extends Object {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
//获得客户状态列表
|
|
80
|
-
|
|
81
|
-
return {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return axios.get(`/api/v2/coremde-sale/customer/status`);
|
|
85
|
-
});
|
|
86
|
-
},
|
|
87
|
-
};
|
|
80
|
+
status() {
|
|
81
|
+
return this.context.ready.then((axios) => {
|
|
82
|
+
return axios.get(`/api/v2/coremde-sale/customer/status`);
|
|
83
|
+
});
|
|
88
84
|
}
|
|
89
85
|
//获得客户类型列表
|
|
90
|
-
|
|
91
|
-
return {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return axios.get(`/api/v2/coremde-sale/customer/types`);
|
|
95
|
-
});
|
|
96
|
-
},
|
|
97
|
-
};
|
|
86
|
+
types() {
|
|
87
|
+
return this.context.ready.then((axios) => {
|
|
88
|
+
return axios.get(`/api/v2/coremde-sale/customer/types`);
|
|
89
|
+
});
|
|
98
90
|
}
|
|
99
91
|
}
|
|
100
92
|
exports.CustomerGateway = CustomerGateway;
|