@cpzxrobot/sdk 1.2.4 → 1.2.5
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/customer_gateway.ts +2 -2
- package/dist/customer_gateway.js +2 -2
- package/dist/transport_gateway.js +14 -0
- package/package.json +1 -1
- package/readme.md +1 -0
- package/transport_gateway.ts +14 -0
package/customer_gateway.ts
CHANGED
|
@@ -128,9 +128,9 @@ export class CustomerGateway extends Object {
|
|
|
128
128
|
|
|
129
129
|
get count() {
|
|
130
130
|
return {
|
|
131
|
-
byStatus: () => {
|
|
131
|
+
byStatus: (companyId: Number) => {
|
|
132
132
|
return this.context.ready.then((axios) => {
|
|
133
|
-
return axios.get(`/api/v2/coremde-sale/customer/status/list-count`);
|
|
133
|
+
return axios.get(`/api/v2/coremde-sale/customer/status/list-count?companyId=${companyId}`);
|
|
134
134
|
});
|
|
135
135
|
},
|
|
136
136
|
}
|
package/dist/customer_gateway.js
CHANGED
|
@@ -94,9 +94,9 @@ class CustomerGateway extends Object {
|
|
|
94
94
|
}
|
|
95
95
|
get count() {
|
|
96
96
|
return {
|
|
97
|
-
byStatus: () => {
|
|
97
|
+
byStatus: (companyId) => {
|
|
98
98
|
return this.context.ready.then((axios) => {
|
|
99
|
-
return axios.get(`/api/v2/coremde-sale/customer/status/list-count`);
|
|
99
|
+
return axios.get(`/api/v2/coremde-sale/customer/status/list-count?companyId=${companyId}`);
|
|
100
100
|
});
|
|
101
101
|
},
|
|
102
102
|
};
|
|
@@ -100,6 +100,20 @@ class TransportGateway extends Object {
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
},
|
|
103
|
+
delete: (id) => {
|
|
104
|
+
return this.context.ready.then(() => {
|
|
105
|
+
return this.context.axios
|
|
106
|
+
.get("/api/v2/pigfarm/feedTower/fodder/delete", {
|
|
107
|
+
params: { id }
|
|
108
|
+
})
|
|
109
|
+
.then((res) => {
|
|
110
|
+
if (res.data.code != 200) {
|
|
111
|
+
throw res.data.message;
|
|
112
|
+
}
|
|
113
|
+
return res.data;
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
},
|
|
103
117
|
};
|
|
104
118
|
}
|
|
105
119
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -103,6 +103,7 @@ baseURL: "/"
|
|
|
103
103
|
| cpzxrobot().factory.workshop.delete | 删除车间信息,需要传入id参数 |
|
|
104
104
|
| cpzxrobot().factory.batch.list | 获得批次列表,传入factoryId参数 |ldiba
|
|
105
105
|
| cpzxrobot().transport.fodder.getDeviceByFodderld | 获得料单对应的设备 |
|
|
106
|
+
| cpzxrobot().transport.fodder.delete | 删除饲料信息,需要传入id参数 |
|
|
106
107
|
| cpzxrobot().pigfarm.heatlamp.xxx | 操作保温灯 |
|
|
107
108
|
| cpzxrobot().pigfarm.weightMeter.config.list | 获取称重计的配置信息 |
|
|
108
109
|
| cpzxrobot().pigfarm.weightMeter.config.bind | 添加称重计的配置信息,绑定到料塔 |
|
package/transport_gateway.ts
CHANGED
|
@@ -116,6 +116,20 @@ export class TransportGateway extends Object {
|
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
},
|
|
119
|
+
delete: (id: number): Promise<any> => {
|
|
120
|
+
return this.context.ready.then(() => {
|
|
121
|
+
return this.context.axios
|
|
122
|
+
.get("/api/v2/pigfarm/feedTower/fodder/delete", {
|
|
123
|
+
params: { id }
|
|
124
|
+
})
|
|
125
|
+
.then((res) => {
|
|
126
|
+
if (res.data.code != 200) {
|
|
127
|
+
throw res.data.message;
|
|
128
|
+
}
|
|
129
|
+
return res.data;
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
},
|
|
119
133
|
};
|
|
120
134
|
}
|
|
121
135
|
}
|