|
|
@@ -123,7 +123,22 @@ class StationTaskMaterialBoxService
|
|
|
}
|
|
|
|
|
|
function markTaken($stationTaskMaterialBox){
|
|
|
- 标记料箱任务为完成
|
|
|
+ try{
|
|
|
+ $taskType=$this->getServingTaskType($stationTaskMaterialBox);
|
|
|
+ switch ($taskType){
|
|
|
+ case '分波次':
|
|
|
+ $this->markProcessing($stationTaskMaterialBox);
|
|
|
+ $this->stationTaskBatchService->markProcessing($stationTaskMaterialBox['stationTaskBatch']);
|
|
|
+ $this->stationTaskCommodityService->markProcessing($stationTaskMaterialBox['stationTaskCommodities']);
|
|
|
+ break;
|
|
|
+ case '入立库':
|
|
|
+
|
|
|
+ break;
|
|
|
+ case '入库':break;
|
|
|
+ }
|
|
|
+ }catch (\Exception $e){
|
|
|
+ throw new ErrorException('放置料箱出错');
|
|
|
+ }
|
|
|
}
|
|
|
function markProcessed(StationTaskMaterialBox $stationTaskMaterialBox){
|
|
|
$stationTaskMaterialBox['status'] = '完成';
|