From 2fc38b25b6f1f7cd4a2865c96656a38c70858379 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 24 Apr 2020 15:23:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=9A=E5=90=88=E7=BB=93=E7=AE=97=E5=8D=95?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E4=BC=98=E5=8C=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...regateFinanceStatementController.class.php | 19 +++++++++--------- Public/Admin/excel/aggregate_stream.xls | Bin 0 -> 26624 bytes 2 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 Public/Admin/excel/aggregate_stream.xls diff --git a/Application/Admin/Controller/AggregateFinanceStatementController.class.php b/Application/Admin/Controller/AggregateFinanceStatementController.class.php index d503e4f18..8d2b9d0e8 100644 --- a/Application/Admin/Controller/AggregateFinanceStatementController.class.php +++ b/Application/Admin/Controller/AggregateFinanceStatementController.class.php @@ -262,13 +262,6 @@ class AggregateFinanceStatementController extends ThinkController $this->display(); } //导出 - // public function export(){ - // if(!isset($_REQUEST['ids'])) $this->error("参数错误"); - // $ids = explode(",",$_REQUEST['ids']); - // foreach ($ids as $k => $v) { - // $this->doexport($v); - // } - // } public function export() { if(!isset($_REQUEST['id'])) $this->error("参数错误"); @@ -300,12 +293,12 @@ class AggregateFinanceStatementController extends ThinkController $objReader = \PHPExcel_IOFactory::createReader('Excel5'); //设置模板文件 - $objPHPExcel = $objReader->load("Public/Admin/excel/down_stream.xls"); + $objPHPExcel = $objReader->load("Public/Admin/excel/aggregate_stream.xls"); $statement_begin_time = date('Y.m.d', $data['begintime']);//对账开始时间 $statement_end_time = date('Y.m.d',$data['endtime']);//对账截止时间 $objPHPExcel->getActiveSheet()->setCellValue('A1', "《 {$data['channel_name']} 》结算单 - ({$statement_begin_time}-{$statement_end_time}"); + ({$statement_begin_time}-{$statement_end_time})"); if ($data['withdraw_type'] == '2') { $objPHPExcel->getActiveSheet()->setCellValue('D2','补点比例'); @@ -322,9 +315,15 @@ class AggregateFinanceStatementController extends ThinkController $objPHPExcel->getActiveSheet()->setCellValue('D'.$line, $value['ratio'] . '%'); $objPHPExcel->getActiveSheet()->setCellValue('E'.$line, $value['fax_ratio'] . '%'); $objPHPExcel->getActiveSheet()->setCellValue('C'.$line, $value['money']); - $objPHPExcel->getActiveSheet()->setCellValue('B'.$line, $product_name); $objPHPExcel->getActiveSheet()->setCellValue('F'.$line, $value['ratio_money']); + + $objPHPExcel->getActiveSheet()->getStyle('A'.$line)->getFont()->setBold(false); + $objPHPExcel->getActiveSheet()->getStyle('B'.$line)->getFont()->setBold(false); + $objPHPExcel->getActiveSheet()->getStyle('C'.$line)->getFont()->setBold(false); + $objPHPExcel->getActiveSheet()->getStyle('D'.$line)->getFont()->setBold(false); + $objPHPExcel->getActiveSheet()->getStyle('E'.$line)->getFont()->setBold(false); + $objPHPExcel->getActiveSheet()->getStyle('F'.$line)->getFont()->setBold(false); $line++; } diff --git a/Public/Admin/excel/aggregate_stream.xls b/Public/Admin/excel/aggregate_stream.xls new file mode 100644 index 0000000000000000000000000000000000000000..c34f0dfbe3923e5a09daeb5df96dadfa18fe80cd GIT binary patch literal 26624 zcmeG^2Ut``w{w>TcIhafBI=?@6ObZ`1;K)%!qP!RrRY)=!H8l-uwX+JOB8!g)YxK+ zioLfaim}It8ryG-B}VM~&Y8QH?fbL-?|(1u`Wa#h_(>zAl8FeA7TTD_7EFFbb#0hVq=I+ zAc`P5LTn1L8AK6iD8cq{20|HUt!KY@mJy(%61#TR#?G zj0GSVk{B|A41r%N)qM}JLORt6LWYwpc+O!_HC|n1@?+brZT;AGGm&WsLIJd5BSTVQ z{=M;$B8C`&UG5Mb*~UKtS3>SW>`R71yJtF)fxu=Ku#-jdsH-4@Xg<+@f9OnkNM(?R z!@z4GJTcIlU>a-=*Shq&m169t*Ff46LDqsZApvm1w^MIkFvTmS*QWGp0au26N6Xxx z5FhBfeg=F2DWiIs0$MFeiizOh(n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