|
|
@@ -32,7 +32,7 @@ class AndroidInventoryService
|
|
|
->where('created_at', 'like', Carbon::now()->toDateString() . '%')
|
|
|
->where('mark', Auth::user()['name'])->count();
|
|
|
}
|
|
|
- public function getLocInvPro($taskId,$location): array
|
|
|
+ public function getLocInvPro($taskId,$location)
|
|
|
{
|
|
|
$ins=InventoryAccountMission::query()
|
|
|
->where('inventory_account_id',$taskId)
|
|
|
@@ -41,7 +41,12 @@ class AndroidInventoryService
|
|
|
$total=$ins->count();
|
|
|
//已盘数
|
|
|
$invCount=$ins->where('checked','<>','否')->count();
|
|
|
- return ['total'=>$total,'invCount'=>$invCount];
|
|
|
+ if ($total==0&&$invCount==0){
|
|
|
+ return 0;//库位不存在
|
|
|
+ }else{
|
|
|
+ return ['total'=>$total,'invCount'=>$invCount];
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
//根据盘点任务号,库位,条码 查询指定盘点任务
|
|
|
public function getInventoryDetail($taskId,$location,$barcode)
|