@ -5,14 +5,20 @@
< meta charset = "UTF-8" >
< meta charset = "UTF-8" >
< title > 充值查询列表|----软件管理平台< / title >
< title > 充值查询列表|----软件管理平台< / title >
< link href = "http://admin.vlcms.com/Public/icon.ico" type = "image/x-icon" rel = "shortcut icon" >
< link rel = "stylesheet" type = "text/css" href = "__CSS__/base.css" media = "all" >
< 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__/common.css" media = "all" >
< link rel = "stylesheet" type = "text/css" href = "__CSS__/module.css" >
< link rel = "stylesheet" type = "text/css" href = "__CSS__/style.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 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 = "__STATIC__/jquery-2.0.3.min.js" > < / script >
< script type = "text/javascript" src = "__JS__/jquery.mousewheel.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 >
< / head >
< style >
< style >
body {
body {
@ -27,6 +33,28 @@
line-height: 40px;
line-height: 40px;
}
}
< / style >
< / style >
< style >
.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;}
< / style >
< body >
< body >
< div id = "main" class = "main" style = "min-height: 342px;width: 92.5%;" >
< div id = "main" class = "main" style = "min-height: 342px;width: 92.5%;" >
< script src = "__STATIC__/layer/layer.js" type = "text/javascript" > < / script >
< script src = "__STATIC__/layer/layer.js" type = "text/javascript" > < / script >
@ -40,7 +68,7 @@
<!-- <div class="input - list search - title - box"> -->
<!-- <div class="input - list search - title - box"> -->
<!-- <label>乙方:</label> -->
<!-- <label>乙方:</label> -->
<!-- </div> -->
<!-- </div> -->
< div class = "input-list input-list- promot e search_label_rehab" style = "width: 50%;" >
< div class = "input-list input-list- gam e search_label_rehab" style = "width: 50%;" >
提现单号:
提现单号:
< select id = "ext_field" name = "ext_field" class = "select_gallery" style = "width: 50%" >
< select id = "ext_field" name = "ext_field" class = "select_gallery" style = "width: 50%" >
< option value = "" > 提现单号< / option >
< option value = "" > 提现单号< / option >
@ -56,9 +84,9 @@
< div class = "input-list input-list-promote search_label_rehab" style = "width: 50%" >
< div class = "input-list input-list-promote search_label_rehab" style = "width: 50%" >
乙 方:
乙 方:
< select disabled= "disabled" id= "company_name" name = "company_name" class = "select_gallery" style = "width: 50%" >
< select id= "company_name" name = "company_name" class = "select_gallery" style = "width: 50%" >
< option value = "" > 乙 方< / option >
< option value = "" > 乙 方< / option >
< volist name = ":get CompanyList()" id = "vo" >
< volist name = ":get Promote CompanyList()" id = "vo" >
< option company_id = "{$vo.id}" value = "{$vo.company_name}" > {$vo.company_name}< / option >
< option company_id = "{$vo.id}" value = "{$vo.company_name}" > {$vo.company_name}< / option >
< / volist >
< / volist >
< / select >
< / select >
@ -175,7 +203,7 @@
var queryData = [];
var queryData = [];
var statement = [];
var statement = [];
var key = 0;
var key = 0;
$(".select_gallery").select2();
// $("#tax").change(function () {
// $("#tax").change(function () {
// console.log(1)
// console.log(1)
// console.log($(this).next());
// console.log($(this).next());
@ -282,6 +310,109 @@
});
});
//搜索功能
$("#company_name").change(function(){
var ext_field = $("#company_name option:selected").attr('company_id');
console.log(ext_field);
$("tbody").empty();
$("#company_name").val("");
$("#settlement_type").text("");
$("#bank_card").val("");
$("#account_openin").val("");
$("#address").val("");
$("#real_name").val("");
$("#mobile_phone").val("");
$("#bank_account_name").val("");
$("tbody").append('< tr > \n' +
' < td colspan = "16" class = "text-center" > aOh! 暂时还没有内容!< / td > \n' +
' < / tr > ');
if (ext_field)
$.ajax({
url:"{:U('Ajax/getDownstreamData')}",
type:"get",
data:{company_id:ext_field},
dataType:'json',
success:function(data){
console.log($("#company_name option:selected").attr('company-type'))
$("#company_name").val(data.data.company_name);
$("#settlement_type").text(data.data.settlement_type);
$("#bank_card").val(data.data.bank_card);
$("#account_openin").val(data.data.account_openin);
$("#address").val(data.data.address);
$("#real_name").val(data.data.real_name);
$("#mobile_phone").val(data.data.mobile_phone);
$("#settlement_type_value").val(data.data.settlement_type);
$("#bank_account_name").val(data.data.bank_account);
$("#jfCompany").val(data.data.yfpartner);
$("#jfCompany").next().text(data.data.yfpartner);
$("#jfPerson").val(data.data.yflink_man);
$("#jfTel").val(data.data.yflink_phone);
var game_ratio = data.data.game_ratio;
var str = '';
var sumAmount = 0;
var sum = 0;
for(var p in game_ratio){
for(var i in game_ratio[p]) {
queryData['pay_amount'] = game_ratio[p][i].sum_amount;
queryData['game_id'] = p;
queryData['game_name'] = game_ratio[p][i].game_name;
queryData['sum_money'] = (game_ratio[p][i].sum_amount*(game_ratio[p][i].selle_ratio/100)).toFixed(2);
queryData['statement_begin_time'] = game_ratio[p][i].begin_time;
queryData['statement_end_time'] = game_ratio[p][i].end_time;
queryData['second_ratio'] = game_ratio[p][i].selle_ratio;
queryData['fax_ratio'] = 0;
statement.push(queryData);
queryData=[];
// game_name = "<?php echo get_gamename('"+game_id+"')?> ";
sumAmount=sumAmount+parseFloat(game_ratio[p][i].sum_amount);
str+="< tr class = 'statement_data_"+key+"' > < td class = 'time_"+key+"' begin_time = '"+game_ratio[p][i].begin_time+"' end_time = '"+game_ratio[p][i].end_time+
"'>"+game_ratio[p][i].begin_time+"-"+game_ratio[p][i].end_time+"< / td > " +
"< td class = 'game_name_"+key+"' game_id = '"+p+"' > "+game_ratio[p][i].game_name+"< / td > " +
"< td class = 'pay_amount_"+key+"' > "+game_ratio[p][i].sum_amount+"< / td > " +
"< td class = 'second_ratio_"+key+"' second_ratio = '"+game_ratio[p][i].selle_ratio+"' > "+game_ratio[p][i].selle_ratio+"%< / td > " +
"< td > < input value = '0' style = 'width: 30px' class = 'tax tax_"+key+"' / > %< / td > " +
"< td id = 'sum_"+key+"' data-value = '"+(game_ratio[p][i].sum_amount*(game_ratio[p][i].selle_ratio/100)).toFixed(2)+"' > "+(game_ratio[p][i].sum_amount*(game_ratio[p][i].selle_ratio/100)).toFixed(2)+"< / td > < / tr > ";
sum = sum +parseFloat((game_ratio[p][i].sum_amount*(game_ratio[p][i].selle_ratio/100)).toFixed(2));
key++;
}
}
str+="< tr class = '' > < td > -< / td > < td > 罚款< / td > " +
"< td > < input value = '0' style = 'width: 30px' class = 'forfeit' / > < / td > " +
"< td > -< / td > " +
"< td > -< / td > " +
"< td > 0< / td > " +
"< / tr > " +
"< tr > < td > 合计< / td > " +
"< td > ---< / td > " +
"< td class = 'sumAmount' data-value = '"+sumAmount+"' > "+sumAmount+"< / td > " +
"< td > -< / td > " +
"< td > -< / td > " +
"< td class = 'sumAll' data-value = '"+sum+"' > "+sum+"< / td > " +
"< / tr > "+
"< tr > < td colspan = '3' > \n" +
"本月分成总金额(人民币大写): < / td > " +
"< td > -< / td > " +
"< td > -< / td > " +
"< td data-value = '"+sum+"' > "+number_chinese(sum)+"< / td > " +
"< / tr > ";
$("tbody").empty();
$("tbody").append(str);
eventnew();
}
})
});
function eventnew(){
function eventnew(){
$(".tax").off("blur");
$(".tax").off("blur");
$(".tax").on("blur", function() {
$(".tax").on("blur", function() {