From f9d7a54ea2834758c2493394064d1bd50505229d Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Thu, 16 Jun 2022 15:12:11 +0800 Subject: [PATCH] add-admin_biz_settle_list --- admin/controllers/biz/Settle.php | 4 +++- admin/views/biz/settle/lists.php | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/controllers/biz/Settle.php b/admin/controllers/biz/Settle.php index 664df3b6..102070e0 100644 --- a/admin/controllers/biz/Settle.php +++ b/admin/controllers/biz/Settle.php @@ -132,6 +132,7 @@ class Settle extends HD_Controller 'profix_insure' => $v['profix_insure'], 'profix_carno' => $v['profix_carno'], 'profix_loan' => $v['profix_loan'], + 'sum_srv' => $v['profix_insure']+$v['profix_carno']+$v['profix_loan'], 'price_trucking' => $v['price_trucking'], 'name' => $v['name'], 'mobile' => $v['mobile'], @@ -235,7 +236,7 @@ class Settle extends HD_Controller $all_rows = $this->biz_settle_model->selectOrders($where, $orderby, 0, 0,0, $select); $sheet_data2 = []; if($all_rows){ - $sheet_data2[] = ['门店','订单信息','品牌车型','车架号','单车利润','保险利润','贷款利润','挂牌利润','拖车费','时间']; + $sheet_data2[] = ['门店','订单信息','品牌车型','车架号','单车利润','保险利润','贷款利润','挂牌利润','水平业务合计','拖车费','时间']; $s_ids = array_unique(array_filter(array_column($all_rows,'s_id'))); $cor_ids = array_unique(array_filter(array_column($all_rows,'cor_id'))); $v_ids = array_unique(array_filter(array_column($all_rows,'v_id'))); @@ -276,6 +277,7 @@ class Settle extends HD_Controller $v['profix_insure'], $v['profix_loan'], $v['profix_carno'], + $v['profix_insure']+$v['profix_loan']+$v['profix_carno'], $v['price_trucking'], $month_str, ); diff --git a/admin/views/biz/settle/lists.php b/admin/views/biz/settle/lists.php index d1f41b90..5602072a 100644 --- a/admin/views/biz/settle/lists.php +++ b/admin/views/biz/settle/lists.php @@ -60,6 +60,7 @@