@cpzxrobot/sdk 1.2.55 → 1.2.56

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.
@@ -84,6 +84,7 @@ class FactoryGateway extends Object {
84
84
  },
85
85
  };
86
86
  }
87
+ //获得工厂的基础信息,城市,省份,建造信息等
87
88
  get info() {
88
89
  return {
89
90
  get: (factory) => {
@@ -230,6 +230,18 @@ class ProjectGateway extends Object {
230
230
  }
231
231
  };
232
232
  }
233
+ get stage() {
234
+ return {
235
+ // 获取项目阶段下拉列表
236
+ selectList: (groupId) => {
237
+ return this.context.ready.then((axios) => {
238
+ return axios.get(`/api/v2/coremde-sale/project/stage/select-list`, {
239
+ params: { groupId }
240
+ });
241
+ });
242
+ }
243
+ };
244
+ }
233
245
  get plan() {
234
246
  return {
235
247
  // 创建计划
@@ -97,6 +97,7 @@ export class FactoryGateway extends Object {
97
97
  };
98
98
  }
99
99
 
100
+ //获得工厂的基础信息,城市,省份,建造信息等
100
101
  get info() {
101
102
  return {
102
103
  get: (factory: Factory) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.2.55",
3
+ "version": "1.2.56",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -282,6 +282,19 @@ export class ProjectGateway extends Object {
282
282
  };
283
283
  }
284
284
 
285
+ get stage() {
286
+ return {
287
+ // 获取项目阶段下拉列表
288
+ selectList: (groupId: number) => {
289
+ return this.context.ready.then((axios) => {
290
+ return axios.get(`/api/v2/coremde-sale/project/stage/select-list`, {
291
+ params: { groupId }
292
+ });
293
+ });
294
+ }
295
+ };
296
+ }
297
+
285
298
  get plan() {
286
299
  return {
287
300
  // 创建计划