@cpzxrobot/sdk 1.3.28 → 1.3.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/device_gateway.ts CHANGED
@@ -656,6 +656,23 @@ export class DeviceGateway extends Object {
656
656
  }
657
657
  }
658
658
 
659
+ get trouble() {
660
+ return {
661
+ list: async (
662
+ pageNum: number = 1,
663
+ pageSize: number = 10
664
+ ): Promise<any> => {
665
+ const axios = await this.context.ready;
666
+ return axios.get('/api/v3/device/trouble/list', {
667
+ params: {
668
+ pageNum,
669
+ pageSize
670
+ }
671
+ });
672
+ }
673
+ };
674
+ }
675
+
659
676
  get model() {
660
677
  return {
661
678
  list: async (manufacturerId: Number | undefined): Promise<any> => {
@@ -506,6 +506,19 @@ class DeviceGateway extends Object {
506
506
  }
507
507
  };
508
508
  }
509
+ get trouble() {
510
+ return {
511
+ list: async (pageNum = 1, pageSize = 10) => {
512
+ const axios = await this.context.ready;
513
+ return axios.get('/api/v3/device/trouble/list', {
514
+ params: {
515
+ pageNum,
516
+ pageSize
517
+ }
518
+ });
519
+ }
520
+ };
521
+ }
509
522
  get model() {
510
523
  return {
511
524
  list: async (manufacturerId) => {
@@ -368,6 +368,16 @@ class ProjectGateway extends Object {
368
368
  return axios.get(`/api/v2/coremde-sale/project/bom-config/history?id=${id}`);
369
369
  });
370
370
  },
371
+ /**
372
+ * 查看历史报价配置单详情(产品明细、审核结果、文件资料等)
373
+ * @param id 历史报价配置单ID
374
+ * @returns Promise
375
+ */
376
+ historyDetail: (id) => {
377
+ return this.context.ready.then((axios) => {
378
+ return axios.get(`/api/v2/coremde-sale/project/bom-config/history-detail?id=${id}`);
379
+ });
380
+ },
371
381
  };
372
382
  }
373
383
  get plan() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.3.28",
3
+ "version": "1.3.29",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -555,6 +555,19 @@ export class ProjectGateway extends Object {
555
555
  )
556
556
  })
557
557
  },
558
+ /**
559
+ * 查看历史报价配置单详情(产品明细、审核结果、文件资料等)
560
+ * @param id 历史报价配置单ID
561
+ * @returns Promise
562
+ */
563
+ historyDetail: (id: number) => {
564
+ return this.context.ready.then((axios) => {
565
+ return axios.get(
566
+ `/api/v2/coremde-sale/project/bom-config/history-detail?id=${id}`
567
+ )
568
+ })
569
+ },
570
+
558
571
  }
559
572
  }
560
573