@cpzxrobot/sdk 1.1.82 → 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.
- package/contract_gateway.ts +6 -0
- package/customer_gateway.ts +22 -0
- package/dist/contract_gateway.js +5 -0
- package/dist/customer_gateway.js +20 -0
- package/package.json +1 -1
- package/readme.md +3 -0
package/contract_gateway.ts
CHANGED
package/customer_gateway.ts
CHANGED
|
@@ -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
|
}
|
package/dist/contract_gateway.js
CHANGED
|
@@ -40,5 +40,10 @@ class ContractGateway extends Object {
|
|
|
40
40
|
return axios.post(`/api/v2/coremde-sale/contract/restart`, args);
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
+
types() {
|
|
44
|
+
return this.context.ready.then((axios) => {
|
|
45
|
+
return axios.get(`/api/v2/coremde-sale/contract/types`);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
43
48
|
}
|
|
44
49
|
exports.ContractGateway = ContractGateway;
|
package/dist/customer_gateway.js
CHANGED
|
@@ -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
package/readme.md
CHANGED
|
@@ -204,6 +204,7 @@ baseURL: "/"
|
|
|
204
204
|
| cpzxrobot().contract.export | 导出合同信息,建议传入自定义文件名,否则默认文件名 |
|
|
205
205
|
| cpzxrobot().contract.approval | 审批合同,传入id参数和审批意见 |
|
|
206
206
|
| cpzxrobot().contract.restart | 重新提交合同审批,传入id等参数 |
|
|
207
|
+
| cpzxrobot().contract.types | 获得合同类型列表,传入factory_id参数 |
|
|
207
208
|
| cpzxrobot().customer.list | 获得客户列表,传入factory_id和必要的分页参数 |
|
|
208
209
|
| cpzxrobot().customer.get | 获得客户信息,传入id参数 |
|
|
209
210
|
| cpzxrobot().customer.add | 添加客户 |
|
|
@@ -212,6 +213,8 @@ baseURL: "/"
|
|
|
212
213
|
| cpzxrobot().customer.stat.china | 获得客户在全国的统计信息 |
|
|
213
214
|
| cpzxrobot().customer.listByProvince | 获得客户在某个省的统计信息,传入province参数 |
|
|
214
215
|
| cpzxrobot().customer.accountManager | 获得客户对应的销售员 |
|
|
216
|
+
| cpzxrobot().customer.types | 获得客户类型列表 |
|
|
217
|
+
| cpzxrobot().customer.status | 获得客户状态列表 |
|
|
215
218
|
| cpzxrobot().company.list | 获得公司列表,传入必要的分页参数 |
|
|
216
219
|
| cpzxrobot().company.rank.byRevenue | 按公司营收获取排名,传入必要的分页参数 |
|
|
217
220
|
| cpzxrobot().company.rank.byProfit | 按公司利润获取排名,传入必要的分页参数 |
|