|
|
@@ -27,6 +27,7 @@ use App\Http\Requests\ForeignHaiRobotic_taskUpdateRequest;
|
|
|
use App\Http\Requests\TestAaRequest;
|
|
|
use App\Imports\OrderTrackingImport;
|
|
|
use App\InventoryAccount;
|
|
|
+use App\Jobs\BatchTaskJob;
|
|
|
use App\Jobs\OrderCreateInstantBill;
|
|
|
use App\Jobs\OrderFreeze;
|
|
|
use App\LaborReport;
|
|
|
@@ -103,6 +104,7 @@ use App\Services\StoreService;
|
|
|
use App\Services\WarehouseService;
|
|
|
use App\StationRuleBatch;
|
|
|
use App\StationTask;
|
|
|
+use App\StationTaskMaterialBox;
|
|
|
use App\Store;
|
|
|
use App\StationTaskBatch;
|
|
|
use App\StoreCheckingReceiveItem;
|
|
|
@@ -167,7 +169,27 @@ class TestController extends Controller
|
|
|
dd(Region::query()->where("id", ">=", 404)->where("id", "<=", 432)->delete());
|
|
|
}
|
|
|
public function tt1(){
|
|
|
- return view("store.deliveryAppointment.success");
|
|
|
+ $stationTaskMaterialBoxId=StationTaskMaterialBox::query()->where('station_task_batch_id',87255)->where('material_box_id',$materialBox['id'])->get('id');
|
|
|
+ }
|
|
|
+ public function assignBatch(){
|
|
|
+ $batches = collect([
|
|
|
+ [
|
|
|
+ "id"=> 87255,
|
|
|
+ "code"=> "W210312000317",
|
|
|
+ "status"=> "\u672a\u5904\u7406",
|
|
|
+ "type"=> null,
|
|
|
+ "wms_type"=> "09.[BAOSHI]\u622a\u5355\u6ce2\u6b21\u3010\u65e0\u5907\u6ce8\u3011",
|
|
|
+ "wms_status"=> "\u90e8\u5206\u6536\u8d27",
|
|
|
+ "wms_created_at"=> "0000-00-00 00=>00=>00",
|
|
|
+ "created_at"=> "2021-03-12T09=>10=>44.000000Z",
|
|
|
+ "updated_at"=> "2021-03-12T09=>10=>44.000000Z",
|
|
|
+ "remark"=> null,
|
|
|
+ "owner_id"=> "42",
|
|
|
+ "station_task_batch"=> null
|
|
|
+ ]
|
|
|
+]);
|
|
|
+ $batches=Batch::query()->where('id',data_get($batches,'*.id'))->get();
|
|
|
+ app('BatchService')->assignTasks($batches);
|
|
|
}
|
|
|
|
|
|
public function zzd()
|