@cpzxrobot/sdk 1.1.83 → 1.1.84

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.
@@ -104,4 +104,26 @@ export class CustomerGateway extends Object {
104
104
  }
105
105
  }
106
106
 
107
+ //获得客户状态列表
108
+ get status() {
109
+ return {
110
+ list: () => {
111
+ return this.context.ready.then((axios) => {
112
+ return axios.get(`/api/v2/coremde-sale/customer/status`);
113
+ });
114
+ },
115
+ }
116
+ }
117
+
118
+ //获得客户类型列表
119
+ get types() {
120
+ return {
121
+ list: () => {
122
+ return this.context.ready.then((axios) => {
123
+ return axios.get(`/api/v2/coremde-sale/customer/types`);
124
+ });
125
+ },
126
+ }
127
+ }
128
+
107
129
  }
@@ -76,5 +76,25 @@ class CustomerGateway extends Object {
76
76
  },
77
77
  };
78
78
  }
79
+ //获得客户状态列表
80
+ get status() {
81
+ return {
82
+ list: () => {
83
+ return this.context.ready.then((axios) => {
84
+ return axios.get(`/api/v2/coremde-sale/customer/status`);
85
+ });
86
+ },
87
+ };
88
+ }
89
+ //获得客户类型列表
90
+ get types() {
91
+ return {
92
+ list: () => {
93
+ return this.context.ready.then((axios) => {
94
+ return axios.get(`/api/v2/coremde-sale/customer/types`);
95
+ });
96
+ },
97
+ };
98
+ }
79
99
  }
80
100
  exports.CustomerGateway = CustomerGateway;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.83",
3
+ "version": "1.1.84",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -213,6 +213,8 @@ baseURL: "/"
213
213
  | cpzxrobot().customer.stat.china | 获得客户在全国的统计信息 |
214
214
  | cpzxrobot().customer.listByProvince | 获得客户在某个省的统计信息,传入province参数 |
215
215
  | cpzxrobot().customer.accountManager | 获得客户对应的销售员 |
216
+ | cpzxrobot().customer.types | 获得客户类型列表 |
217
+ | cpzxrobot().customer.status | 获得客户状态列表 |
216
218
  | cpzxrobot().company.list | 获得公司列表,传入必要的分页参数 |
217
219
  | cpzxrobot().company.rank.byRevenue | 按公司营收获取排名,传入必要的分页参数 |
218
220
  | cpzxrobot().company.rank.byProfit | 按公司利润获取排名,传入必要的分页参数 |