优化下游查看

master
chenzhi 4 years ago
parent 651aa6cc8b
commit c57c40535b

@ -211,13 +211,14 @@ class CompanyStatementPoolController extends ThinkController
$statement_num = $pool_info['statement_num']; $statement_num = $pool_info['statement_num'];
$this->assign("title",$statement_num); $this->assign("title",$statement_num);
$this->assign("pool_status",$pool_info['verify_status']); $this->assign("pool_status",$pool_info['verify_status']);
$this->assign("pool_status",$pool_info['verify_status']);
$this->assign("is_payment",$pool_info['is_payment']);
if($infolist[0]['company_type'] == 3){ if($infolist[0]['company_type'] == 3){
//上游 //上游
$this->viewCpPool($infolist,$is_export,$pool_info); $this->viewCpPool($infolist,$is_export);
}elseif($infolist[0]['company_type'] == 1){ }elseif($infolist[0]['company_type'] == 1){
//下游公司 //下游公司
$this->viewPcPool($infolist,$is_export,$pool_info); $this->viewPcPool($infolist,$is_export);
}else{ }else{
//获取母单 //获取母单
if(!empty($pool_info['create_lack_ids'])){ if(!empty($pool_info['create_lack_ids'])){
@ -226,12 +227,12 @@ class CompanyStatementPoolController extends ThinkController
$infolist =array_merge($infolist,$lack_info); $infolist =array_merge($infolist,$lack_info);
} }
$this->viewPuPool($infolist,$is_export,$pool_info); $this->viewPuPool($infolist,$is_export);
} }
} }
//个人汇总结算查看 //个人汇总结算查看
public function viewPuPool(&$infolist,$is_export,$pool_info){ public function viewPuPool(&$infolist,$is_export){
// dd($infolist); // dd($infolist);
$line = 1; $line = 1;
$count = []; $count = [];
@ -272,7 +273,6 @@ class CompanyStatementPoolController extends ThinkController
$count["sum_money"] = "=SUM(O2:O".$line.")"; $count["sum_money"] = "=SUM(O2:O".$line.")";
} }
$this->assign("data",$infolist); $this->assign("data",$infolist);
$this->assign("is_payment",$pool_info['is_payment']);
$this->assign("count",$count); $this->assign("count",$count);
$this->assign("is_export",$is_export); $this->assign("is_export",$is_export);
$this->display("CompanyStatementPool/viewPuPool"); $this->display("CompanyStatementPool/viewPuPool");

Loading…
Cancel
Save