|
@@ -159,17 +159,7 @@ struct LittleMaterialsOutBound {
|
|
|
this.commonDialogController.open();
|
|
|
}
|
|
|
|
|
|
- // 判断小车状态
|
|
|
- async queryRgvInfo(): Promise<boolean> {
|
|
|
- let res: RgvInfo = await RobotErrorHandleRequest.get('/api/v1/wcs/rgv/rgv1', {}) as RgvInfo;
|
|
|
- if (res) {
|
|
|
- if (res.status != '0' || res.x != res.rx || res.y != res.ry) {
|
|
|
- return false;
|
|
|
- }
|
|
|
- return true; // 如果条件不满足,返回 true
|
|
|
- }
|
|
|
- return false; // 如果 res 为 null 或 undefined,返回 false
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
// 料箱出库的方法
|
|
|
callBoxOutboundFunc = async () => {
|
|
@@ -181,17 +171,7 @@ struct LittleMaterialsOutBound {
|
|
|
}, 2000);
|
|
|
return
|
|
|
}
|
|
|
- //查询小车的状态
|
|
|
- const rgvStatusNormal = await this.queryRgvInfo()
|
|
|
- if(!rgvStatusNormal) {
|
|
|
- this.reminds = '小车状态异常或位置错误,请检查后重试'
|
|
|
- this.remindController.open()
|
|
|
- setTimeout(() => {
|
|
|
- this.remindController.close()
|
|
|
- }, 2000);
|
|
|
- return
|
|
|
- }
|
|
|
- console.info('hhtest', this.drawerPositionStatus+'as')
|
|
|
+
|
|
|
if(this.drawerPositionStatus == 0) {
|
|
|
this.reminds = '抽屉未缩回,请检查后重试'
|
|
|
this.remindController.open()
|