|
@@ -193,18 +193,20 @@ class InventoryAccountController extends Controller
|
|
|
$inventoryAccounts = app('inventoryAccountService')->some($queryParam);
|
|
$inventoryAccounts = app('inventoryAccountService')->some($queryParam);
|
|
|
}
|
|
}
|
|
|
$row = [[
|
|
$row = [[
|
|
|
- 'id' => '盘点编号',
|
|
|
|
|
|
|
+ 'id' => '盘点单号',
|
|
|
'status' => '盘点状态',
|
|
'status' => '盘点状态',
|
|
|
'created_at' => '创建时间',
|
|
'created_at' => '创建时间',
|
|
|
'owner_id' => '货主',
|
|
'owner_id' => '货主',
|
|
|
'type' => '任务类型',
|
|
'type' => '任务类型',
|
|
|
'start_at' => '起始时间',
|
|
'start_at' => '起始时间',
|
|
|
'end_at' => '结束时间',
|
|
'end_at' => '结束时间',
|
|
|
- 'total' => '记录数',
|
|
|
|
|
- 'processed' => '已盘数',
|
|
|
|
|
- 'surplus' => '剩余数',
|
|
|
|
|
- 'difference' => '复盘差异',
|
|
|
|
|
|
|
+ 'total' => '盘点任务数',
|
|
|
|
|
+ 'processed' => '盘点数量',
|
|
|
|
|
+ 'surplus' => '未盘数量',
|
|
|
|
|
+ 'ignored' => '跳过数量',
|
|
|
|
|
+ 'difference' => '差异数量',
|
|
|
'returned' => '复盘归位',
|
|
'returned' => '复盘归位',
|
|
|
|
|
+ 'proportion' => '盘点比例',
|
|
|
]];
|
|
]];
|
|
|
$list = [];
|
|
$list = [];
|
|
|
for ($i = 0; $i < count($inventoryAccounts); $i++) {
|
|
for ($i = 0; $i < count($inventoryAccounts); $i++) {
|
|
@@ -220,8 +222,10 @@ class InventoryAccountController extends Controller
|
|
|
'total' => isset($inventoryAccount->total) ? $inventoryAccount->total : '',
|
|
'total' => isset($inventoryAccount->total) ? $inventoryAccount->total : '',
|
|
|
'processed' => isset($inventoryAccount->processed) ? $inventoryAccount->processed : '',
|
|
'processed' => isset($inventoryAccount->processed) ? $inventoryAccount->processed : '',
|
|
|
'surplus' => isset($inventoryAccount->surplus) ? $inventoryAccount->surplus : '',
|
|
'surplus' => isset($inventoryAccount->surplus) ? $inventoryAccount->surplus : '',
|
|
|
|
|
+ 'ignored' => isset($inventoryAccount->ignored) ? $inventoryAccount->ignored : '',
|
|
|
'difference' => isset($inventoryAccount->difference) ? $inventoryAccount->difference : '',
|
|
'difference' => isset($inventoryAccount->difference) ? $inventoryAccount->difference : '',
|
|
|
'returned' => isset($inventoryAccount->returned) ? $inventoryAccount->returned : '',
|
|
'returned' => isset($inventoryAccount->returned) ? $inventoryAccount->returned : '',
|
|
|
|
|
+ 'proportion' => isset($inventoryAccount->processed) && isset($inventoryAccount->total) ? $inventoryAccount->processed.'/'.$inventoryAccount->total : '',
|
|
|
];
|
|
];
|
|
|
$list[$i] = $w;
|
|
$list[$i] = $w;
|
|
|
}
|
|
}
|