2.28号功能提交
parent
c2bfcd39b6
commit
4425750972
@ -0,0 +1,275 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"charset="UTF-8"></script>
|
||||
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width:100%;
|
||||
}
|
||||
body {
|
||||
padding: 0px 0px 150px;
|
||||
width: 960px;
|
||||
margin: auto;
|
||||
}
|
||||
.tabcon1711 table{
|
||||
width: 480px;
|
||||
}
|
||||
table{
|
||||
|
||||
margin: auto;
|
||||
}
|
||||
.hidebox{
|
||||
display: none;
|
||||
}
|
||||
.r{
|
||||
width: 300px;
|
||||
}
|
||||
.l{
|
||||
width: 180px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;
|
||||
height: 35px;
|
||||
height: 28px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 35px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-results__option[aria-selected] {
|
||||
font-size: 12px;
|
||||
}
|
||||
.input-list, .i_list {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
<body>
|
||||
<div style="height: 20px"></div>
|
||||
<div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
|
||||
<div class="tab-content tabcon1711" >
|
||||
<div class="input-list input-list-game search_label_rehab" style="margin-left: 375px;">
|
||||
<select name="promote_company" id="promote_company" class="select_gallery">
|
||||
<option>请选择下游公司</option>
|
||||
<foreach name="company_data" item="company_data">
|
||||
<option value="{$company_data['id']}" data-company_name="{$company_data['company_name']}">{$company_data['company_name']}</option>
|
||||
</foreach>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div><span style="line-height: 20px; margin-left: 15px">结算单</span>
|
||||
<div style="margin-top: 20px;width: 100%;line-height: 20px;font-weight: 600;text-align: center;" class="time"
|
||||
data-begin="{$amount_data['statement_begin_time']}" data-end="{$amount_data['statement_end_time']}">({$amount_data['statement_begin_time']}-{$amount_data['statement_end_time']})</div>
|
||||
|
||||
<div class="data_list box_mt" style="margin-top: 10px;">
|
||||
<div >
|
||||
<table>
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>结算月份</th>
|
||||
<th>合作产品名称</th>
|
||||
<th>月累计用户充值流水</th>
|
||||
<th>月新增用户数</th>
|
||||
<th>税费费率</th>
|
||||
<th>结算金额(元)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
<tr>
|
||||
<td>{$data[0]['statement_begin_time']}-{$data[0]['statement_end_time']}</td>
|
||||
<td>{$data[0]['game_name']}</td>
|
||||
<td rowspan="{$row}" class="pay_amount">{$amount_data['pay_amount']}</td>
|
||||
<td rowspan="{$row}" class="user_newcount">{$amount_data['user_newcount']}</td>
|
||||
<td rowspan="{$row}" class="parent_fax_ratio"><input class="fax_ratio" type="text" class="txt" name="fax_ratio" value="0" placeholder="" style="width: 25px">%</td>
|
||||
<td rowspan="{$row}" class="sum_money">{$amount_data['sum_money']}</td>
|
||||
</tr>
|
||||
<foreach name="data" item="it" key="key">
|
||||
|
||||
<if condition="$key neq 0">
|
||||
<tr>
|
||||
<td>{$it['statement_begin_time']}-{$it['statement_end_time']}</td>
|
||||
<td>{$it['game_name']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
|
||||
</foreach>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tab-content tabcon1711">
|
||||
<div class="form-item cf">
|
||||
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.parent.reload();" style="float: right">
|
||||
返回
|
||||
</a>
|
||||
<button class="submit_btn" id="submit_btn" style="float: right">
|
||||
保存
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
|
||||
$(".select_gallery").select2();
|
||||
|
||||
$(function () {
|
||||
|
||||
var sum_amount = parseFloat($(".sum_money").text());
|
||||
var row = 0;
|
||||
var amount_datas;
|
||||
var other_list;
|
||||
var list = '{$js_data}';
|
||||
var company_id;
|
||||
var other_id;
|
||||
|
||||
$(".submit_btn").click(function () {
|
||||
|
||||
var id = "{$_GET['id']}";
|
||||
|
||||
if (!company_id) {
|
||||
layer.msg("请选择汇总公司");
|
||||
return;
|
||||
}
|
||||
|
||||
var fax_ratio = $(".fax_ratio").val();
|
||||
layer.load(2);
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: "{:U('saveCompanyData')}",
|
||||
data:{list:list,other_list:other_list,company_id:company_id,amount_data:amount_datas,fax_ratio:fax_ratio,id:id,other_id:other_id},
|
||||
success: function(data) {
|
||||
layer.msg(data.msg);
|
||||
if(data.status == 1) {
|
||||
setTimeout(function(){
|
||||
layer.close(2);
|
||||
window.parent.reload();
|
||||
},3000);
|
||||
}
|
||||
layer.closeAll("loading");
|
||||
},
|
||||
error:function(){
|
||||
layer.closeAll("loading");
|
||||
layer.alert("网络错误或超时");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$("#promote_company").change(function () {
|
||||
var begin = $(".time").data("begin");
|
||||
var end = $(".time").data("end");
|
||||
|
||||
company_id = $(this).val();
|
||||
|
||||
if (company_id == "请选择下游公司") {
|
||||
company_id = '';
|
||||
}
|
||||
|
||||
var id = "{$_GET['id']}";
|
||||
var amount_data = '{$js_amount_data}';
|
||||
|
||||
$(".other_append").remove();
|
||||
$(".pay_amount").attr("rowspan",parseInt($(".pay_amount").attr('rowspan'))-row);
|
||||
$(".user_newcount").attr("rowspan",parseInt($(".user_newcount").attr('rowspan'))-row);
|
||||
$(".parent_fax_ratio").attr("rowspan",parseInt($(".parent_fax_ratio").attr('rowspan'))-row);
|
||||
$(".sum_money").attr("rowspan",parseInt($(".sum_money").attr('rowspan'))-row);
|
||||
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: "{:U('checkCompanyData')}",
|
||||
data:{begin_time:begin,end_time:end,company_id:company_id,statement_id:id,amount_data:amount_data},
|
||||
success: function(data) {
|
||||
if (data.status==1) {
|
||||
for (var key in data.list) {
|
||||
|
||||
var tr = "<tr class='other_append'>" +
|
||||
"<td>"+data.list[key]['statement_begin_time']+"-"+data.list[key]['statement_end_time']+"</td>" +
|
||||
"<td>"+data.list[key]['game_name']+"</td>" +
|
||||
"</tr>";
|
||||
|
||||
$("tbody").append(tr);
|
||||
|
||||
}
|
||||
|
||||
row = data.row;
|
||||
|
||||
$(".pay_amount").text(data.amount_data['pay_amount']);
|
||||
$(".user_newcount").text(data.amount_data['user_newcount']);
|
||||
// $(".fax_ratio").text(data.amount_data['pay_amount']);
|
||||
$(".sum_money").text(data.amount_data['sum_money']);
|
||||
|
||||
$(".pay_amount").attr("rowspan",parseInt($(".pay_amount").attr('rowspan'))+row);
|
||||
$(".user_newcount").attr("rowspan",parseInt($(".user_newcount").attr('rowspan'))+row);
|
||||
$(".parent_fax_ratio").attr("rowspan",parseInt($(".parent_fax_ratio").attr('rowspan'))+row);
|
||||
$(".sum_money").attr("rowspan",parseInt($(".sum_money").attr('rowspan'))+row);
|
||||
sum_amount = data.amount_data['sum_money'];
|
||||
amount_datas = JSON.stringify(data.amount_data);
|
||||
other_list = JSON.stringify(data.list);
|
||||
other_id = data.other_id;
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
layer.alert("网络错误或超时");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(".fax_ratio").blur(function() {
|
||||
|
||||
var fax_ratio = parseFloat($(this).val());
|
||||
var pay_amount = parseFloat($(".pay_amount").text());
|
||||
var sum_money = 0;
|
||||
|
||||
var fax_amount = sum_amount * (fax_ratio/100);
|
||||
|
||||
sum_money = sum_amount-fax_amount;
|
||||
|
||||
$(".sum_money").text(sum_money.toFixed(2));
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1,280 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"charset="UTF-8"></script>
|
||||
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
||||
<script src="__STATIC__/table2excel.js"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width:100%;
|
||||
}
|
||||
body {
|
||||
padding: 0px 10px 150px 10px;
|
||||
/* width: 960px; */
|
||||
margin: auto;
|
||||
}
|
||||
/* .tabcon1711 table{
|
||||
width: 480px;
|
||||
} */
|
||||
table{
|
||||
|
||||
margin: auto;
|
||||
}
|
||||
tr{
|
||||
border-bottom: dotted 1px #c7c7c7;
|
||||
}
|
||||
.hidebox{
|
||||
display: none;
|
||||
}
|
||||
.r{
|
||||
width: 300px;
|
||||
}
|
||||
.l{
|
||||
width: 180px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;
|
||||
height: 35px;
|
||||
height: 28px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 35px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-results__option[aria-selected] {
|
||||
font-size: 12px;
|
||||
}
|
||||
.input-list, .i_list {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
#statementShow td{
|
||||
line-height: 1.5;
|
||||
padding: 8px 0;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<!-- <div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
|
||||
海南万盟天下科技有限公司
|
||||
</div> -->
|
||||
|
||||
<div class="data_list box_mt" style="margin-top: 10px;">
|
||||
<div class="">
|
||||
<table id="exporttable">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>结算时间</th>
|
||||
<th>产品</th>
|
||||
<th>联运流水</th>
|
||||
|
||||
<th>聚合流水</th>
|
||||
<th>流水合计</th>
|
||||
|
||||
<th>结算比例</th>
|
||||
<th>渠道费率</th>
|
||||
<th>税费费率</th>
|
||||
<th>其他</th>
|
||||
<th>结算金额</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="statementShow">
|
||||
<if condition = "empty($data)">
|
||||
<tr>
|
||||
<td colspan="50" class="text-center">aOh! 暂时还没有内容!</td>
|
||||
</tr>
|
||||
</if>
|
||||
|
||||
<foreach name="data" item="first_data" key="index" >
|
||||
<foreach name="first_data" item="data">
|
||||
<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>--</td>
|
||||
<td>--</td>
|
||||
<td>--</td>
|
||||
<td>--</td>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
</if>
|
||||
|
||||
</tr>
|
||||
<foreach name="data['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>
|
||||
<td>--</td>
|
||||
<td>--</td>
|
||||
<td>--</td>
|
||||
<td>--</td>
|
||||
<td>--</td>
|
||||
<td>--</td>
|
||||
<td>--</td>
|
||||
<td><if condition="$statement_info['statement_type'] eq 2">-</if>{$statement_info['sum_money']|default="--"}</td>
|
||||
<else/>
|
||||
<tr>
|
||||
<td>{$statement_info['game_name']|default="--"}</td>
|
||||
<td>{$statement_info['platform_money']|default="--"}</td>
|
||||
<td>{$statement_info['aggregate_money']|default="--"}</td>
|
||||
<td>{$statement_info['sum_amount']|default="--"}</td>
|
||||
<td>{$statement_info['ratio']|default="--"}</td>
|
||||
<td>{$statement_info['promote_ratio']|default="--"}</td>
|
||||
<td>{$statement_info['fax_ratio']|default="--"}</td>
|
||||
<td>{$statement_info['other_amount']|default="--"}</td>
|
||||
<td>{$statement_info['sum_money']|default="--"}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</if>
|
||||
</foreach>
|
||||
</foreach>
|
||||
<tr>
|
||||
<td>小计</td>
|
||||
<td>--</td>
|
||||
<td>{$sum[$index]['platform_money']}</td>
|
||||
<td>{$sum[$index]['aggregate_money']}</td>
|
||||
<td>{$sum[$index]['sum_amount']}</td>
|
||||
<td>{$sum[$index]['ratio']}</td>
|
||||
<td>{$sum[$index]['promote_ratio']}</td>
|
||||
<td>{$sum[$index]['fax_ratio']}</td>
|
||||
<td>{$sum[$index]['other_amount']}</td>
|
||||
<td>{$sum[$index]['sum_money']}</td>
|
||||
</tr>
|
||||
</foreach>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
<if condition="$is_export">
|
||||
$(function(){
|
||||
$("#exporttable").table2excel({
|
||||
filename: "{$title}.xls", // do include extension
|
||||
preserveColors: false // set to true if you want background colors and font colors preserved
|
||||
});
|
||||
});
|
||||
</if>
|
||||
$(".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("<font style='color:white'>" + data.info + "</font>");
|
||||
setTimeout(function(){
|
||||
window.location.reload();
|
||||
},1500);
|
||||
}else{
|
||||
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(".refund").on("blur",function () {
|
||||
caculate_sum_money(this);
|
||||
});
|
||||
|
||||
$(".ratio").on("blur",function () {
|
||||
caculate_sum_money(this);
|
||||
});
|
||||
|
||||
$(".increment_ratio").on("blur",function () {
|
||||
caculate_sum_money(this);
|
||||
});
|
||||
|
||||
function caculate_sum_money(_this) {
|
||||
|
||||
var pay_money = $(_this).parent().parent().find(".pay_amount").text();
|
||||
|
||||
var ratio = $(_this).parent().parent().find(".ratio").val();
|
||||
|
||||
if (!ratio || ratio < 0) {
|
||||
ratio = 0;
|
||||
$(_this).parent().parent().find(".ratio").val(ratio);
|
||||
} else if (ratio > 100) {
|
||||
ratio = 100;
|
||||
$(_this).parent().parent().find(".ratio").val(ratio);
|
||||
}
|
||||
|
||||
var refund = $(_this).parent().parent().find(".refund").val();
|
||||
if (!refund || refund < 0) {
|
||||
refund = 0;
|
||||
$(_this).parent().parent().find(".refund").val(refund);
|
||||
}
|
||||
|
||||
var increment_ratio = $(_this).parent().parent().find(".increment_ratio").val();
|
||||
if (!increment_ratio || increment_ratio < 0) {
|
||||
increment_ratio = 0;
|
||||
$(_this).parent().parent().find(".increment_ratio").val(increment_ratio);
|
||||
} else if(increment_ratio > 100) {
|
||||
increment_ratio = 100;
|
||||
$(_this).parent().parent().find(".increment_ratio").val(increment_ratio);
|
||||
}
|
||||
|
||||
pay_money = parseFloat(pay_money) - parseFloat(refund);
|
||||
|
||||
var value = parseFloat(pay_money)*(parseFloat(ratio)/100) + parseFloat(pay_money)*(parseFloat(increment_ratio)/100);
|
||||
|
||||
$(_this).parent().parent().find(".sum_money_span").text(value.toFixed(2));
|
||||
$(_this).parent().parent().find(".sum_money").val(value.toFixed(2));
|
||||
|
||||
}
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1,396 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"charset="UTF-8"></script>
|
||||
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width:100%;
|
||||
}
|
||||
body {
|
||||
padding: 0px 0px 150px;
|
||||
width: 960px;
|
||||
margin: auto;
|
||||
}
|
||||
.tabcon1711 table{
|
||||
width: 480px;
|
||||
}
|
||||
table{
|
||||
|
||||
margin: auto;
|
||||
}
|
||||
.hidebox{
|
||||
display: none;
|
||||
}
|
||||
.r{
|
||||
width: 300px;
|
||||
}
|
||||
.l{
|
||||
width: 180px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;
|
||||
height: 35px;
|
||||
height: 28px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 35px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.select2-results__option[aria-selected] {
|
||||
font-size: 12px;
|
||||
}
|
||||
.input-list, .i_list {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
<body>
|
||||
<div style="height: 20px"></div>
|
||||
<div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
|
||||
<div class="tab-content tabcon1711" >
|
||||
<div class="input-list input-list-game search_label_rehab" style="margin-left: 375px;">
|
||||
《{$company_name}》结算单
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
|
||||
<div class="tab-content tabcon1711">
|
||||
<div class="input-list input-list-game search_label_rehab" style="margin-left: 375px;">
|
||||
<div style="margin-top: -20px;width: 100%;line-height: 20px;font-weight: 600;text-align: center;margin-bottom: 10px;margin-left: 30px;" class="time">({$statement_begin_time}-{$statement_end_time})</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="data_list box_mt" style="margin-top: 10px;">
|
||||
<div >
|
||||
<table>
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>结算月份</th>
|
||||
<th>合作产品名称</th>
|
||||
<th>月累计用户充值流水</th>
|
||||
<th>月新增用户数</th>
|
||||
<th>税费费率</th>
|
||||
<th>结算金额(元)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
<tr>
|
||||
<td>{$list[0]['statement_begin_time']}-{$list[0]['statement_end_time']}</td>
|
||||
<td>{$list[0]['game_name']}</td>
|
||||
<td rowspan="{$row}" class="pay_amount">{$amount_data['pay_amount']}</td>
|
||||
<td rowspan="{$row}" class="user_newcount">{$amount_data['user_newcount']}</td>
|
||||
<td rowspan="{$row}" class="parent_fax_ratio">{$amount_data['fax_ratio']}%</td>
|
||||
<td rowspan="{$row}" class="sum_money">{$amount_data['sum_money']}</td>
|
||||
</tr>
|
||||
<foreach name="list" item="it" key="key">
|
||||
|
||||
<if condition="$key neq 0">
|
||||
<tr>
|
||||
<td>{$it['statement_begin_time']}-{$it['statement_end_time']}</td>
|
||||
<td>{$it['game_name']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
|
||||
</foreach>
|
||||
<tr>
|
||||
<td>支付金额</td>
|
||||
<td colspan="5">{:convertAmountToCn($amount_data['sum_money'])}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>备注</td>
|
||||
<td colspan="5">结算金额按每月双方实际核定结算指标为准</td>
|
||||
</tr>
|
||||
<if condition="$first_party_info['invoice_item']">
|
||||
<tr>
|
||||
<td>甲方</td>
|
||||
<td colspan="2">{$first_party_info['partner']}</td>
|
||||
<td>乙方</td>
|
||||
<td colspan="2">{$second_party_info['partner']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>联系人</td>
|
||||
<td colspan="2">{$first_party_info['link_man']}</td>
|
||||
<td>联系人</td>
|
||||
<td colspan="2">{$second_party_info['link_man']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>联系电话</td>
|
||||
<td colspan="2">{$first_party_info['link_phone']}</td>
|
||||
<td>联系电话</td>
|
||||
<td colspan="2">{$second_party_info['phone']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>开票内容</td>
|
||||
<td colspan="2">{$first_party_info['invoice_item']}</td>
|
||||
<td>邮寄地址</td>
|
||||
<td colspan="2">{$second_party_info['address']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>发票类型</td>
|
||||
<td colspan="2">{$first_party_info['invoice_type']}</td>
|
||||
<td>请汇入此账号</td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>邮寄地址</td>
|
||||
<td colspan="2">{$first_party_info['address']}</td>
|
||||
<td>户名</td>
|
||||
<if condition="$second_party_info['is_payment'] eq 1">
|
||||
<td colspan="2">{$second_party_info['ali_user']}</td>
|
||||
<else/>
|
||||
<td colspan="2">{$second_party_info['bank_address']}</td>
|
||||
</if>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"></td>
|
||||
<td>账号</td>
|
||||
<if condition="$second_party_info['is_payment'] eq 1">
|
||||
<td colspan="2">{$second_party_info['ali_account']}</td>
|
||||
<else/>
|
||||
<td colspan="2">{$second_party_info['bank_card']}</td>
|
||||
</if>
|
||||
</tr>
|
||||
|
||||
<if condition="$second_party_info['is_payment'] neq 1">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"></td>
|
||||
<td>开户行</td>
|
||||
<td colspan="2">{$second_party_info['bank_name']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<else/>
|
||||
<tr>
|
||||
<td>甲方</td>
|
||||
<td colspan="2">{$first_party_info['partner']}</td>
|
||||
<td>乙方</td>
|
||||
<td colspan="2">{$second_party_info['partner']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>联系人</td>
|
||||
<td colspan="2">{$first_party_info['link_man']}</td>
|
||||
<td>联系人</td>
|
||||
<td colspan="2">{$second_party_info['link_man']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>联系电话</td>
|
||||
<td colspan="2">{$first_party_info['link_phone']}</td>
|
||||
<td>联系电话</td>
|
||||
<td colspan="2">{$second_party_info['phone']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>邮寄地址</td>
|
||||
<td colspan="2">{$first_party_info['address']}</td>
|
||||
<td>开票内容</td>
|
||||
<td colspan="2">{$second_party_info['invoice_item']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>请汇入此账号</td>
|
||||
<td colspan="2"></td>
|
||||
<td>发票类型</td>
|
||||
<td colspan="2">{$second_party_info['invoice_type']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>户名</td>
|
||||
<if condition="$second_party_info['is_payment'] eq 1">
|
||||
<td colspan="2">{$first_party_info['ali_user']}</td>
|
||||
<else/>
|
||||
<td colspan="2">{$first_party_info['bank_address']}</td>
|
||||
</if>
|
||||
<td>邮寄地址</td>
|
||||
<td colspan="2">{$second_party_info['address']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>账号</td>
|
||||
<if condition="$second_party_info['is_payment'] eq 1">
|
||||
<td colspan="2">{$first_party_info['ali_account']}</td>
|
||||
<else/>
|
||||
<td colspan="2">{$first_party_info['bank_card']}</td>
|
||||
</if>
|
||||
<td></td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
<if condition="$second_party_info['is_payment'] neq 1">
|
||||
<tr>
|
||||
<td>开户行</td>
|
||||
<td colspan="2">{$first_party_info['bank_name']}</td>
|
||||
<td></td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
</if>
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
|
||||
$(".select_gallery").select2();
|
||||
|
||||
$(function () {
|
||||
|
||||
var sum_amount = parseFloat($(".sum_money").text());
|
||||
var row = 0;
|
||||
var amount_datas;
|
||||
var other_list;
|
||||
var list = '{$js_data}';
|
||||
var company_id;
|
||||
var other_id;
|
||||
|
||||
$(".submit_btn").click(function () {
|
||||
|
||||
var id = "{$_GET['id']}";
|
||||
|
||||
if (!company_id) {
|
||||
layer.msg("请选择汇总公司");
|
||||
return;
|
||||
}
|
||||
|
||||
var fax_ratio = $(".fax_ratio").val();
|
||||
layer.load(2);
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: "{:U('saveCompanyData')}",
|
||||
data:{list:list,other_list:other_list,company_id:company_id,amount_data:amount_datas,fax_ratio:fax_ratio,id:id,other_id:other_id},
|
||||
success: function(data) {
|
||||
layer.msg(data.msg);
|
||||
if(data.status == 1) {
|
||||
setTimeout(function(){
|
||||
layer.close(2);
|
||||
window.parent.reload();
|
||||
},3000);
|
||||
}
|
||||
layer.closeAll("loading");
|
||||
},
|
||||
error:function(){
|
||||
layer.closeAll("loading");
|
||||
layer.alert("网络错误或超时");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$("#promote_company").change(function () {
|
||||
var begin = $(".time").data("begin");
|
||||
var end = $(".time").data("end");
|
||||
|
||||
company_id = $(this).val();
|
||||
|
||||
if (company_id == "请选择下游公司") {
|
||||
company_id = '';
|
||||
}
|
||||
|
||||
var id = "{$_GET['id']}";
|
||||
var amount_data = '{$js_amount_data}';
|
||||
|
||||
$(".other_append").remove();
|
||||
$(".pay_amount").attr("rowspan",parseInt($(".pay_amount").attr('rowspan'))-row);
|
||||
$(".user_newcount").attr("rowspan",parseInt($(".user_newcount").attr('rowspan'))-row);
|
||||
$(".parent_fax_ratio").attr("rowspan",parseInt($(".parent_fax_ratio").attr('rowspan'))-row);
|
||||
$(".sum_money").attr("rowspan",parseInt($(".sum_money").attr('rowspan'))-row);
|
||||
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: "{:U('checkCompanyData')}",
|
||||
data:{begin_time:begin,end_time:end,company_id:company_id,statement_id:id,amount_data:amount_data},
|
||||
success: function(data) {
|
||||
if (data.status==1) {
|
||||
for (var key in data.list) {
|
||||
|
||||
var tr = "<tr class='other_append'>" +
|
||||
"<td>"+data.list[key]['statement_begin_time']+"-"+data.list[key]['statement_end_time']+"</td>" +
|
||||
"<td>"+data.list[key]['game_name']+"</td>" +
|
||||
"</tr>";
|
||||
|
||||
$("tbody").append(tr);
|
||||
|
||||
}
|
||||
|
||||
row = data.row;
|
||||
|
||||
$(".pay_amount").text(data.amount_data['pay_amount']);
|
||||
$(".user_newcount").text(data.amount_data['user_newcount']);
|
||||
// $(".fax_ratio").text(data.amount_data['pay_amount']);
|
||||
$(".sum_money").text(data.amount_data['sum_money']);
|
||||
|
||||
$(".pay_amount").attr("rowspan",parseInt($(".pay_amount").attr('rowspan'))+row);
|
||||
$(".user_newcount").attr("rowspan",parseInt($(".user_newcount").attr('rowspan'))+row);
|
||||
$(".parent_fax_ratio").attr("rowspan",parseInt($(".parent_fax_ratio").attr('rowspan'))+row);
|
||||
$(".sum_money").attr("rowspan",parseInt($(".sum_money").attr('rowspan'))+row);
|
||||
sum_amount = data.amount_data['sum_money'];
|
||||
amount_datas = JSON.stringify(data.amount_data);
|
||||
other_list = JSON.stringify(data.list);
|
||||
other_id = data.other_id;
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
layer.alert("网络错误或超时");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(".fax_ratio").blur(function() {
|
||||
|
||||
var fax_ratio = parseFloat($(this).val());
|
||||
var pay_amount = parseFloat($(".pay_amount").text());
|
||||
var sum_money = 0;
|
||||
|
||||
var fax_amount = sum_amount * (fax_ratio/100);
|
||||
|
||||
sum_money = sum_amount-fax_amount;
|
||||
|
||||
$(".sum_money").text(sum_money.toFixed(2));
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</html>
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue