|
@@ -103,7 +103,9 @@ class InventoryAccountController extends Controller
|
|
|
/** @var InventoryAccountService $inventoryService */
|
|
/** @var InventoryAccountService $inventoryService */
|
|
|
$inventoryService=app('inventoryAccountService');
|
|
$inventoryService=app('inventoryAccountService');
|
|
|
$inventoryAccount=$inventoryService->updateInventory($inventoryId);
|
|
$inventoryAccount=$inventoryService->updateInventory($inventoryId);
|
|
|
- if ($inventoryAccountMissions&&$inventoryAccount) return ['success'=>true,'status'=>'盲收盘点成功'];
|
|
|
|
|
|
|
+ if ($inventoryAccountMissions&&$inventoryAccount)
|
|
|
|
|
+ $stockInventoryPersons=$inventoryAccountMissions[0]->stockInventoryPersons;
|
|
|
|
|
+ return ['success'=>true,'inventoryMissions'=>$inventoryAccountMissions,'inventory'=>$inventoryAccount,'stockInventoryPersons'=>$stockInventoryPersons];
|
|
|
}
|
|
}
|
|
|
//根据该库存和产品条码查询该条盘点记录??
|
|
//根据该库存和产品条码查询该条盘点记录??
|
|
|
public function searchStockInventoryRecord(Request $request){
|
|
public function searchStockInventoryRecord(Request $request){
|
|
@@ -236,7 +238,8 @@ class InventoryAccountController extends Controller
|
|
|
/** @var InventoryAccountService $inventoryService */
|
|
/** @var InventoryAccountService $inventoryService */
|
|
|
$inventoryService=app('inventoryAccountService');
|
|
$inventoryService=app('inventoryAccountService');
|
|
|
$inventoryAccount=$inventoryService->updateInventory($inventoryId);
|
|
$inventoryAccount=$inventoryService->updateInventory($inventoryId);
|
|
|
- return ['success'=>true,'inventoryMission'=>$inventoryAccountMission,'inventory'=>$inventoryAccount];
|
|
|
|
|
|
|
+ $stockInventoryPersons=$inventoryAccountMission[0]->stockInventoryPersons;
|
|
|
|
|
+ return ['success'=>true,'inventoryMission'=>$inventoryAccountMission,'inventory'=>$inventoryAccount,'stockInventoryPersons'=>$stockInventoryPersons];
|
|
|
}else{
|
|
}else{
|
|
|
/** @var InventoryAccountService $inventoryAccountMission */
|
|
/** @var InventoryAccountService $inventoryAccountMission */
|
|
|
$inventoryAccountService=app('inventoryAccountService');
|
|
$inventoryAccountService=app('inventoryAccountService');
|