|
|
@@ -6,6 +6,7 @@ namespace App\Services;
|
|
|
|
|
|
use App\Batch;
|
|
|
use App\Exceptions\ErrorException;
|
|
|
+use App\MaterialBox;
|
|
|
use App\OrderCommodity;
|
|
|
use App\StationTask;
|
|
|
use App\StationTaskMaterialBox;
|
|
|
@@ -118,8 +119,10 @@ class StationTaskMaterialBoxService
|
|
|
function markTaken($stationTaskMaterialBox){
|
|
|
|
|
|
}
|
|
|
- function markProcessed($stationTaskMaterialBox){
|
|
|
-
|
|
|
+ function markProcessed(StationTaskMaterialBox $stationTaskMaterialBox){
|
|
|
+ $stationTaskMaterialBox['status'] = '完成';
|
|
|
+ $stationTaskMaterialBox->save();
|
|
|
+ $this->stationService->broadcastBinMonitor($stationTaskMaterialBox['station_id'],$stationTaskMaterialBox['stationTask']);
|
|
|
}
|
|
|
|
|
|
function markProcessing($stationTaskMaterialBox)
|
|
|
@@ -135,8 +138,11 @@ class StationTaskMaterialBoxService
|
|
|
data_get($stationTaskMaterialBox, '*.station_id')
|
|
|
);
|
|
|
}
|
|
|
- function excepted($stationTaskMaterialBox){
|
|
|
-
|
|
|
+ function excepted($stationTaskMaterialBox_orBox){
|
|
|
+ switch (get_class($stationTaskMaterialBox_orBox)){
|
|
|
+// case MaterialBox::class:
|
|
|
+// case StationTaskMaterialBox::class:
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
function getServingTaskType(StationTaskMaterialBox $stationTaskMaterialBox): string
|