@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.
- package/dist/factory_gateway.js +1 -1
- package/factory_gateway.ts +1 -1
- package/package.json +1 -1
- package/readme.md +1 -0
- package/unit_gateway.ts +2 -4
package/dist/factory_gateway.js
CHANGED
package/factory_gateway.ts
CHANGED
package/package.json
CHANGED
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: (
|
|
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
|
//获取某个单元的批次信息
|