From 7ba9c25610df3d8aa152141560313f918aff25dc Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 7 Aug 2020 16:50:15 +0800 Subject: [PATCH 01/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E6=B8=B8?= =?UTF-8?q?=E5=AF=BC=E5=87=BA%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 36 ++++++++++++++++++- .../PHPExcel/PHPExcel/Style/NumberFormat.php | 1 + 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 045fff193..6822c9809 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1873,7 +1873,6 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
'); - date_default_timezone_set('Europe/London'); Vendor("PHPExcel.PHPExcel"); $objReader = \PHPExcel_IOFactory::createReader('Excel5'); @@ -1918,6 +1917,23 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_ } } else {//游戏 $product_name = $value['game_name']; + $objPHPExcel->getActiveSheet()->getStyle('F'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00); + $objPHPExcel->getActiveSheet()->getStyle('G'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00); + $objPHPExcel->getActiveSheet()->getStyle('H'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00); + $objPHPExcel->getActiveSheet()->getStyle('I'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_000); + if($value['first_ratio'] == 0){ + $value['first_ratio'] = 0; + }else{ + $value['first_ratio'] = number_format($value['first_ratio'], 2); + } + if($value['second_ratio'] == 0) { + $value['second_ratio'] = 0; + }else{ + $value['second_ratio'] = number_format($value['second_ratio'], 2); + } + if($value['promote_ratio'] == 0) $value['promote_ratio'] = 0; + if($value['fax_ratio'] == 0) $value['fax_ratio'] = 0; + $objPHPExcel->getActiveSheet()->setCellValue('F'.$line , $value['first_ratio'] . '%'); $objPHPExcel->getActiveSheet()->setCellValue('G'.$line, $value['second_ratio'] . '%'); $objPHPExcel->getActiveSheet()->setCellValue('H'.$line, $value['promote_ratio'] . '%'); @@ -2015,6 +2031,24 @@ function excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_al } } else {//游戏 $product_name = $value['game_name']; + + $objPHPExcel->getActiveSheet()->getStyle('D'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00); + $objPHPExcel->getActiveSheet()->getStyle('E'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_000); + $objPHPExcel->getActiveSheet()->getStyle('C'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_NUMBER_00); + + if($value['increment_ratio'] == 0){ + $value['increment_ratio'] = 0; + }else{ + $value['increment_ratio'] = number_format($value['first_ratio'], 2); + } + if($value['ratio'] == 0) { + $value['ratio'] = 0; + }else{ + $value['ratio'] = number_format($value['ratio'], 2); + } + if($value['fax_ratio'] == 0) $value['fax_ratio'] = 0; + + if ($data['withdraw_type'] == 2) { $objPHPExcel->getActiveSheet()->setCellValue('D'.$line, $value['increment_ratio'] . '%'); }else{ diff --git a/ThinkPHP/Library/Vendor/PHPExcel/PHPExcel/Style/NumberFormat.php b/ThinkPHP/Library/Vendor/PHPExcel/PHPExcel/Style/NumberFormat.php index e8a978fb2..adaeb51c2 100644 --- a/ThinkPHP/Library/Vendor/PHPExcel/PHPExcel/Style/NumberFormat.php +++ b/ThinkPHP/Library/Vendor/PHPExcel/PHPExcel/Style/NumberFormat.php @@ -47,6 +47,7 @@ class PHPExcel_Style_NumberFormat extends PHPExcel_Style_Supervisor implements P const FORMAT_PERCENTAGE = '0%'; const FORMAT_PERCENTAGE_00 = '0.00%'; + const FORMAT_PERCENTAGE_000 = '0.000%'; const FORMAT_DATE_YYYYMMDD2 = 'yyyy-mm-dd'; const FORMAT_DATE_YYYYMMDD = 'yy-mm-dd'; From efa8cff4c49201a3aaa44491799f02c7ff58534d Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 7 Aug 2020 16:54:42 +0800 Subject: [PATCH 02/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E6=B8=B8?= =?UTF-8?q?=E5=AF=BC=E5=87=BA(=E4=B9=99=E6=96=B9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Public/Admin/excel/up_stream.xls | Bin 22528 -> 21504 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Public/Admin/excel/up_stream.xls b/Public/Admin/excel/up_stream.xls index e5513683d8c06fe0f2e56969739770c6e36a3003..467e8cac24ac89d79ac2abb4d16f28c25eae5a48 100644 GIT binary patch literal 21504 zcmeHP2V51$)}Osx;9iOX0xGCn5CIVp6a^a~mZ%_#plDFBp{OWU6f3dB0xHJD9%D2{ zqp>9>MzLUt-NasEVhxrUTb>57@%_*2UH10qd+&R{?|r|_GCR9x&iv<`GiS=q-sR+v z&euNO;&GiBgh*z^UYDwwjSgMFHANnr81ume-M=m^EftB3;qveBUu1z-kkt>3XN9Ol zv__;hw?$MTsuArF?GYUi9TCeRmPdpOFlR&;#0rS6h;E4Ph!qhlAy!88K=eecf>;%? z8lo4X2GJXl{D-11u4^FrYiR-6^uNfQ|8=5vWSKZdqAgmoAxMX_Y*_uxgF8G%Qd)sx z8Wo)xE97U^N=&rpQ8N=3WtQOpm__{3+G;M0-(d=iuwiIQ{Q>h`lB36?(CaH7jsDVY@d+U^eLd*O`KCR_?`_u^Wip*iiI)p&9GT2D1Th zl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Ud)8yCzK24b!@J+Qf<^W8i+59~U75@jo*ZV)ZD4eF-B&;pUAA-rY3#Q*e0`WDj^e-@C+2p@U)`nope-*}842c3i`)J?{L4;Z4~jG&EePt_*emxZD8)qWD0;hrbYB S{g5d3u=(f1&6fS2NccZFn6SYB From 07fd53a6aa53b198eeefa5eaa8f1462c0da6ba91 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 7 Aug 2020 17:00:20 +0800 Subject: [PATCH 03/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E6=B8=B8?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=96=87=E4=BB=B6=E6=A0=BC=E5=BC=8F=E5=8F=8A?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 2 +- .../Admin/Controller/CompanyStatementController.class.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 6822c9809..b3c916331 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -2087,7 +2087,7 @@ function excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_al $objPHPExcel->getActiveSheet()->setCellValue('E'.($line+9), $data['receive_company']['bank_account']."\t");//银行账号 $objPHPExcel->getActiveSheet()->setCellValue('E'.($line+10), $data['receive_company']['opening_bank']);//开户行 - $fileName = "{$data['second_party_info']['partner']}&{$data['first_party_info']['partner']}-对账单{$statement_begin_time}-{$statement_end_time}"; + $fileName = "{$data['company_name']}&{$data['my_company']}-对账单{$statement_begin_time}-{$statement_end_time}"; // dd($fileName); ob_end_clean();//清除缓冲区,避免乱码 header('pragma:public'); diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index e727fe19d..88586be60 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -441,6 +441,11 @@ class CompanyStatementController extends ThinkController $data['receive_company']['invoice_type']="普票"; } if ($data['company_belong'] == 9) {//上游 + if($data['company_name'] == $data['first_party_info']['partner']){ + $data['my_company'] = $data['second_party_info']['partner']; + }else{ + $data['my_company'] = $data['first_party_info']['partner']; + } excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_sum_money); } else { //下游 From 82787ca561c9b6ca0cfee55d967fabbca2293c21 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 7 Aug 2020 17:15:45 +0800 Subject: [PATCH 04/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E6=B8=B8?= =?UTF-8?q?=E7=BB=93=E7=AE=97=E5=8D=95=E5=AF=BC=E5=87=BA=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 9 +++++---- Public/Admin/excel/up_stream.xls | Bin 21504 -> 20992 bytes 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index b3c916331..825ea9ac0 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1897,7 +1897,8 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_ $objPHPExcel->getActiveSheet()->setCellValue('C7', "支付给:".$data['receive_company']['partner']); //增加支付给对应公司 $line = 10; //记录统计项目 - $pay_amount_str = "="; + $pay_amount_str = "=SUM(J10:"; + $plat_amount_str = "=SUM(E10:"; //增加结算记录 foreach ($data['statement_info'] as $key => $value) { $objPHPExcel->getActiveSheet()->insertNewRowBefore($line,1)->mergeCells("J$line:K$line"); @@ -1946,16 +1947,16 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_ $objPHPExcel->getActiveSheet()->setCellValue('J'.$line, "=E{$line}*(1-H{$line})*F{$line}*(1-I{$line})"); } } - $pay_amount_str .= "J{$line}+"; + $objPHPExcel->getActiveSheet()->setCellValue('D'.$line, $product_name); $line++; } //合计 - $objPHPExcel->getActiveSheet()->setCellValue("E" . ($line), $data['pay_amount']); + $objPHPExcel->getActiveSheet()->setCellValue("E" . ($line), $plat_amount_str."E".($line-1).")"); // $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line), $data['statement_money']); - $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line), trim($pay_amount_str,"+")); + $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line), $pay_amount_str."J".($line-1).")"); // $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line+1), $big_all_sum_money); //本月分成总金额(人民币大写) $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line+1), "=J{$line}"); //本月分成总金额(人民币大写) diff --git a/Public/Admin/excel/up_stream.xls b/Public/Admin/excel/up_stream.xls index 467e8cac24ac89d79ac2abb4d16f28c25eae5a48..cfcba995d4d73fbe85fcab9a226083578abe76a7 100644 GIT binary patch delta 1487 zcmZux-EUK682`QJoVMqje$bY+YiGN50&@{{EE3HUR=YUa7zKtOL%>ZoL~u+uC*bA= zt&R`n%JeakU_xT#f_On(4i_Zq#s$VpZ-|M+sDA;O$w-V}^LgKMS{GxVyyrY0zu)h9 zKhE3AHBq@LKHMf+7P`I_ViWna+3eq|tE+Ns0I-oqD-RhzB;N~r4~wcX9^P{AVD<9& z_u@fLR%pg3Yrl2T@5UK1MKiwR^|FFFzxoooh|$khBemKoYPOPe+iIdgdkcMRrO40Y ziXElLER%k+9-+^3aqfBez)?! zpaGlcb}V1~Pcp@T{{uJG@^>)6ZVqroHqc6}U9`}~czZ{-hWRKKTgolvU?f$e^qTyo z;H6+K-$-ZUy*u)?>KzhJ!H)@8mH2k6txycp)^W^qV8 zkH{xo%Vuaf8xBH6Be~!Jiw=3D0EV%yjxuo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*WNo@yNi%#?0?sUsr zierQGA}*Zl7=@-z6Ze_qG$L!!+x*?`roual;|J#@l6OFEh##Dn)o{2xbVOPC-27Po zBu=4;R^t Date: Fri, 7 Aug 2020 17:30:41 +0800 Subject: [PATCH 05/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E6=B8=B8?= =?UTF-8?q?=E7=BB=93=E7=AE=97=E5=8D=95=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 10 +++++----- .../CompanyStatementController.class.php | 11 ++++++----- Public/Admin/excel/down_stream.xls | Bin 35328 -> 26624 bytes 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 825ea9ac0..5a5f262ec 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1974,7 +1974,7 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_ $statement_begin_time = date('Y.m.d', $data['statement_begin_time']);//对账开始时间 $statement_end_time = date('Y.m.d',$data['statement_end_time']);//对账截止时间 - $fileName = "{$data['second_party_info']['partner']}&{$data['first_party_info']['partner']}-对账单{$statement_begin_time}-{$statement_end_time}"; + $fileName = "{$data['company_name']}&{$data['my_company']}-对账单{$statement_begin_time}-{$statement_end_time}"; ob_end_clean();//清除缓冲区,避免乱码 header('pragma:public'); @@ -2013,7 +2013,8 @@ function excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_al $line = 3; - $pay_amount_str = "="; + $pay_amount_str = "=SUM(F3:"; + $plat_amount_str = "=SUM(C3:"; foreach ($data['statement_info'] as $key => $value) { $objPHPExcel->getActiveSheet()->insertNewRowBefore($line,1); $objPHPExcel->getActiveSheet()->removeConditionalStyles(); @@ -2061,12 +2062,11 @@ function excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_al $objPHPExcel->getActiveSheet()->setCellValue('F'.$line,"=C{$line}*D{$line}*(1-E{$line})"); } $objPHPExcel->getActiveSheet()->setCellValue('B'.$line, $product_name); - $pay_amount_str .= "F{$line}+"; $line++; } - $objPHPExcel->getActiveSheet()->setCellValue('C'.($line), $data['pay_amount']);//合计-平台总额 - $objPHPExcel->getActiveSheet()->setCellValue('F'.($line), trim($pay_amount_str,"+"));//合计-结算金额 + $objPHPExcel->getActiveSheet()->setCellValue('C'.($line), $plat_amount_str."C".($line-1).")");//合计-平台总额 + $objPHPExcel->getActiveSheet()->setCellValue('F'.($line), $pay_amount_str."F".($line-1).")");//合计-结算金额 // $objPHPExcel->getActiveSheet()->setCellValue('B'.($line+1), $big_all_sum_money);//大写支付结算金额 diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index 88586be60..991faac34 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -440,12 +440,13 @@ class CompanyStatementController extends ThinkController } else{ $data['receive_company']['invoice_type']="普票"; } + if($data['company_name'] == $data['first_party_info']['partner']){ + $data['my_company'] = $data['second_party_info']['partner']; + }else{ + $data['my_company'] = $data['first_party_info']['partner']; + } + if ($data['company_belong'] == 9) {//上游 - if($data['company_name'] == $data['first_party_info']['partner']){ - $data['my_company'] = $data['second_party_info']['partner']; - }else{ - $data['my_company'] = $data['first_party_info']['partner']; - } excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_sum_money); } else { //下游 diff --git a/Public/Admin/excel/down_stream.xls b/Public/Admin/excel/down_stream.xls index 49582ce0dd5b04787c03cec26ac12c6a501d1b1a..a8539a39d424c040e78dcfb0f96a69afd2d9569a 100644 GIT binary patch literal 26624 zcmeG_2V4}#*R#g~cXSj`5#>;%2?{8RB7y})g`J7#-fGC7$2oY^= z3{eD84ABIlDMT}f<`69)T0#UDAl4A;K&%VV2BIxQJBall)`!>tqCLch5FH>kg4h_M zBSZ;ACx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AU1`j64T7uXD>yJSU? zu;YJFzWV*gm>je3=fm*Xt>G3QU@swH`%<$sSF}Zn}17RCVUSwQZ_2T<_xp{iJ zd%E-8yL2qfa#wh;Qhbt ziid+&1@Pi19vryKhkGHsLQ0#<5`Kyx(HYtikBi^*Sr54Np(09OsAmai5O6Pq!+IH% z93v!Pjqk1DHy9HBc-J)JhzuGN4<_PkvPQzuM=X0JXd#P|2_eOB;IIH7>Muv&&w^xZ nKbrFQLUP!6;L?R7WCd^>5@irlHK3h5@RmQV%ijYTi~0W_h$gJ6 From 4143a67238fe8799811d7f46980234aa47c3f0f7 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 7 Aug 2020 17:35:43 +0800 Subject: [PATCH 06/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E6=B8=B8?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 4 ++-- Application/Admin/View/CompanyStatementPool/viewPuPool.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 5a5f262ec..4038d7417 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1902,7 +1902,7 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_ //增加结算记录 foreach ($data['statement_info'] as $key => $value) { $objPHPExcel->getActiveSheet()->insertNewRowBefore($line,1)->mergeCells("J$line:K$line"); - $objPHPExcel->getActiveSheet()->setCellValue('C'.$line, $value['statement_begin_time'] . '-' . $value['statement_end_time']); + $objPHPExcel->getActiveSheet()->setCellValue('C'.$line, $value['statement_begin_time'].'-'.$value['statement_end_time']); if ($value['statement_type'] > 0) {//罚款 $product_name = $value['game_name']; $objPHPExcel->getActiveSheet()->setCellValue('F'.$line , '-'); @@ -2019,7 +2019,7 @@ function excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_al $objPHPExcel->getActiveSheet()->insertNewRowBefore($line,1); $objPHPExcel->getActiveSheet()->removeConditionalStyles(); - $objPHPExcel->getActiveSheet()->setCellValue('A'.$line, $value['statement_begin_time'] . '-' . $value['statement_end_time']); + $objPHPExcel->getActiveSheet()->setCellValue('A'.$line, $value['statement_begin_time'].'-'.$value['statement_end_time']); if ($value['statement_type'] > 0) {//罚款 $product_name = $value['game_name']; $objPHPExcel->getActiveSheet()->setCellValue('D'.$line, '-'); diff --git a/Application/Admin/View/CompanyStatementPool/viewPuPool.html b/Application/Admin/View/CompanyStatementPool/viewPuPool.html index ad3b017f0..da97641cc 100644 --- a/Application/Admin/View/CompanyStatementPool/viewPuPool.html +++ b/Application/Admin/View/CompanyStatementPool/viewPuPool.html @@ -143,7 +143,7 @@ {$com['statement_info'][0]['game_name']} {$com['statement_info'][0]['game_type_name']} - {$com['statement_info'][0]['statement_begin_time']} - {$com['statement_info'][0]['statement_end_time']} + {$com['statement_info'][0]['statement_begin_time']}-{$com['statement_info'][0]['statement_end_time']} {$com['statement_info'][0]['pay_amount']} From 5db1f7ce2489f8bb2fca650f0565b2daf5289901 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 7 Aug 2020 18:32:53 +0800 Subject: [PATCH 07/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=AF=94=E4=BE=8B?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 8 ++++---- .../Controller/CompanyStatementSetController.class.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 4038d7417..2035dca2b 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1925,12 +1925,12 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_ if($value['first_ratio'] == 0){ $value['first_ratio'] = 0; }else{ - $value['first_ratio'] = number_format($value['first_ratio'], 2); + $value['first_ratio'] = number_format($value['first_ratio']); } if($value['second_ratio'] == 0) { $value['second_ratio'] = 0; }else{ - $value['second_ratio'] = number_format($value['second_ratio'], 2); + $value['second_ratio'] = number_format($value['second_ratio']); } if($value['promote_ratio'] == 0) $value['promote_ratio'] = 0; if($value['fax_ratio'] == 0) $value['fax_ratio'] = 0; @@ -2041,12 +2041,12 @@ function excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_al if($value['increment_ratio'] == 0){ $value['increment_ratio'] = 0; }else{ - $value['increment_ratio'] = number_format($value['first_ratio'], 2); + $value['increment_ratio'] = number_format($value['first_ratio']); } if($value['ratio'] == 0) { $value['ratio'] = 0; }else{ - $value['ratio'] = number_format($value['ratio'], 2); + $value['ratio'] = number_format($value['ratio']); } if($value['fax_ratio'] == 0) $value['fax_ratio'] = 0; diff --git a/Application/Admin/Controller/CompanyStatementSetController.class.php b/Application/Admin/Controller/CompanyStatementSetController.class.php index 1bb986703..9eaafb685 100644 --- a/Application/Admin/Controller/CompanyStatementSetController.class.php +++ b/Application/Admin/Controller/CompanyStatementSetController.class.php @@ -327,11 +327,11 @@ class CompanyStatementSetController extends Controller { } } if($v['first_company_type'] == 1){ - $game['first_ratio']=$tratio; + $game['first_ratio']=$tratio-0; $game['second_ratio']=100-$tratio; }else{ $game['first_ratio']=100-$tratio; - $game['second_ratio']=$tratio; + $game['second_ratio']=$tratio-0; } $add_data['pay_amount'] += $va['pay_money']; @@ -634,7 +634,7 @@ class CompanyStatementSetController extends Controller { $tratio = $tratio1-$tratio2+$company_ratio; if($tratio <= 0){ continue;} } - + $tratio = $tratio-0; if($v['type'] == 2){ $game['increment_ratio']=$tratio; }else{ From 141951467cd7d2aafb370d02df36ddfcc1e0f5bd Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 11 Aug 2020 10:37:02 +0800 Subject: [PATCH 08/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E9=87=8D=E7=AE=97=E7=94=A8=E6=88=B7bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/CompanyStatementSetController.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/CompanyStatementSetController.class.php b/Application/Admin/Controller/CompanyStatementSetController.class.php index 9eaafb685..3da5da42e 100644 --- a/Application/Admin/Controller/CompanyStatementSetController.class.php +++ b/Application/Admin/Controller/CompanyStatementSetController.class.php @@ -1117,12 +1117,17 @@ class CompanyStatementSetController extends Controller { * 保存信息汇总信息 */ public function savePromotateUserPool($data){ + if(IS_CLI){ + $op_name ="system"; + }else{ + $op_name =$_SESSION['onethink_admin']['user_auth']["username"]; + } if(empty($data['create_lack_ids']) && empty($data['del_lack_ids']) && empty($data['info_ids'])){ //补点为空不重算 return ; } if($data['statement_money'] == 0){ $data['verify_status'] = 5; - $data['verify_log'] = json_encode(["create_user"=>"system","create_time"=>date("Y-m-d H:i:s"),"verify_user"=>"system","verify_time"=>date("Y-m-d H:i:s"),"payment_user"=>"system","payment_time"=>date("Y-m-d H:i:s")]); + $data['verify_log'] = json_encode(["create_user"=>"system","create_time"=>date("Y-m-d H:i:s"),"verify_user"=>$op_name,"verify_time"=>date("Y-m-d H:i:s"),"payment_user"=>"system","payment_time"=>date("Y-m-d H:i:s")]); } $data['create_lack_ids'] = implode(",",$data['create_lack_ids']); $data['del_lack_ids'] = implode(",",$data['del_lack_ids']); From 9b78b8b4616f2f849eb067b5469a3fe98e45469e Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 11 Aug 2020 14:21:37 +0800 Subject: [PATCH 09/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E6=B8=B8?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E7=BB=93=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementSetController.class.php | 41 ++++++++----------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementSetController.class.php b/Application/Admin/Controller/CompanyStatementSetController.class.php index 3da5da42e..b25c742d1 100644 --- a/Application/Admin/Controller/CompanyStatementSetController.class.php +++ b/Application/Admin/Controller/CompanyStatementSetController.class.php @@ -793,12 +793,12 @@ class CompanyStatementSetController extends Controller { } } - public function promoteUserPool($type,$stime,$recount = false,$is_payment=false){ + public function promoteUserPool($type,$stime,$recount = false){ $t = $this->setBeginAndEndTime($type,$stime); $begintime = $t[0]; $endtime = $t[1]; - $basedata = [ + $user = [ "pay_amount"=>0, "statement_money"=>0, "lack_statement_money"=>0, @@ -813,45 +813,40 @@ class CompanyStatementSetController extends Controller { "verify_status"=>0, "company_type"=>2, "verify_log"=>json_encode(["create_user"=>"system","create_time"=>date("Y-m-d H:i:s")]), - "op_time"=>time() + "op_time"=>time(), + "statement_num"=>"PL_".date('Ymd').date('His').sp_random_num(3) ]; - $users = $user = $basedata; - $users['is_payment'] = 1; - $users['statement_num'] = "PL_".date('Ymd').date('His').sp_random_num(3); + // $users = $user = $basedata; + // $users['is_payment'] = 1; + // $users['statement_num'] = "PL_".date('Ymd').date('His').sp_random_num(3); - $user['is_payment'] = 2; - $user['statement_num'] = "PL_".date('Ymd').date('His').sp_random_num(3); + // $user['is_payment'] = 2; + // $user['statement_num'] = "PL_".date('Ymd').date('His').sp_random_num(3); if($type == 0){//周结 - $this->doPromoteUserPool($user,$users,$type,$stime,$recount); + $this->doPromoteUserPool($user,0,$stime,$recount); }else if($type == 1){ $users['withdraw_type'] = 1; $user['withdraw_type'] = 1; //月结&补点 - $this->doPromoteUserPool($user,$users,1,$stime,$recount); + $this->doPromoteUserPool($user,1,$stime,$recount); }else{ $users['withdraw_type'] = 2; $user['withdraw_type'] = 2; - $this->doPromoteUserPool($user,$users,2,$stime,$recount); - } - if($is_payment !== false && $is_payment==1){ - $this->savePromotateUserPool($users); - }else if($is_payment !== false && $is_payment==2){ - $this->savePromotateUserPool($user); - }else{ - $this->savePromotateUserPool($users); - $this->savePromotateUserPool($user); + $this->doPromoteUserPool($user,2,$stime,$recount); } + + $this->savePromotateUserPool($user); } /** * 下游个人汇总单 */ - public function doPromoteUserPool(&$user,&$users,$type,$stime,$recount = false) + public function doPromoteUserPool(&$user,$type,$stime,$recount = false) { $t = $this->setBeginAndEndTime($type,$stime); $begintime = $t[0]; @@ -932,11 +927,7 @@ class CompanyStatementSetController extends Controller { } //获取其他信息 $v = $this->getCompanyOtherInfo($v,$k); - if($v['is_payment'] == 1){ - $countdata = &$users; - }else{ - $countdata = &$user; - } + $countdata = &$user; $v['statement_money'] = 0; $v['pay_amount'] = 0; $v['fine'] = 0; From 95b464f636b74bbbbf1d30eca5ead60af78c9c8b Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 11 Aug 2020 14:22:53 +0800 Subject: [PATCH 10/24] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=85=AC=E5=8F=B8?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E4=BC=9A=E9=95=BF=E9=98=BF=E9=87=8C=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/CompanyStatementSetController.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementSetController.class.php b/Application/Admin/Controller/CompanyStatementSetController.class.php index b25c742d1..6b6558659 100644 --- a/Application/Admin/Controller/CompanyStatementSetController.class.php +++ b/Application/Admin/Controller/CompanyStatementSetController.class.php @@ -895,11 +895,11 @@ class CompanyStatementSetController extends Controller { "company_id"=>$v['id'], "withdraw_done"=>1 ]; - $pres = $Promote->field("alipay_account,alipay_real_name")->where($p_map)->find(); - if(!empty($pres) && !empty($pres['alipay_account']) && !empty($pres['alipay_real_name'])){ - $v['ali_user'] = $pres['alipay_real_name']; - $v['ali_account'] = $pres['alipay_account']; - } + // $pres = $Promote->field("alipay_account,alipay_real_name")->where($p_map)->find(); + // if(!empty($pres) && !empty($pres['alipay_account']) && !empty($pres['alipay_real_name'])){ + // $v['ali_user'] = $pres['alipay_real_name']; + // $v['ali_account'] = $pres['alipay_account']; + // } if($v['has_ratio']){ $v['turnover_ratio'] = json_decode($v['turnover_ratio'],true); } From 7beaff18253c1f260b39d3ba22ebb1fcc3ae7901 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 11 Aug 2020 14:46:37 +0800 Subject: [PATCH 11/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E6=B8=B8?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E6=B1=87=E6=80=BB=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 8 +++- .../View/CompanyStatementPool/viewPuPool.html | 42 ++++++++----------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 3ab8f3d1b..06140f036 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -233,7 +233,6 @@ class CompanyStatementPoolController extends ThinkController } //个人汇总结算查看 public function viewPuPool(&$infolist,$is_export){ - // dd($infolist); $line = 1; $count = []; //获取对接人 @@ -242,6 +241,13 @@ class CompanyStatementPoolController extends ThinkController $v['company_info'] = json_decode($v['company_info'],true); $v['statement_begin_time'] = date('Y.m.d',$v['statement_begin_time']); $v['statement_end_time'] = date('Y.m.d',$v['statement_end_time']); + if( isset($v['verify_status'])){ + if( $v['verify_status'] ==2 ){ + $v['is_payment'] = 2; //不打款 + }else{ + $v['is_payment'] = 1; + } + } $cline = $line+1; if($is_export){ $v['sum_money_exp'] = "="; diff --git a/Application/Admin/View/CompanyStatementPool/viewPuPool.html b/Application/Admin/View/CompanyStatementPool/viewPuPool.html index da97641cc..0b8eb029f 100644 --- a/Application/Admin/View/CompanyStatementPool/viewPuPool.html +++ b/Application/Admin/View/CompanyStatementPool/viewPuPool.html @@ -111,19 +111,14 @@ 奖励 罚款 结算金额 - - 开户名 - 银行卡号 - 开户支行 - 帐户类型 - - - 支付宝真实姓名 - 支付宝账号 - - 备注 + 户名 + 帐号 + 开户行 + 是否支付宝打款 是否结算 + 备注 + 操作 @@ -157,20 +152,23 @@ {$com['statement_info'][0]['fine']} {$com['statement_info'][0]['sum_money']} - + {$com.company_info.payee_name}  {$com.company_info.bank_account} {$com.company_info.opening_bank} - - + {$com.company_info.ali_user} {$com.company_info.ali_account} + - {$com.remark} + + + + {$com.remark} @@ -215,16 +213,10 @@ {$count.sum_money|default=0} - - - - - - - - - - + + + + From ea7bafec91c8755bf04a86678d40a8c2617a121d Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 11 Aug 2020 15:39:34 +0800 Subject: [PATCH 12/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E6=B8=B8?= =?UTF-8?q?=E9=87=8D=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/CompanyStatementPoolController.class.php | 2 +- .../Admin/Controller/CompanyStatementSetController.class.php | 4 +++- Application/Admin/View/CompanyStatementPool/lists.html | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 06140f036..e554313b6 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -786,7 +786,7 @@ class CompanyStatementPoolController extends ThinkController //重新计算 $stime = $info['statement_end_time']-0+1; $type = $info['withdraw_type']; - A("CompanyStatementSet")->promoteUserPool($type,$stime,true,$info['is_payment']); + A("CompanyStatementSet")->promoteUserPool($type,$stime,true); M()->commit(); $this->ajaxReturn(array( diff --git a/Application/Admin/Controller/CompanyStatementSetController.class.php b/Application/Admin/Controller/CompanyStatementSetController.class.php index 6b6558659..85c10b0fa 100644 --- a/Application/Admin/Controller/CompanyStatementSetController.class.php +++ b/Application/Admin/Controller/CompanyStatementSetController.class.php @@ -1118,7 +1118,9 @@ class CompanyStatementSetController extends Controller { } if($data['statement_money'] == 0){ $data['verify_status'] = 5; - $data['verify_log'] = json_encode(["create_user"=>"system","create_time"=>date("Y-m-d H:i:s"),"verify_user"=>$op_name,"verify_time"=>date("Y-m-d H:i:s"),"payment_user"=>"system","payment_time"=>date("Y-m-d H:i:s")]); + $data['verify_log'] = json_encode(["create_user"=>$op_name,"create_time"=>date("Y-m-d H:i:s"),"verify_user"=>"system","verify_time"=>date("Y-m-d H:i:s"),"payment_user"=>"system","payment_time"=>date("Y-m-d H:i:s")]); + }else{ + $data['verify_log'] = json_encode(["create_user"=>$op_name,"create_time"=>date("Y-m-d H:i:s")]); } $data['create_lack_ids'] = implode(",",$data['create_lack_ids']); $data['del_lack_ids'] = implode(",",$data['del_lack_ids']); diff --git a/Application/Admin/View/CompanyStatementPool/lists.html b/Application/Admin/View/CompanyStatementPool/lists.html index 1ccc25ea1..d275a57bb 100644 --- a/Application/Admin/View/CompanyStatementPool/lists.html +++ b/Application/Admin/View/CompanyStatementPool/lists.html @@ -155,7 +155,7 @@ 结算时间 结算类型 结算周期 - 是否打款 + 结算金额 不结算金额 @@ -182,7 +182,7 @@ {$data.valid} {$data.company_type_str} {$data.withdraw_type} - {$data.is_payment_str} + {$data.statement_money} {$data.lack_statement_money} From 027b1f2c08dfaf38c9e161f122f505582ec0f5c1 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 11 Aug 2020 15:41:13 +0800 Subject: [PATCH 13/24] =?UTF-8?q?=E5=90=88=E5=B9=B6ma?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/CompanyStatementPoolController.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index b3e48bd6f..0efd42f8d 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -783,12 +783,10 @@ class CompanyStatementPoolController extends ThinkController $this->ajaxReturn(array('status' => 0,"info"=>"重算失败")); } } - M()->commit(); - //重新计算 $stime = $info['statement_end_time']-0+1; $type = $info['withdraw_type']; - + A("CompanyStatementSet")->promoteUserPool($type,$stime,true); M()->commit(); $this->ajaxReturn(array( From 62f91bb0dfdb642a1d7a734f96220fb5dc407966 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 11 Aug 2020 17:36:14 +0800 Subject: [PATCH 14/24] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/CompanyStatementPoolController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 0efd42f8d..fbcf15a55 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -498,7 +498,7 @@ class CompanyStatementPoolController extends ThinkController $id = $_REQUEST['id']; $CompanyInfo = M("company_statement_info","tab_") ->alias('i') - ->field("i.id,i.pool_id,i.company_name,i.company_info,i.statement_money,p.statement_num,i.remark,i.pay_status,p.statement_money all_money") + ->field("i.id,i.pool_id,i.company_name,i.company_info,i.statement_money,p.statement_num,i.remark,i.pay_status,p.statement_money all_money,i.verify_status") ->join("tab_company_statement_pool p ON p.id = i.pool_id") ->where("pool_id='{$id}'") ->select(); @@ -538,7 +538,7 @@ class CompanyStatementPoolController extends ThinkController $CompanyInfo->save($savedata); } //修改状态 - $this->setOneVerifyStatus(2,"payment",$_REQUEST['pool_id'],$mgs = "打款信息提交"); + $this->setOneVerifyStatus(2,"payment",$_REQUEST['pool_id'],$mgs = "打款信息确认"); } //查看打款信息 public function viewPayment(){ @@ -907,7 +907,7 @@ class CompanyStatementPoolController extends ThinkController "setUlPayment"=>"线下打款", - "setPayment"=>"打款信息提交", + "setPayment"=>"打款信息确认", "editPayment"=>"打款信息编辑", "viewPayment"=>"打款详情", From ec7b333fa4a08267ceb8d07b1af0d4f250f9d0f8 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 12 Aug 2020 10:43:09 +0800 Subject: [PATCH 15/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E6=B8=B8?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E6=89=93=E6=AC=BE=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 30 +++++-- .../View/CompanyStatementPool/lists.html | 2 +- .../View/CompanyStatementPool/setPayment.html | 84 +++++++++---------- 3 files changed, 62 insertions(+), 54 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index fbcf15a55..2cf7746a9 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -502,12 +502,18 @@ class CompanyStatementPoolController extends ThinkController ->join("tab_company_statement_pool p ON p.id = i.pool_id") ->where("pool_id='{$id}'") ->select(); + foreach($CompanyInfo as $k=>&$v){ + if($v['verify_status'] == 2){ + $v['is_payment'] = 2; + }else{ + $v['is_payment'] = 1; + } + $v['company_info'] = json_decode($v['company_info'],true); $v['company_info']['ali_user'] ?? ''; $v['company_info']['ali_account'] ?? ''; } - $this->assign("CompanyInfo",$CompanyInfo); $this->assign("id",$id); $this->display(); @@ -520,20 +526,26 @@ class CompanyStatementPoolController extends ThinkController //循环保存 foreach($info as $k=>$v){ $ydata = $CompanyInfo->where("id= '{$k}'")->find(); - if($ydata['verify_status'] == 2){continue;} - $company_info = json_decode($ydata['company_info'],true); - $company_info['ali_user'] = $v['ali_user']; - $company_info['ali_account'] = $v['ali_account']; + if($ydata['verify_status'] == 2){ + $company_info['payee_name'] = $v['payee_name']; + $company_info['bank_account'] = $v['bank_account']; + $company_info['opening_bank'] = $v['opening_bank']; + }else{ + $company_info['ali_user'] = $v['ali_user']; + $company_info['ali_account'] = $v['ali_account']; + } $savedata = [ "company_info"=>json_encode($company_info,JSON_UNESCAPED_UNICODE), "remark"=>$v['remark'], "id"=>$k ]; - if(empty($v['ali_user']) || empty($v['ali_account'])){ - $savedata['verify_status'] = -1; - }else{ - $savedata['verify_status'] = 1; + if($ydata['verify_status'] != 2){ + if(empty($v['ali_user']) || empty($v['ali_account'])){ + $savedata['verify_status'] = -1; + }else{ + $savedata['verify_status'] = 1; + } } $CompanyInfo->save($savedata); } diff --git a/Application/Admin/View/CompanyStatementPool/lists.html b/Application/Admin/View/CompanyStatementPool/lists.html index d275a57bb..831d04102 100644 --- a/Application/Admin/View/CompanyStatementPool/lists.html +++ b/Application/Admin/View/CompanyStatementPool/lists.html @@ -430,7 +430,7 @@ title: "海南万盟天下科技有限公司", shadeClose: true, shade: 0.8, - area: ['70%', '80%'], + area: ['80%', '80%'], content: url }); }) diff --git a/Application/Admin/View/CompanyStatementPool/setPayment.html b/Application/Admin/View/CompanyStatementPool/setPayment.html index 9ace64b39..841a5dee4 100644 --- a/Application/Admin/View/CompanyStatementPool/setPayment.html +++ b/Application/Admin/View/CompanyStatementPool/setPayment.html @@ -105,10 +105,14 @@ 序号 合作公司 - 支付宝真实名称 - 支付宝账号 + 是否支付宝打款 + + 户名 + 帐号 + 开户行 + 关联结算汇总单订单号 - 金额(元) + 结算金额(元) 备注 @@ -118,8 +122,18 @@ {$key-0+1} {$vo.company_name} - - + + 是 + + + + + 否 + + + + + {$vo.statement_num} {$vo.statement_money} @@ -128,8 +142,18 @@ {$key-0+1} {$vo.company_name} - {$vo.company_info.ali_user} - {$vo.company_info.ali_account} + + + 是 + {$vo.company_info.ali_user} + {$vo.company_info.ali_account} + + + 否 + {$vo.company_info.payee_name} + {$vo.company_info.bank_account} + {$vo.company_info.opening_bank} + {$vo.statement_num} {$vo.statement_money} {$vo.remark} @@ -139,7 +163,7 @@ 合计: - 打款总金额:{$CompanyInfo[0]['all_money']} + 结算总金额:{$CompanyInfo[0]['all_money']} @@ -155,47 +179,20 @@ From c1b5b2f71688920a4e5ef3b471820392cb7a9f68 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 12 Aug 2020 19:35:39 +0800 Subject: [PATCH 19/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E6=B8=B8?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=85=AC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 1bc38bff5..3d6c712ab 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -398,9 +398,6 @@ class CompanyStatementPoolController extends ThinkController if($is_export){ $v['statement_money_exp'] .= "K{$line}+"; $va['d_statement_money'] = "=F{$line}*G{$line}"; - $count['platform_amount_exp'] .= "E{$line}+"; - $count['platform_amount_exp2'] .= "F{$line}+"; - $count['d_statement_money_exp'] .= "K{$line}+"; }else{ $va['d_statement_money'] = round($va['pay_amount']*$va['ratio']/100,2); $count['platform_amount'] += $va['pay_amount']; @@ -412,9 +409,6 @@ class CompanyStatementPoolController extends ThinkController if($is_export){ $v['statement_money_exp'] .= "M{$cline}-L{$cline}"; $v['statement_money'] = $v['statement_money_exp']; - $count['fine_exp'] .= "L{$cline}+"; - $count['reward_exp'] .= "M{$cline}+"; - $count['statement_money_exp'] .= "N{$cline}+"; }else{ $count['fine'] += $v['fine']; $count['reward'] += $v['reward']; @@ -424,12 +418,12 @@ class CompanyStatementPoolController extends ThinkController } if($is_export){ - $count["d_statement_money"] = "=".trim($count["d_statement_money_exp"],"+"); - $count["platform_amount"] = "=".trim($count["platform_amount_exp"],"+"); - $count["platform_amount2"] = "=".trim($count["platform_amount_exp2"],"+"); - $count["fine"] = "=".trim($count["fine_exp"],"+"); - $count["reward"] = "=".trim($count["reward_exp"],"+"); - $count["statement_money"] = "=".trim($count["statement_money_exp"],"+"); + $count["d_statement_money"] = "=SUM(K3:K".$line.")"; + $count["platform_amount"] = "=SUM(E3:E".$line.")"; + $count["platform_amount2"] = "=SUM(F3:F".$line.")"; + $count["fine"] = "=SUM(L3:L".$line.")"; + $count["reward"] = "=SUM(M3:M".$line.")"; + $count["statement_money"] = "=SUM(N3:N".$line.")"; } // dd($infolist); $this->assign("data",$infolist); From 51778a2a738f9b66d9d4a116cf5a81f56ddf7216 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 12 Aug 2020 20:07:53 +0800 Subject: [PATCH 20/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E6=B8=B8?= =?UTF-8?q?=E5=85=AC=E5=8F=B8=E5=AF=BC=E5=87=BA=E5=8F=8A=E6=B1=87=E6=80=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 10 ++- .../View/CompanyStatementPool/viewPcPool.html | 86 ++++++++++++++++--- 2 files changed, 84 insertions(+), 12 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 3d6c712ab..198518648 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -296,8 +296,16 @@ class CompanyStatementPoolController extends ThinkController unset($pl); foreach($infolist as $k=>&$v){ $v['statement_info'] = json_decode($v['statement_info'],true); + $v['company_info'] = json_decode($v['company_info'],true); $v['statement_begin_time'] = date('Y.m.d',$v['statement_begin_time']); $v['statement_end_time'] = date('Y.m.d',$v['statement_end_time']); + if( isset($v['verify_status'])){ + if( $v['verify_status'] ==2 ){ + $v['is_payment'] = 2; //不打款 + }else{ + $v['is_payment'] = 1; + } + } $cline = $line+1; if($is_export){ $v['statement_money_exp'] = "="; @@ -351,7 +359,7 @@ class CompanyStatementPoolController extends ThinkController $count["reward"] = "=".trim($count["reward_exp"],"+"); $count["statement_money"] = "=".trim($count["statement_money_exp"],"+"); } - + // dd($infolist); $this->assign("data",$infolist); $this->assign("count",$count); $this->assign("is_export",$is_export); diff --git a/Application/Admin/View/CompanyStatementPool/viewPcPool.html b/Application/Admin/View/CompanyStatementPool/viewPcPool.html index 1821046e7..10e3aee4a 100644 --- a/Application/Admin/View/CompanyStatementPool/viewPcPool.html +++ b/Application/Admin/View/CompanyStatementPool/viewPcPool.html @@ -109,7 +109,18 @@ 合计/元 对账人 结算日期 + + + 户名 + 帐号 + 开户行 + 是否支付宝打款 + 是否结算 + 备注 + + 操作 + @@ -119,16 +130,40 @@ {$com.company_name} {$com['statement_info'][0]['game_name']} {$com['statement_info'][0]['pay_amount']} - {$com['statement_info'][0]['ratio']}% - {$com['statement_info'][0]['increment_ratio']}% - {$com['statement_info'][0]['fax_ratio']}% + {$com['statement_info'][0]['ratio']|showNumPercent} + {$com['statement_info'][0]['increment_ratio']|showNumPercent} + {$com['statement_info'][0]['fax_ratio']|showNumPercent} {$com['statement_info'][0]['d_statement_money']} - {$com.fine} - {$com.reward} - {$com.statement_money} + {$com['fine']-0} + {$com['reward']-0} + {$com['statement_money']-0} {$com.settlement_contact} - {$com['statement_info'][0]['statement_begin_time']} - {$com['statement_info'][0]['statement_end_time']} + {$com['statement_info'][0]['statement_begin_time']}-{$com['statement_info'][0]['statement_end_time']} + + + + {$com.company_info.payee_name} +  {$com.company_info.bank_account} + {$com.company_info.opening_bank} + + + + {$com.company_info.ali_user} + {$com.company_info.ali_account} + + + + + {$com.renark} + + + + + 不结算 + + + @@ -136,11 +171,11 @@ {$it['game_name']} {$it['pay_amount']} - {$it['ratio']}% - {$it['increment_ratio']}% - {$it['fax_ratio']}% + {$it['ratio']|showNumPercent} + {$it['increment_ratio']|showNumPercent} + {$it['fax_ratio']|showNumPercent} {$it['d_statement_money']} - {$it['statement_begin_time']} - {$it['statement_end_time']} + {$it['statement_begin_time']}-{$it['statement_end_time']} @@ -158,6 +193,14 @@ + + + + + + + + @@ -173,5 +216,26 @@ }); }); + $(".no_statement").on("click",function(){ + var id = $(this).data('id'); + $.ajax({ + type: "POST", + url: "{:U('cancelStatement')}", + dataType: 'json', + async: false, + data: {id:id}, + success:function(data){ + if(data.status==1){ + layer.msg("" + data.info + ""); + setTimeout(function(){ + window.location.reload(); + },1500); + }else{ + layer.msg("" + data.info + ""); + return false; + } + } + }); + }) From 0a049e0391422b244f718fa48dcea5732c35b832 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 12 Aug 2020 20:17:27 +0800 Subject: [PATCH 21/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E6=B8=B8?= =?UTF-8?q?=E5=85=AC=E5=8F=B8=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 198518648..e78d86d9f 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -322,10 +322,6 @@ class CompanyStatementPoolController extends ThinkController $v['statement_money_exp'] .= "H{$line}+"; $va['d_statement_money'] = "=D{$line}*(1-G{$line})*(E{$line}+F{$line})"; - - $count['platform_amount_exp'] .= "D{$line}+"; - $count['d_statement_money_exp'] .= "H{$line}+"; - }else{ $va['d_statement_money'] = round($va['pay_amount']*($va['ratio']+$va['increment_ratio'])*(100-$va['fax_ratio'])/100/100,2); @@ -339,11 +335,6 @@ class CompanyStatementPoolController extends ThinkController if($is_export){ $v['statement_money_exp'] .= "J{$cline}-I{$cline}"; $v['statement_money'] = $v['statement_money_exp']; - - $count['fine_exp'] .= "I{$cline}+"; - $count['reward_exp'] .= "J{$cline}+"; - - $count['statement_money_exp'] .= "K{$cline}+"; }else{ $count['fine'] += $v['fine']; $count['reward'] += $v['reward']; @@ -353,11 +344,11 @@ class CompanyStatementPoolController extends ThinkController } if($is_export){ - $count["d_statement_money"] = "=".trim($count["d_statement_money_exp"],"+"); - $count["platform_amount"] = "=".trim($count["platform_amount_exp"],"+"); - $count["fine"] = "=".trim($count["fine_exp"],"+"); - $count["reward"] = "=".trim($count["reward_exp"],"+"); - $count["statement_money"] = "=".trim($count["statement_money_exp"],"+"); + $count["platform_amount"] = "=SUM(D2:D".$line.")"; + $count["d_statement_money"] = "=SUM(H2:H".$line.")"; + $count["fine"] = "=SUM(I2:I".$line.")"; + $count["reward"] = "=SUM(J2:J".$line.")"; + $count["statement_money"] = "=SUM(K2:K".$line.")"; } // dd($infolist); $this->assign("data",$infolist); From 0a136fbbde4df72574945b5ffe306b103ac4db91 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Thu, 13 Aug 2020 09:54:00 +0800 Subject: [PATCH 22/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementController.class.php | 20 +++++++++---------- .../CompanyStatementLackController.class.php | 8 ++++---- .../CompanyStatementPoolController.class.php | 14 ++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index 0239a76e0..98f1e5cf5 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -132,12 +132,12 @@ class CompanyStatementController extends ThinkController ->order("FIELD(verify_status,0,1,-1,2,3,-2,-3),id desc")->page($page,$row)->select(); foreach($data as $k => &$v) { - $v['statement_begin_time'] = date('Y-m-d',$v['statement_begin_time']); - $v['statement_end_time'] = date('Y-m-d',$v['statement_end_time']); + $v['statement_begin_time'] = date('Y.m.d',$v['statement_begin_time']); + $v['statement_end_time'] = date('Y.m.d',$v['statement_end_time']); $v['company_belong'] = $this->CompanyBelong[$v['company_belong']]; - $v['op_time'] = date('Y-m-d H:i:s',$v['op_time']); - $v["valid"] = "{$v['statement_begin_time']} ~ {$v['statement_end_time']}"; + $v['op_time'] = date('Y.m.d H:i:s',$v['op_time']); + $v["valid"] = "{$v['statement_begin_time']}-{$v['statement_end_time']}"; $v['withdraw_type_1'] = ($v['withdraw_type'] == 1 ? "月结" :"周结"); @@ -282,7 +282,7 @@ class CompanyStatementController extends ThinkController $y = M("CompanyStatement", "tab_")->where("id='{$params['id']}'")->find(); if($y['first_party_info'] != $params['first_party_info'] || $y['second_party_info'] != $params['second_party_info'] || $y['statement_info'] != $params['statement_info']){ $params['verify_status'] = 0; - $params['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s")]); + $params['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y.m.d H:i:s")]); $params['op_time'] = time(); M("CompanyStatement","tab_")->save($params); } @@ -342,7 +342,7 @@ class CompanyStatementController extends ThinkController if($v['confirm_status'] != 0) continue; $v['confirm_log'] = json_decode($v['confirm_log'],true); $v['confirm_log']['launch_user']=$this->admininfo["username"]; - $v['confirm_log']['launch_time']=date("Y-m-d H:i:s"); + $v['confirm_log']['launch_time']=date("Y.m.d H:i:s"); $v['confirm_log'] = json_encode($v['confirm_log']); $v['confirm_status']=1; // $v['op_time'] = time(); @@ -364,7 +364,7 @@ class CompanyStatementController extends ThinkController if($v['verify_status'] != $old_status) continue; $v['verify_log'] = json_decode($v['verify_log'],true); $v['verify_log'][$op_pre.'_user']=$this->admininfo["username"]; - $v['verify_log'][$op_pre.'_time']=date("Y-m-d H:i:s"); + $v['verify_log'][$op_pre.'_time']=date("Y.m.d H:i:s"); $v['verify_log'] = json_encode($v['verify_log']); $v['verify_status']=$change_status; $v['op_time'] = time(); @@ -484,7 +484,7 @@ class CompanyStatementController extends ThinkController "fine"=>0, "reward"=>0, "verify_status"=>0, - "verify_log"=>json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s")]), + "verify_log"=>json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y.m.d H:i:s")]), "op_time"=>time(), "company_list"=>[] ]; @@ -534,7 +534,7 @@ class CompanyStatementController extends ThinkController if($v['statement_money'] == 0){ $v['verify_status'] = 5; - $v['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s"),"verify_user"=>"system","verify_time"=>date("Y-m-d H:i:s"),"payment_user"=>"system","payment_time"=>date("Y-m-d H:i:s")]); + $v['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y.m.d H:i:s"),"verify_user"=>"system","verify_time"=>date("Y.m.d H:i:s"),"payment_user"=>"system","payment_time"=>date("Y.m.d H:i:s")]); } //判断周月结 if(($v["statement_end_time"]-$v['statement_begin_time']) > 7*24*3600){ @@ -568,7 +568,7 @@ class CompanyStatementController extends ThinkController if($v['verify_status'] != $old_status) continue; $v['verify_log'] = json_decode($v['verify_log'],true); $v['verify_log'][$op_pre.'_user']=$this->admininfo["username"]; - $v['verify_log'][$op_pre.'_time']=date("Y-m-d H:i:s"); + $v['verify_log'][$op_pre.'_time']=date("Y.m.d H:i:s"); $v['verify_log'][$op_pre.'_num']=$num; $v['verify_log'] = json_encode($v['verify_log']); $v['verify_status']=$change_status; diff --git a/Application/Admin/Controller/CompanyStatementLackController.class.php b/Application/Admin/Controller/CompanyStatementLackController.class.php index 2403610c6..46ada8f23 100644 --- a/Application/Admin/Controller/CompanyStatementLackController.class.php +++ b/Application/Admin/Controller/CompanyStatementLackController.class.php @@ -75,11 +75,11 @@ class CompanyStatementLackController extends ThinkController foreach($data as $k => &$v) { - $v['statement_begin_time'] = date('Y-m-d',$v['statement_begin_time']); - $v['statement_end_time'] = date('Y-m-d',$v['statement_end_time']); + $v['statement_begin_time'] = date('Y.m.d',$v['statement_begin_time']); + $v['statement_end_time'] = date('Y.m.d',$v['statement_end_time']); $v['is_payment_str'] = $this->IsPayment[$v['is_payment']]; $v['company_type_str'] = $this->CompanyType[$v['company_type']]; - $v["valid"] = "{$v['statement_begin_time']} ~ {$v['statement_end_time']}"; + $v["valid"] = "{$v['statement_begin_time']}-{$v['statement_end_time']}"; $v['oplist'] = $this->OpAuth($v); } @@ -146,7 +146,7 @@ class CompanyStatementLackController extends ThinkController "fine"=>0, "reward"=>0, "verify_status"=>0, - "verify_log"=>json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s")]), + "verify_log"=>json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y.m.d H:i:s")]), "op_time"=>time(), "company_list"=>[] ]; diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index e78d86d9f..b4d3a5fe9 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -113,8 +113,8 @@ class CompanyStatementPoolController extends ThinkController ->page($page,$row)->select(); foreach($data as $k => &$v) { - $v['statement_begin_time'] = date('Y-m-d',$v['statement_begin_time']); - $v['statement_end_time'] = date('Y-m-d',$v['statement_end_time']); + $v['statement_begin_time'] = date('Y.m.d',$v['statement_begin_time']); + $v['statement_end_time'] = date('Y.m.d',$v['statement_end_time']); $v['company_type_str'] = $this->CompanyType[$v['company_type']]; $v['is_payment_str'] = $this->IsPayment[$v['is_payment']]; @@ -123,8 +123,8 @@ class CompanyStatementPoolController extends ThinkController $v['can_export'] = 1; } - $v['op_time'] = date('Y-m-d H:i:s',$v['op_time']); - $v["valid"] = "{$v['statement_begin_time']} ~ {$v['statement_end_time']}"; + $v['op_time'] = date('Y.m.d H:i:s',$v['op_time']); + $v["valid"] = "{$v['statement_begin_time']}-{$v['statement_end_time']}"; $v['ext_file_type'] = empty($v['ext_file']) ? "无" : "有"; $v['withdraw_type'] = $this->WithdrawType[$v['withdraw_type']];; @@ -465,7 +465,7 @@ class CompanyStatementPoolController extends ThinkController if($v['verify_status'] != $old_status) continue; $v['verify_log'] = json_decode($v['verify_log'],true); $v['verify_log'][$op_pre.'_user']=$this->admininfo["username"]; - $v['verify_log'][$op_pre.'_time']=date("Y-m-d H:i:s"); + $v['verify_log'][$op_pre.'_time']=date("Y.m.d H:i:s"); $v['verify_log'] = json_encode($v['verify_log']); $v['verify_status']=$change_status; $this->DBModel->save($v); @@ -483,7 +483,7 @@ class CompanyStatementPoolController extends ThinkController $dbres = $this->DBModel->field("id,verify_status,verify_log")->where("id = {$id}")->find(); $dbres['verify_log'] = json_decode($dbres['verify_log'],true); $dbres['verify_log'][$op_pre.'_user']=$this->admininfo["username"]; - $dbres['verify_log'][$op_pre.'_time']=date("Y-m-d H:i:s"); + $dbres['verify_log'][$op_pre.'_time']=date("Y.m.d H:i:s"); $dbres['verify_log'] = json_encode($dbres['verify_log']); $dbres['verify_status']=$change_status; $this->DBModel->save($dbres); @@ -854,7 +854,7 @@ class CompanyStatementPoolController extends ThinkController foreach($st_res as $k=>&$v){ $v['verify_log'] = json_decode($v['verify_log'],true); $v['verify_log']['pool_user']=$this->admininfo["username"]; - $v['verify_log']['pool_time']=date("Y-m-d H:i:s"); + $v['verify_log']['pool_time']=date("Y.m.d H:i:s"); $v['verify_log'] = json_encode($v['verify_log']); $v['verify_status']=-3; $stres = M("company_statement","tab_")->save($v); From d63edee6b36558471d5640a960b81d539ae6b3dc Mon Sep 17 00:00:00 2001 From: chenzhi Date: Thu, 13 Aug 2020 10:17:49 +0800 Subject: [PATCH 23/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E5=8D=95=E7=95=8C=E9=9D=A2=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 8 ++++---- .../View/CompanyStatement/viewCpStatement.html | 14 +++++++------- .../View/CompanyStatement/viewPcStatement.html | 12 ++++++------ 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 2035dca2b..6cda8d817 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1918,10 +1918,10 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_ } } else {//游戏 $product_name = $value['game_name']; - $objPHPExcel->getActiveSheet()->getStyle('F'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00); - $objPHPExcel->getActiveSheet()->getStyle('G'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00); - $objPHPExcel->getActiveSheet()->getStyle('H'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00); - $objPHPExcel->getActiveSheet()->getStyle('I'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_000); + $objPHPExcel->getActiveSheet()->getStyle('F'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE); + $objPHPExcel->getActiveSheet()->getStyle('G'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE); + $objPHPExcel->getActiveSheet()->getStyle('H'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE); + $objPHPExcel->getActiveSheet()->getStyle('I'.$line)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE); if($value['first_ratio'] == 0){ $value['first_ratio'] = 0; }else{ diff --git a/Application/Admin/View/CompanyStatement/viewCpStatement.html b/Application/Admin/View/CompanyStatement/viewCpStatement.html index eadbad10d..353bcdf78 100644 --- a/Application/Admin/View/CompanyStatement/viewCpStatement.html +++ b/Application/Admin/View/CompanyStatement/viewCpStatement.html @@ -210,7 +210,7 @@ - {$it.statement_begin_time}~{$it.statement_end_time} + {$it.statement_begin_time}-{$it.statement_end_time} {$it.game_name} -{$it.pay_amount} @@ -218,10 +218,10 @@ {$it.pay_amount} - {$it.first_ratio}% - {$it.second_ratio}% - {$it.promote_ratio}% - {$it.fax_ratio}% + {$it.first_ratio|showNumPercent} + {$it.second_ratio|showNumPercent} + {$it.promote_ratio|showNumPercent} + {$it.fax_ratio|showNumPercent} @@ -240,12 +240,12 @@ 合计 - {$data.statement_count.pay_amount} + {$data['statement_count']['pay_amount']-0} - {$data.statement_count.statement_money} + {$data['statement_count']['statement_money']-0} 本月分成总金额(人民币大写): diff --git a/Application/Admin/View/CompanyStatement/viewPcStatement.html b/Application/Admin/View/CompanyStatement/viewPcStatement.html index 9765e8d35..cbc05dfc5 100644 --- a/Application/Admin/View/CompanyStatement/viewPcStatement.html +++ b/Application/Admin/View/CompanyStatement/viewPcStatement.html @@ -206,7 +206,7 @@ - {$it.statement_begin_time}~{$it.statement_end_time} + {$it.statement_begin_time}-{$it.statement_end_time} {$it.game_name} -{$it.pay_amount} @@ -215,11 +215,11 @@ - {$it.increment_ratio}% + {$it.increment_ratio|showNumPercent} - {$it.ratio}% + {$it.ratio|showNumPercent} - {$it.fax_ratio}% + {$it.fax_ratio|showNumPercent} @@ -236,10 +236,10 @@ 合计 - {$data.statement_count.pay_amount} + {$data['statement_count']['pay_amount']-0} - {$data.statement_count.statement_money} + {$data['statement_count']['statement_money']-0} 本月分成总金额(人民币大写): From 7eee79a86738a4fe520fc7eaeceb23a552b22649 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 14 Aug 2020 10:49:41 +0800 Subject: [PATCH 24/24] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/CompanyStatementPool/viewPuPool.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/View/CompanyStatementPool/viewPuPool.html b/Application/Admin/View/CompanyStatementPool/viewPuPool.html index 0b8eb029f..80e02d5d5 100644 --- a/Application/Admin/View/CompanyStatementPool/viewPuPool.html +++ b/Application/Admin/View/CompanyStatementPool/viewPuPool.html @@ -186,7 +186,7 @@ {$it['game_name']} {$it['game_type_name']} - {$it['statement_begin_time']} - {$it['statement_end_time']} + {$it['statement_begin_time']}-{$it['statement_end_time']} {$it['pay_amount']}