|
|
@@ -46,17 +46,11 @@ class ConsoleController extends BaseController
|
|
|
}
|
|
|
$totalItemNum = floor($totalItemNum);
|
|
|
$totalBalance = CustomClass::sum(['ownMainId'=>$this->mainId],'balance');
|
|
|
-
|
|
|
- $actTotalDebt = 0;
|
|
|
- if($totalDebt > $totalBalance){
|
|
|
- $actTotalDebt = bcsub($totalDebt, $totalBalance, 2);
|
|
|
- }
|
|
|
-
|
|
|
$overview = [
|
|
|
['name' => "库存数", "url" => '/admin/stat/stock', 'value' => $totalItemNum, 'type' => 1],
|
|
|
['name' => "库存值", "url" => '/admin/stat/stock', 'value' => $totalCost, 'type' => 1],
|
|
|
- ['name' => "总挂账", "url" => '/admin/shop/debtChange', 'value' => $totalDebt, 'type' => 1],
|
|
|
- ['name' => "实挂账", "url" => '/admin/home/member', 'value' => $actTotalDebt, 'type' => 4],
|
|
|
+ ['name' => "总挂账", "url" => '/admin/shop/debtChange', 'value' => -$totalDebt, 'type' => 1],
|
|
|
+ ['name' => "实挂账", "url" => '/admin/home/member', 'value' => $totalBalance, 'type' => 4],
|
|
|
['name' => "总访客", "url" => '/admin/home/member', 'value' => 0, 'type' => 4],
|
|
|
['name' => "总订单", "url" => '/admin/home/order', 'value' => 0, 'type' => 4],
|
|
|
];
|