|
|
@@ -105,6 +105,7 @@ use App\Services\RejectedBillService;
|
|
|
use App\Services\ShopService;
|
|
|
use App\Services\StoreService;
|
|
|
use App\Services\WarehouseService;
|
|
|
+use App\Station;
|
|
|
use App\StationRuleBatch;
|
|
|
use App\StationTask;
|
|
|
use App\StationTaskMaterialBox;
|
|
|
@@ -169,20 +170,18 @@ class TestController extends Controller
|
|
|
|
|
|
public function tt1()
|
|
|
{
|
|
|
- $response = Http::post('https://was.baoshi56.com/api/thirdPart/haiq/pickStation/processed');
|
|
|
- dd($a= $response->json());
|
|
|
- dd(config('api.haiq.storage.moveBin'));
|
|
|
+// $response = Http::post('https://was.baoshi56.com/api/thirdPart/haiq/pickStation/processed');
|
|
|
$a=Http::post(config('api.haiq.storage.moveBin'), [
|
|
|
"taskMode"=> 2,
|
|
|
"bins"=> [
|
|
|
[
|
|
|
- "taskCode"=> 65,
|
|
|
+ "taskCode"=> 6,
|
|
|
"binCode"=> "H01-001-3",
|
|
|
"fromLocCode"=> "",
|
|
|
"toLocCode"=> ""
|
|
|
]
|
|
|
],
|
|
|
- "groupCode"=> "1761616223042.4121",
|
|
|
+ "groupCode"=> 'g'.microtime(true),
|
|
|
"priority"=> 10,
|
|
|
"sequenceFlag"=> 1
|
|
|
]);
|
|
|
@@ -406,9 +405,23 @@ sql;
|
|
|
|
|
|
function t1(Request $request)
|
|
|
{
|
|
|
-
|
|
|
- $re = OracleDOCWaveDetails::query()->where('orderno', 'SO201230003574')->get('seqno')->first()['seqno'];
|
|
|
- dd($re);
|
|
|
+ $a=[
|
|
|
+ new Batch([
|
|
|
+ "id"=> 89906,
|
|
|
+ "code"=> "W210322000262",
|
|
|
+ "status"=> "\u5904\u7406\u4e2d",
|
|
|
+ "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-22T10:35:44.000000Z",
|
|
|
+ "updated_at"=> "2021-03-22T10:35:46.000000Z",
|
|
|
+ "remark"=> null,
|
|
|
+ "owner_id"=> "42"
|
|
|
+ ])
|
|
|
+ ];
|
|
|
+ app('BatchService')->assignTasks($a);
|
|
|
+ dd($a);
|
|
|
}
|
|
|
|
|
|
function packageT(Request $request)
|