|
|
@@ -329,21 +329,21 @@ class InventoryAccountController extends Controller
|
|
|
if (is_null($count)) return ['success' => false, 'data' => '盘点数不能为空!'];
|
|
|
if ($produced_at || $valid_at || $batch_number) {
|
|
|
/** @var InventoryAccountService $inventoryAccountMission */
|
|
|
- $inventoryAccountService = app('InventoryAccountService');
|
|
|
+ $inventoryAccountService = app('inventoryAccountService');
|
|
|
$inventoryAccountMission = $inventoryAccountService->盘点生产日期_失效日期_批号有改动任务($id, $count, $inventoryId, $produced_at, $valid_at, $batch_number);
|
|
|
if (!$inventoryAccountMission) return ['success' => false, 'data' => '盘点生产日期_失效日期_批号有改动任务失败!'];
|
|
|
/** @var InventoryAccountService $inventoryService */
|
|
|
- $inventoryService = app('InventoryAccountService');
|
|
|
+ $inventoryService = app('inventoryAccountService');
|
|
|
$inventoryAccount = $inventoryService->updateInventory($inventoryId);
|
|
|
$stockInventoryPersons = $inventoryAccountMission[0]->stockInventoryPersons;
|
|
|
return ['success' => true, 'inventoryMission' => $inventoryAccountMission, 'inventory' => $inventoryAccount, 'stockInventoryPersons' => $stockInventoryPersons];
|
|
|
} else {
|
|
|
/** @var InventoryAccountService $inventoryAccountMission */
|
|
|
- $inventoryAccountService = app('InventoryAccountService');
|
|
|
+ $inventoryAccountService = app('inventoryAccountService');
|
|
|
$inventoryAccountMission = $inventoryAccountService->盘点选中任务($id, $count, $inventoryId);
|
|
|
if (!$inventoryAccountMission) return ['success' => false, 'data' => '盘点选中任务失败!'];
|
|
|
/** @var InventoryAccountService $inventoryService */
|
|
|
- $inventoryService = app('InventoryAccountService');
|
|
|
+ $inventoryService = app('inventoryAccountService');
|
|
|
$inventoryAccount = $inventoryService->updateInventory($inventoryId);
|
|
|
$stockInventoryPersons = $inventoryAccountMission->stockInventoryPersons;
|
|
|
return ['success' => true, 'inventoryMission' => $inventoryAccountMission, 'inventory' => $inventoryAccount, 'stockInventoryPersons' => $stockInventoryPersons];
|