新功能开发

master
zhengyongxing 4 years ago
parent a84a69fd56
commit ae3ad391fd

@ -629,21 +629,6 @@ class CompanyStatementController extends ThinkController
foreach ($company_id as $ckey => $cvalue) {
$use_data = [
"01"=>["time"=>"01"],
"02"=>["time"=>"02"],
"03"=>["time"=>"03"],
"04"=>["time"=>"04"],
"05"=>["time"=>"05"],
"06"=>["time"=>"06"],
"07"=>["time"=>"07"],
"08"=>["time"=>"08"],
"09"=>["time"=>"09"],
"10"=>["time"=>"10"],
"11"=>["time"=>"11"],
"12"=>["time"=>"12"],
];
$map["company_id"] = $cvalue;
$map['company_belong'] = 9;
@ -652,6 +637,21 @@ class CompanyStatementController extends ThinkController
->where($map)
->select();
$use_data = [
"01"=>["time"=>"01","show_company_name"=>$data[0]["company_name"]],
"02"=>["time"=>"02","show_company_name"=>$data[0]["company_name"]],
"03"=>["time"=>"03","show_company_name"=>$data[0]["company_name"]],
"04"=>["time"=>"04","show_company_name"=>$data[0]["company_name"]],
"05"=>["time"=>"05","show_company_name"=>$data[0]["company_name"]],
"06"=>["time"=>"06","show_company_name"=>$data[0]["company_name"]],
"07"=>["time"=>"07","show_company_name"=>$data[0]["company_name"]],
"08"=>["time"=>"08","show_company_name"=>$data[0]["company_name"]],
"09"=>["time"=>"09","show_company_name"=>$data[0]["company_name"]],
"10"=>["time"=>"10","show_company_name"=>$data[0]["company_name"]],
"11"=>["time"=>"11","show_company_name"=>$data[0]["company_name"]],
"12"=>["time"=>"12","show_company_name"=>$data[0]["company_name"]],
];
$row = 0;
foreach($data as $key => $value) {
@ -661,7 +661,7 @@ class CompanyStatementController extends ThinkController
$statement_info = $data[$key]['statement_info'];
$data[$key]['row'] = count($data[$key]['statement_info']);
$data[$key]['show_company_name'] = $value["company_name"];
$row += $data[$key]['row'];
foreach ($statement_info as $k => $v) {

@ -160,9 +160,16 @@
var list = '{$js_data}';
var company_id;
var other_id;
var submit = 0;
$(".submit_btn").click(function () {
if (submit == 0) {
submit++;
} else {
return;
}
var id = "{$_GET['id']}";
if (!company_id) {

@ -122,6 +122,7 @@
<div class="butnbox" >
<div class="butnlist jscheckbutn" style="margin-left: 2px">
<a class='butn' id='export'>批量导出</a>
<a class='butn' id='view_show'>查看</a>
</div>
</div>
@ -310,6 +311,36 @@
$("body").append(iframeExcel)
});
$("#view_show").click(function () {
var time = $("#year").val();
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
return $(elem).val();
}).get();
if(text.length > 20){
layer.msg("<font style='color:white'>" + '暂不支持超过20条的批量导出' + "</font>");
return;
}
if(text.length < 1){
layer.msg("<font style='color:white'>" + '请先选择要导出的公司' + "</font>");
return;
}
var url ="{:U('showCpStatementView')}"+"&company_id="+text.join(",")+"&time="+time;
layer.open({
type: 2,
title: "详情",
shadeClose: true,
shade: 0.8,
area: ['100%', '100%'],
content: url
});
});
$(".view").click(function () {
var company_id = $(this).data("company_id");
var time = $("#year").val();

@ -99,6 +99,7 @@
<!-- 表头 -->
<thead>
<tr>
<th>公司名称</th>
<th>结算时间</th>
<th>产品</th>
<th>联运流水</th>
@ -122,11 +123,12 @@
</if>
<foreach name="data" item="first_data" key="index" >
<foreach name="first_data" item="data">
<foreach name="first_data" item="datas">
<tr>
<td rowspan="{$data['row']}">{$time}年{$data["time"]}月</td>
<if condition="$data['statement_info'][0]['statement_type'] gt 0">
<td>{$data['statement_info'][0]['game_name']|default="--"}</td>
<td rowspan="{$datas['row']}">{$datas['show_company_name']}</td>
<td rowspan="{$datas['row']}">{$time}年{$datas["time"]}月</td>
<if condition="$datas['statement_info'][0]['statement_type'] gt 0">
<td>{$datas['statement_info'][0]['game_name']|default="--"}</td>
<td>--</td>
<td>--</td>
<td>--</td>
@ -134,22 +136,22 @@
<td>--</td>
<td>--</td>
<td>--</td>
<td><if condition="$data['statement_info'][0]['statement_type'] eq 2">-</if>{$data['statement_info'][0]['sum_money']|default="--"}</td>
<td><if condition="$datas['statement_info'][0]['statement_type'] eq 2">-</if>{$datas['statement_info'][0]['sum_money']|default="--"}</td>
<else/>
<td>{$data['statement_info'][0]['game_name']|default="--"}</td>
<td>{$data['statement_info'][0]['platform_money']|default="--"}</td>
<td>{$data['statement_info'][0]['aggregate_money']|default="--"}</td>
<td>{$data['statement_info'][0]['sum_amount']|default="--"}</td>
<td>{$data['statement_info'][0]['ratio']|default="--"}</td>
<td>{$data['statement_info'][0]['promote_ratio']|default="--"}</td>
<td>{$data['statement_info'][0]['fax_ratio']|default="--"}</td>
<td>{$data['statement_info'][0]['other_amount']|default="--"}</td>
<td>{$data['statement_info'][0]['sum_money']|default="--"}</td>
<td>{$datas['statement_info'][0]['game_name']|default="--"}</td>
<td>{$datas['statement_info'][0]['platform_money']|default="--"}</td>
<td>{$datas['statement_info'][0]['aggregate_money']|default="--"}</td>
<td>{$datas['statement_info'][0]['sum_amount']|default="--"}</td>
<td>{$datas['statement_info'][0]['ratio']|default="--"}</td>
<td>{$datas['statement_info'][0]['promote_ratio']|default="--"}</td>
<td>{$datas['statement_info'][0]['fax_ratio']|default="--"}</td>
<td>{$datas['statement_info'][0]['other_amount']|default="--"}</td>
<td>{$datas['statement_info'][0]['sum_money']|default="--"}</td>
</if>
</tr>
<foreach name="data['statement_info']" item="statement_info" key="skey">
<foreach name="datas['statement_info']" item="statement_info" key="skey">
<if condition="$skey gt 0">
<if condition="$statement_info['statement_type'] gt 0">
<td>{$statement_info['game_name']|default="--"}</td>
@ -180,6 +182,7 @@
<tr>
<td>小计</td>
<td>--</td>
<td>--</td>
<td>{$sum[$index]['platform_money']}</td>
<td>{$sum[$index]['aggregate_money']}</td>
<td>{$sum[$index]['sum_amount']}</td>

Loading…
Cancel
Save