From 21ee77609cb5b4c0bd58c3bfae45872bffe3543a Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Fri, 10 Jan 2020 09:33:27 +0800 Subject: [PATCH 1/3] =?UTF-8?q?cp/=E5=B7=A5=E4=BC=9A=E5=AF=B9=E8=B4=A6?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 8 ++++---- .../Admin/Controller/PublicController.class.php | 2 +- .../Admin/Controller/VerifyBillController.class.php | 5 ++--- Application/Admin/View/VerifyBill/company_show.html | 6 +++--- Application/Admin/View/VerifyBill/partner_show.html | 13 +++++++------ 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 2bbf3f672..e17931980 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1886,8 +1886,8 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_ } //合计 - $objPHPExcel->getActiveSheet()->setCellValue("E" . ($line), $all_sum_money); - $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line), $all_pay_amount); + $objPHPExcel->getActiveSheet()->setCellValue("E" . ($line), $data['pay_amount']); + $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line), $data['statement_money']); $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line+1), $big_all_sum_money); //本月分成总金额(人民币大写) @@ -1960,8 +1960,8 @@ function excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_al $line++; } - $objPHPExcel->getActiveSheet()->setCellValue('C'.($line), $all_sum_money);//合计-平台总额 - $objPHPExcel->getActiveSheet()->setCellValue('F'.($line), $all_pay_amount);//合计-结算金额 + $objPHPExcel->getActiveSheet()->setCellValue('C'.($line), $data['pay_amount']);//合计-平台总额 + $objPHPExcel->getActiveSheet()->setCellValue('F'.($line), $data['statement_money']);//合计-结算金额 $objPHPExcel->getActiveSheet()->setCellValue('B'.($line+1), $big_all_sum_money);//大写支付结算金额 diff --git a/Application/Admin/Controller/PublicController.class.php b/Application/Admin/Controller/PublicController.class.php index 86bda178f..2afd43a19 100644 --- a/Application/Admin/Controller/PublicController.class.php +++ b/Application/Admin/Controller/PublicController.class.php @@ -78,7 +78,7 @@ class PublicController extends \Think\Controller if (IS_POST) { /* 检测验证码 TODO: */ -// $this->checksafecode($mobile, $verify, false); + $this->checksafecode($mobile, $verify, false); $promote = M('promote', 'tab_')->where([ 'mobile_phone' => $mobile, 'level' => 1, diff --git a/Application/Admin/Controller/VerifyBillController.class.php b/Application/Admin/Controller/VerifyBillController.class.php index d951bedf3..9408dc618 100644 --- a/Application/Admin/Controller/VerifyBillController.class.php +++ b/Application/Admin/Controller/VerifyBillController.class.php @@ -53,7 +53,7 @@ class VerifyBillController extends Controller { // dd($data); $all_sum_money = array_sum(array_column($data['statement_info'], 'sum_money'));//合计平台总额 $all_pay_amount = array_sum(array_column($data['statement_info'], 'pay_amount'));//合计结算金额 - $big_all_sum_money = convertAmountToCn($all_sum_money);//大写 + $big_all_sum_money = convertAmountToCn($data['statement_money']);//大写 $this->assign('big_all_sum_money', $big_all_sum_money); $this->assign('all_sum_money', $all_sum_money); $this->assign('all_pay_amount', $all_pay_amount); @@ -94,10 +94,9 @@ class VerifyBillController extends Controller { $all_sum_money = array_sum(array_column($data['statement_info'], 'sum_money'));//合计平台总额 $all_pay_amount = array_sum(array_column($data['statement_info'], 'pay_amount'));//合计结算金额 - $big_all_sum_money = convertAmountToCn($all_sum_money);//大写 + $big_all_sum_money = convertAmountToCn($data['statement_money']);//大写 $data['receive_company'] = $data['pay_type'] ? $data['first_party_info'] : $data['second_party_info']; $data['pay_company'] = $data['pay_type'] ? $data['second_party_info'] : $data['first_party_info']; - dd($data['statement_info']); if ($data['statement_type'] == 1) {//下游 excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_sum_money); } else {//上游 diff --git a/Application/Admin/View/VerifyBill/company_show.html b/Application/Admin/View/VerifyBill/company_show.html index ad04083e1..995ba6c54 100644 --- a/Application/Admin/View/VerifyBill/company_show.html +++ b/Application/Admin/View/VerifyBill/company_show.html @@ -109,7 +109,7 @@