|
|
@@ -71,7 +71,16 @@ class StorageService
|
|
|
]);
|
|
|
$stationTaskMaterialBox->loadMissing("station");
|
|
|
//清理原有任务
|
|
|
- $this->clearTask([$stationTaskMaterialBox->station->code]);
|
|
|
+ if ($stationTaskMaterialBox->station){
|
|
|
+ switch ($stationTaskMaterialBox->station->parent_id){
|
|
|
+ case 6:
|
|
|
+ $this->clearTask([$stationTaskMaterialBox->station->code]);
|
|
|
+ break;
|
|
|
+ case 7:
|
|
|
+ app("CacheShelfService")->_stationCacheLightOn($stationTaskMaterialBox->station->code);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
DB::commit();
|
|
|
}catch (\Exception $e){
|
|
|
DB::rollBack();
|
|
|
@@ -105,7 +114,7 @@ class StorageService
|
|
|
->where("status",0)->first();
|
|
|
if (!$task)return;
|
|
|
//蓝灯闪烁
|
|
|
- if ($task->type == '入库' && $task->mark == 1)app("CacheShelfService")->stationLightUp($stationTaskMaterialBox->station->code,null,'2','2');
|
|
|
+ if ($task->type == '入库' && $task->mark == 1)app("CacheShelfService")->stationLightUp($stationTaskMaterialBox->station->code,null,'2','2',"可放置商品数量“".$task->amount."”");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -145,10 +154,8 @@ class StorageService
|
|
|
$task->update([
|
|
|
"task_id" => $taskMaterialBox->id,
|
|
|
"status" => 1,
|
|
|
- "user_id" => Auth::id(),
|
|
|
]);//标记事务完成
|
|
|
- $collection = new Collection([$taskMaterialBox]);
|
|
|
- app("ForeignHaiRoboticsService")->fetchGroup($station->code,$collection,'','缓存架入立架'); //呼叫机器人入库
|
|
|
+ app("ForeignHaiRoboticsService")->putBinToStore_fromCacheShelf($taskMaterialBox,$station->code); //呼叫机器人入库
|
|
|
DB::commit();
|
|
|
DB::connection("oracle")->commit();
|
|
|
return true;
|