diff --git a/app/admin/lists/PurchaseFundsLists.php b/app/admin/lists/PurchaseFundsLists.php index 47a1df35..ae3e115e 100644 --- a/app/admin/lists/PurchaseFundsLists.php +++ b/app/admin/lists/PurchaseFundsLists.php @@ -68,6 +68,7 @@ class PurchaseFundsLists extends BaseAdminDataLists implements ListsSearchInterf $item['status_name'] = '已超额'; } $item['audit_time'] = empty($item['audit_time']) ? '' : date('Y-m-d H:i:s', $item['audit_time']); + $item['supply_price'] = ProductSourceLinkInfo::where('purchase_funds_id', $item['id'])->where('types', ProductSourceLinkInfo::TypeOut)->sum('total_price'); $item['current_profit'] = ProductSourceLinkInfo::where('purchase_funds_id', $item['id'])->where('types', ProductSourceLinkInfo::TypeOrder)->sum('total_price'); }) ->toArray();