mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 15:00:52 +00:00
提现列表显示问题优化
This commit is contained in:
parent
b201d34ee3
commit
23a96541ff
@ -274,7 +274,7 @@ class UserExtractServices extends BaseServices
|
||||
/** @var UserBrokerageServices $userBrokerageServices */
|
||||
$userBrokerageServices = app()->make(UserBrokerageServices::class);
|
||||
$where['pm'] = 1;
|
||||
$extract_statistics['brokerage_count'] = $userBrokerageServices->getUsersBokerageSum($where);
|
||||
$extract_statistics['brokerage_count'] = bcadd((string)$userBrokerageServices->getUsersBokerageSum($where), (string)$extract_statistics['price'], 2);
|
||||
//未提现金额
|
||||
$extract_statistics['brokerage_not'] = $extract_statistics['brokerage_count'] > $extract_statistics['priced'] ? bcsub((string)$extract_statistics['brokerage_count'], (string)$extract_statistics['priced'], 2) : 0.00;
|
||||
return compact('extract_statistics', 'list');
|
||||
|
||||
@ -394,8 +394,8 @@ export default {
|
||||
this.total = data.list.count;
|
||||
this.extractStatistics = data.extract_statistics;
|
||||
this.cardLists = [
|
||||
{ col: 6, count: this.extractStatistics.price, name: '待提现金额', className: 'md-basket' },
|
||||
{ col: 6, count: this.extractStatistics.brokerage_count, name: '佣金总金额', className: 'md-pricetags' },
|
||||
{ col: 6, count: this.extractStatistics.price, name: '待提现金额', className: 'md-basket' },
|
||||
{ col: 6, count: this.extractStatistics.priced, name: '已提现金额', className: 'md-cash' },
|
||||
{ col: 6, count: this.extractStatistics.brokerage_not, name: '未提现金额', className: 'ios-cash' },
|
||||
];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user