@cpzxrobot/sdk 1.1.82 → 1.1.83

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.
@@ -53,4 +53,10 @@ export class ContractGateway extends Object {
53
53
  });
54
54
  }
55
55
 
56
+ types() {
57
+ return this.context.ready.then((axios) => {
58
+ return axios.get(`/api/v2/coremde-sale/contract/types`);
59
+ });
60
+ }
61
+
56
62
  }
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.82",
3
+ "version": "1.1.83",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
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 | 添加客户 |