@cpzxrobot/sdk 1.1.66 → 1.1.67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.66",
3
+ "version": "1.1.67",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -143,6 +143,7 @@ baseURL: "/"
143
143
  | cpzxrobot().unit.batch.bind | 绑定单元和生产批次关系 |
144
144
  | cpzxrobot().unit.batch.clear | 清除单元绑定的生产批次 |
145
145
  | cpzxrobot().unit.batch.get | 获取单元绑定的生产批次 |
146
+ | cpzxrobot().unit.batch.list | 获取多个单元的生产批次信息 |
146
147
  | cpzxrobot().user.add | 添加用户 |
147
148
  | cpzxrobot().user.update | 更新用户 |
148
149
  | cpzxrobot().user.list | 列出用户(传入工厂) |
package/unit_gateway.ts CHANGED
@@ -128,6 +128,14 @@ export class UnitGateway extends Object {
128
128
  return axios.get(`/api/v2/batch/unit/${unitNo}`);
129
129
  });
130
130
  },
131
+ list: (unitIds: Number[]) => {
132
+ return this.context.ready.then((axios) => {
133
+ return axios.post(
134
+ `/api/v2/batch/unit/getUnitBatchs`,{
135
+ unitIds
136
+ });
137
+ });
138
+ },
131
139
  }
132
140
  }
133
141