@cpzxrobot/sdk 1.1.28 → 1.1.29
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/dist/unit_gateway.js +2 -2
- package/package.json +1 -1
- package/readme.md +11 -0
- package/unit_gateway.ts +2 -2
package/dist/unit_gateway.js
CHANGED
|
@@ -58,11 +58,11 @@ class UnitGateway extends Object {
|
|
|
58
58
|
});
|
|
59
59
|
},
|
|
60
60
|
//绑定阈值配置
|
|
61
|
-
bind: (unit,
|
|
61
|
+
bind: (unit, ids) => {
|
|
62
62
|
return this.context.ready.then((axios) => {
|
|
63
63
|
return axios.post(`/api/v2/unit/threshold`, {
|
|
64
64
|
unitId: unit.id,
|
|
65
|
-
|
|
65
|
+
ids: ids,
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
},
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -151,12 +151,23 @@ baseURL: "/"
|
|
|
151
151
|
| cpzxrobot().user.searchHistory.add | 添加用户搜索历史记录,传入type参数和搜索内容 |
|
|
152
152
|
| cpzxrobot().product.list | 获得产品列表,传入factory_id和必要的分页参数 |
|
|
153
153
|
| cpzxrobot().product.get | 获得产品信息,传入id参数 |
|
|
154
|
+
| cpzxrobot().product.price.list | 获得产品报价列表 |
|
|
155
|
+
| cpzxrobot().product.price.get | 获得产品报价信息,传入id参数 |
|
|
156
|
+
| cpzxrobot().product.price.add | 添加产品报价信息 |
|
|
154
157
|
| cpzxrobot().project.list | 获得项目列表,传入factory_id和必要的分页参数 |
|
|
155
158
|
| cpzxrobot().project.feedback.list | 获得项目反馈列表,传入project_id参数 |
|
|
156
159
|
| cpzxrobot().project.get | 获得项目信息,传入id参数 |
|
|
160
|
+
| cpzxrobot().project.inquiry.list | 获得项目询盘列表,传入project_id参数 |
|
|
161
|
+
| cpzxrobot().project.inquiry.get | 获得项目询盘信息,传入id参数 |
|
|
162
|
+
| cpzxrobot().project.inquiry.add | 添加项目询盘信息,传入project_id和询盘内容 |
|
|
157
163
|
| cpzxrobot().contract.list | 获得合同列表,传入factory_id和必要的分页参数 |
|
|
158
164
|
| cpzxrobot().contract.get | 获得合同信息,传入id参数 |
|
|
159
165
|
| cpzxrobot().contract.add | 添加合同 |
|
|
166
|
+
| cpzxrobot().customer.list | 获得客户列表,传入factory_id和必要的分页参数 |
|
|
167
|
+
| cpzxrobot().customer.get | 获得客户信息,传入id参数 |
|
|
168
|
+
| cpzxrobot().customer.add | 添加客户 |
|
|
169
|
+
| cpzxrobot().customer.update | 更新客户 |
|
|
170
|
+
| cpzxrobot().customer.visit.add | 添加客户拜访记录 |
|
|
160
171
|
|
|
161
172
|
### 工厂信息接口
|
|
162
173
|
|
package/unit_gateway.ts
CHANGED
|
@@ -75,11 +75,11 @@ export class UnitGateway extends Object {
|
|
|
75
75
|
});
|
|
76
76
|
},
|
|
77
77
|
//绑定阈值配置
|
|
78
|
-
bind: (unit: Unit,
|
|
78
|
+
bind: (unit: Unit, ids: number[]) => {
|
|
79
79
|
return this.context.ready.then((axios) => {
|
|
80
80
|
return axios.post(`/api/v2/unit/threshold`, {
|
|
81
81
|
unitId: unit.id,
|
|
82
|
-
|
|
82
|
+
ids: ids,
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
},
|