From ce5a83e9bceafdf3555ea6e161395f06101dcc94 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 26 Aug 2020 09:29:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B1=87=E6=80=BB=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 22 +++++-------------- .../View/CompanyStatementPool/viewCpPool.html | 6 +++-- .../View/CompanyStatementPool/viewPcPool.html | 2 +- 3 files changed, 10 insertions(+), 20 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 08214598f..7e28dd660 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -118,10 +118,10 @@ class CompanyStatementPoolController extends ThinkController $v['company_type_str'] = $this->CompanyType[$v['company_type']]; $v['is_payment_str'] = $this->IsPayment[$v['is_payment']]; - $v['can_export'] = $v['statement_money'] == 0 ? "0" : '1'; - if($v['company_type'] == 2){ + // $v['can_export'] = $v['platform_amount'] == 0 ? "0" : '1'; + // if($v['company_type'] == 2){ $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']}"; @@ -285,7 +285,6 @@ class CompanyStatementPoolController extends ThinkController $count["platform_amount"] = "=SUM(J2:J".$line.")"; $count["sum_money"] = "=SUM(P2:P".$line.")"; } - // dd($infolist); $this->assign("data",$infolist); $this->assign("count",$count); $this->assign("is_export",$is_export); @@ -317,9 +316,6 @@ class CompanyStatementPoolController extends ThinkController } } $cline = $line+1; - if($is_export){ - $v['statement_money_exp'] = "="; - } foreach($v['statement_info'] as $ke=>&$va){ $line ++; if(isset($va['ratio'])){ @@ -329,8 +325,6 @@ class CompanyStatementPoolController extends ThinkController } if($is_export){ - $v['statement_money_exp'] .= "H{$line}+"; - $va['d_statement_money'] = "=D{$line}*(1-G{$line})*(E{$line}+F{$line})"; }else{ $va['d_statement_money'] = round($va['pay_amount']*($va['ratio']+$va['increment_ratio'])*(100-$va['fax_ratio'])/100/100,2); @@ -343,8 +337,7 @@ class CompanyStatementPoolController extends ThinkController $v['settlement_contact'] = $Partner[$v['company_id']]; if($is_export){ - $v['statement_money_exp'] .= "J{$cline}-I{$cline}"; - $v['statement_money'] = $v['statement_money_exp']; + $v['statement_money'] = "=SUM(H{$cline}:H{$line})+J{$cline}-I{$cline}"; }else{ $count['fine'] += $v['fine']; $count['reward'] += $v['reward']; @@ -398,14 +391,10 @@ class CompanyStatementPoolController extends ThinkController } $cline = $line+1; - if($is_export){ - $v['statement_money_exp'] = "="; - } foreach($v['statement_info'] as $ke=>&$va){ $line ++; $va['company_ratio'] = 100-$va['ratio']; if($is_export){ - $v['statement_money_exp'] .= "K{$line}+"; $va['d_statement_money'] = "=F{$line}*G{$line}"; }else{ $va['d_statement_money'] = round($va['pay_amount']*$va['ratio']/100,2); @@ -416,8 +405,7 @@ class CompanyStatementPoolController extends ThinkController } $v['matche_platform'] = $Partner[$v['company_id']]; if($is_export){ - $v['statement_money_exp'] .= "M{$cline}-L{$cline}"; - $v['statement_money'] = $v['statement_money_exp']; + $v['statement_money'] = "=SUM(K{$cline}:K{$line})+M{$cline}-L{$cline}"; }else{ $count['fine'] += $v['fine']; $count['reward'] += $v['reward']; diff --git a/Application/Admin/View/CompanyStatementPool/viewCpPool.html b/Application/Admin/View/CompanyStatementPool/viewCpPool.html index 26a4c941b..0ce64f331 100644 --- a/Application/Admin/View/CompanyStatementPool/viewCpPool.html +++ b/Application/Admin/View/CompanyStatementPool/viewCpPool.html @@ -119,8 +119,10 @@ 账户信息 备注 - 操作 + + 操作 + 合作方 @@ -150,7 +152,7 @@ {$com['fine']-0} {$com['reward']-0} - {$com['statement_money']-0} + {$com['statement_money']} diff --git a/Application/Admin/View/CompanyStatementPool/viewPcPool.html b/Application/Admin/View/CompanyStatementPool/viewPcPool.html index 10e3aee4a..62c6f57db 100644 --- a/Application/Admin/View/CompanyStatementPool/viewPcPool.html +++ b/Application/Admin/View/CompanyStatementPool/viewPcPool.html @@ -136,7 +136,7 @@ {$com['statement_info'][0]['d_statement_money']} {$com['fine']-0} {$com['reward']-0} - {$com['statement_money']-0} + {$com['statement_money']} {$com.settlement_contact} {$com['statement_info'][0]['statement_begin_time']}-{$com['statement_info'][0]['statement_end_time']}