@cpzxrobot/sdk 1.1.98 → 1.1.99
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 +9 -0
- package/dist/customer_gateway.js +6 -0
- package/package.json +1 -1
- package/readme.md +1 -0
package/customer_gateway.ts
CHANGED
|
@@ -8,6 +8,7 @@ export class CustomerGateway extends Object {
|
|
|
8
8
|
this.context = context;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
// @deprecated
|
|
11
12
|
list(args: {
|
|
12
13
|
pageNo: number;
|
|
13
14
|
pageSize: number;
|
|
@@ -20,6 +21,14 @@ export class CustomerGateway extends Object {
|
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
listV2(args: any) {
|
|
25
|
+
|
|
26
|
+
return this.context.ready.then((axios) => {
|
|
27
|
+
return axios.post(`/api/v2/coremde-sale/customer/list/v2`, args);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
23
32
|
listByProvince(area_code: string) {
|
|
24
33
|
return this.context.ready.then((axios) => {
|
|
25
34
|
return axios.get(`/api/v2/coremde-sale/customer/province/get?area_code=${area_code}`);
|
package/dist/customer_gateway.js
CHANGED
|
@@ -6,11 +6,17 @@ class CustomerGateway extends Object {
|
|
|
6
6
|
super();
|
|
7
7
|
this.context = context;
|
|
8
8
|
}
|
|
9
|
+
// @deprecated
|
|
9
10
|
list(args) {
|
|
10
11
|
return this.context.ready.then((axios) => {
|
|
11
12
|
return axios.post(`/api/v2/coremde-sale/customer/list`, args);
|
|
12
13
|
});
|
|
13
14
|
}
|
|
15
|
+
listV2(args) {
|
|
16
|
+
return this.context.ready.then((axios) => {
|
|
17
|
+
return axios.post(`/api/v2/coremde-sale/customer/list/v2`, args);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
14
20
|
listByProvince(area_code) {
|
|
15
21
|
return this.context.ready.then((axios) => {
|
|
16
22
|
return axios.get(`/api/v2/coremde-sale/customer/province/get?area_code=${area_code}`);
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -208,6 +208,7 @@ baseURL: "/"
|
|
|
208
208
|
| cpzxrobot().contract.restart | 重新提交合同审批,传入id等参数 |
|
|
209
209
|
| cpzxrobot().contract.types | 获得合同类型列表,传入factory_id参数 |
|
|
210
210
|
| cpzxrobot().customer.list | 获得客户列表,传入factory_id和必要的分页参数 |
|
|
211
|
+
| cpzxrobot().customer.listV2 | 更新版本的获得客户列表,传入factory_id和必要的分页参数,请逐步替换list的使用 |
|
|
211
212
|
| cpzxrobot().customer.get | 获得客户信息,传入id参数 |
|
|
212
213
|
| cpzxrobot().customer.add | 添加客户 |
|
|
213
214
|
| cpzxrobot().customer.update | 更新客户 |
|