|
|
@@ -5,17 +5,16 @@ namespace App\Http\ApiControllers;
|
|
|
|
|
|
|
|
|
use App\Components\ApiResponse;
|
|
|
-use App\Http\Requests\AndroidGateRequest;
|
|
|
use App\InventoryAccount;
|
|
|
use App\Services\AndroidInventoryService;
|
|
|
-use Illuminate\Support\Facades\Auth;
|
|
|
+use Illuminate\Http\Request;
|
|
|
|
|
|
class InventoryController
|
|
|
{
|
|
|
use ApiResponse;
|
|
|
|
|
|
/**
|
|
|
- * @api {get} /inventory/inventoryTasks 获取盘点任务数据
|
|
|
+ * @api {get} /inventory/inventoryTask 获取盘点任务数据
|
|
|
* @apiName inventoryTasks
|
|
|
* @apiGroup inventory
|
|
|
*
|
|
|
@@ -45,14 +44,14 @@ class InventoryController
|
|
|
* },
|
|
|
* "notStocktakingList"=> [
|
|
|
* {
|
|
|
- * "id" =>"盘点任务明细号",
|
|
|
* "location" =>"库位",
|
|
|
+ * "count" =>"未盘商品数",
|
|
|
* }
|
|
|
* ]
|
|
|
* ]
|
|
|
* }
|
|
|
*/
|
|
|
- public function getInventoryTask(AndroidGateRequest $request)
|
|
|
+ public function getInventoryTask(Request $request)
|
|
|
{
|
|
|
$taskId = $request->input("taskId");
|
|
|
/** @var AndroidInventoryService $service */
|
|
|
@@ -90,7 +89,7 @@ class InventoryController
|
|
|
* }
|
|
|
* }
|
|
|
*/
|
|
|
- public function locationInvPro(AndroidGateRequest $request)
|
|
|
+ public function locationInvPro(Request $request)
|
|
|
{
|
|
|
$taskId = $request->input("taskId");
|
|
|
$location = $request->input("location");
|
|
|
@@ -128,7 +127,7 @@ class InventoryController
|
|
|
* }
|
|
|
* }
|
|
|
*/
|
|
|
- public function getInventoryDetail(AndroidGateRequest $request)
|
|
|
+ public function getInventoryDetail(Request $request)
|
|
|
{
|
|
|
$taskId = $request->input("taskId");
|
|
|
$location = $request->input("location");
|
|
|
@@ -169,7 +168,7 @@ class InventoryController
|
|
|
* ]
|
|
|
* }
|
|
|
*/
|
|
|
- public function stockInventory(AndroidGateRequest $request)
|
|
|
+ public function stockInventory(Request $request)
|
|
|
{
|
|
|
$taskId = $request->input("taskId");
|
|
|
$location = $request->input("location");
|
|
|
@@ -211,7 +210,7 @@ class InventoryController
|
|
|
* ]
|
|
|
* }
|
|
|
*/
|
|
|
- public function skipInventory(AndroidGateRequest $request)
|
|
|
+ public function skipInventory(Request $request)
|
|
|
{
|
|
|
$inventoryDetailId = $request->input("inventoryDetailId");
|
|
|
/** @var AndroidInventoryService $service */
|