@cpzxrobot/sdk 1.1.79 → 1.1.81

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.
@@ -80,7 +80,7 @@ class FactoryGateway extends Object {
80
80
  },
81
81
  delete: async (id) => {
82
82
  var axios = await this.context.ready;
83
- return axios.get(`/api/v2/workshop/delete?id=${id}`);
83
+ return axios.post(`/api/v2/workshop/delete?id=${id}`);
84
84
  },
85
85
  };
86
86
  }
@@ -92,7 +92,7 @@ export class FactoryGateway extends Object {
92
92
  },
93
93
  delete: async (id: number) => {
94
94
  var axios = await this.context.ready;
95
- return axios.get(`/api/v2/workshop/delete?id=${id}`);
95
+ return axios.post(`/api/v2/workshop/delete?id=${id}`);
96
96
  },
97
97
  };
98
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.79",
3
+ "version": "1.1.81",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -99,6 +99,7 @@ baseURL: "/"
99
99
  | cpzxrobot().factory.workshop.get | 获得工厂的某个车间信息 |
100
100
  | cpzxrobot().factory.workshop.post | 添加车间信息 |
101
101
  | cpzxrobot().factory.workshop.types | 获得车间的类型列表 |
102
+ | cpzxrobot().factory.workshop.delete | 删除车间信息,需要传入id参数 |
102
103
  | cpzxrobot().factory.batch.list | 获得批次列表,传入factoryId参数 |ldiba
103
104
  | cpzxrobot().transport.fodder.getDeviceByFodderld | 获得料单对应的设备 |
104
105
  | cpzxrobot().pigfarm.heatlamp.xxx | 操作保温灯 |
package/unit_gateway.ts CHANGED
@@ -114,12 +114,10 @@ export class UnitGateway extends Object {
114
114
  });
115
115
  });
116
116
  },
117
- clear: (unitIds: Number[]) => {
117
+ clear: (args:any) => {
118
118
  return this.context.ready.then((axios) => {
119
119
  return axios.post(
120
- `/api/v2/batch/unit/empty`,{
121
- unitIds
122
- });
120
+ `/api/v2/batch/unit/empty`,args);
123
121
  });
124
122
  },
125
123
  //获取某个单元的批次信息