@cpzxrobot/sdk 1.1.76 → 1.1.77

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.
@@ -145,6 +145,12 @@ class ProjectGateway extends Object {
145
145
  return axios.post(`/api/v2/coremde-sale/project/inquiry/add`, args);
146
146
  });
147
147
  },
148
+ //重新提交询价审核流程
149
+ restart: (args) => {
150
+ return this.context.ready.then((axios) => {
151
+ return axios.post(`/api/v2/coremde-sale/project/inquiry/restart`, args);
152
+ });
153
+ },
148
154
  export: (id, fileName = "询价.pdf") => {
149
155
  return this.context.ready.then((axios) => {
150
156
  return axios.getAndSave(`/api/v2/coremde-sale/project/inquiry/export`, {
@@ -159,6 +165,13 @@ class ProjectGateway extends Object {
159
165
  return this.context.ready.then((axios) => {
160
166
  return axios.post(`/api/v2/coremde-sale/project/inquiry/approve`, args);
161
167
  });
168
+ },
169
+ documents: (args) => {
170
+ return this.context.ready.then((axios) => {
171
+ return axios.get(`/api/v2/coremde-sale/project/inquiry/documents`, {
172
+ params: args
173
+ });
174
+ });
162
175
  }
163
176
  };
164
177
  }
@@ -219,6 +219,13 @@ class UserGateway extends Object {
219
219
  type
220
220
  });
221
221
  });
222
+ },
223
+ delete: (ids) => {
224
+ return this.context.ready.then((axios) => {
225
+ return axios.post(`/api/v2/coremde-sale/search/delete`, {
226
+ ids
227
+ });
228
+ });
222
229
  }
223
230
  };
224
231
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.76",
3
+ "version": "1.1.77",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -186,6 +186,12 @@ export class ProjectGateway extends Object {
186
186
  return axios.post(`/api/v2/coremde-sale/project/inquiry/add`, args);
187
187
  });
188
188
  },
189
+ //重新提交询价审核流程
190
+ restart: (args: any) => {
191
+ return this.context.ready.then((axios) => {
192
+ return axios.post(`/api/v2/coremde-sale/project/inquiry/restart`, args);
193
+ });
194
+ },
189
195
  export: (id: number,fileName: string = "询价.pdf") => {
190
196
  return this.context.ready.then((axios) => {
191
197
  return axios.getAndSave(`/api/v2/coremde-sale/project/inquiry/export`, {
@@ -200,6 +206,13 @@ export class ProjectGateway extends Object {
200
206
  return this.context.ready.then((axios) => {
201
207
  return axios.post(`/api/v2/coremde-sale/project/inquiry/approve`, args);
202
208
  });
209
+ },
210
+ documents: (args: any) => {
211
+ return this.context.ready.then((axios) => {
212
+ return axios.get(`/api/v2/coremde-sale/project/inquiry/documents`, {
213
+ params: args
214
+ });
215
+ });
203
216
  }
204
217
  };
205
218
  }
package/readme.md CHANGED
@@ -157,6 +157,7 @@ baseURL: "/"
157
157
  | cpzxrobot().user.checkin.list | 列出用户签到记录,传入userId和date参数 |
158
158
  | cpzxrobot().user.searchHistory.list | 列出用户搜索历史记录,传入type参数 |
159
159
  | cpzxrobot().user.searchHistory.add | 添加用户搜索历史记录,传入type参数和搜索内容 |
160
+ | cpzxrobot().user.searchHistory.delete | 删除用户搜索历史记录,传入ids参数 |
160
161
  | cpzxrobot().user.stat.china | 获得员工在全国的统计信息 |
161
162
  | cpzxrobot().user.listByProvince | 获得员工在某个省的统计信息,传入province参数 |
162
163
  | cpzxrobot().user.listByCity | 获得员工在某个市的统计信息,传入city参数 |
@@ -188,6 +189,8 @@ baseURL: "/"
188
189
  | cpzxrobot().project.inquiry.add | 添加项目询盘信息,传入project_id和询盘内容 |
189
190
  | cpzxrobot().project.inquiry.export | 导出项目询盘信息,传入project_id参数,建议传入自定义文件名,否则默认文件名 |
190
191
  | cpzxrobot().project.inquiry.approval | 审批项目询盘,传入id参数和审批意见 |
192
+ | cpzxrobot().project.inquiry.restart | 重新提交项目询盘,传入id参数 |
193
+ | cpzxrobot().project.inquiry.documents | 获得项目询盘文档列表 |
191
194
  | cpzxrobot().project.document.list | 获得项目文档列表,传入project_id参数 |
192
195
  | cpzxrobot().project.document.export | 导出项目文档信息,传入id参数,建议传入自定义文件名,否则默认文件名 |
193
196
  | cpzxrobot().project.material.list | 获得项目物料到货列表,传入project_id参数 |
@@ -199,6 +202,7 @@ baseURL: "/"
199
202
  | cpzxrobot().contract.add | 添加合同 |
200
203
  | cpzxrobot().contract.export | 导出合同信息,建议传入自定义文件名,否则默认文件名 |
201
204
  | cpzxrobot().contract.approval | 审批合同,传入id参数和审批意见 |
205
+ | cpzxrobot().contract.restart | 重新提交合同审批,传入id等参数 |
202
206
  | cpzxrobot().customer.list | 获得客户列表,传入factory_id和必要的分页参数 |
203
207
  | cpzxrobot().customer.get | 获得客户信息,传入id参数 |
204
208
  | cpzxrobot().customer.add | 添加客户 |
package/user_gateway.ts CHANGED
@@ -243,6 +243,13 @@ export class UserGateway extends Object {
243
243
  type
244
244
  });
245
245
  });
246
+ },
247
+ delete: (ids: number[]) => {
248
+ return this.context.ready.then((axios) => {
249
+ return axios.post(`/api/v2/coremde-sale/search/delete`, {
250
+ ids
251
+ });
252
+ });
246
253
  }
247
254
  }
248
255
  }