|
|
|
@ -37,6 +37,9 @@
|
|
|
|
|
.butnbox .butnlist .butn {display:inline-block;width:120px;height:28px;line-height:28px;text-align:center;color:#FFF;background:#3C95C8;border-radius:3px;}
|
|
|
|
|
.butnbox .butnlist .butn.last {background:#009900;}
|
|
|
|
|
.butnbox .butnlist .butn~.butn {margin-left:20px;}
|
|
|
|
|
.butnbox a{
|
|
|
|
|
cursor:pointer
|
|
|
|
|
}
|
|
|
|
|
.data_list table tbody tr a.disabled,.data_list table tbody tr a.disabled:hover {color:#999;cursor:default;}
|
|
|
|
|
.layui-layer-title {
|
|
|
|
|
text-align: center;
|
|
|
|
@ -45,64 +48,70 @@
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
}
|
|
|
|
|
.data_list table td{
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<div class="cf top_nav_list">
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
|
<h3 class="page_title">推广游戏分成管理</h3>
|
|
|
|
|
<div class="fr">
|
|
|
|
|
<a class="tabchose" href="{:U('index')}">生效列表</a>
|
|
|
|
|
<a href="{:U('lists')}">审核列表</a>
|
|
|
|
|
</div>
|
|
|
|
|
<h3 class="page_title">公司绑定生效列表</h3>
|
|
|
|
|
<p class="description_text"></p>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div class="fl button_list">
|
|
|
|
|
<div class="tools">
|
|
|
|
|
<a class=" " href="{:U('add')}"><span class="button_icon button_icon1"></span>新增推广游戏分成</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
<!-- 高级搜索 -->
|
|
|
|
|
<div class="jssearch fl cf search_list" style="margin-bottom:12px">
|
|
|
|
|
<div class="input-list search-title-box">
|
|
|
|
|
<label>搜索:</label>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
|
|
|
<select id="company_type" name="company_type" class="select_gallery" >
|
|
|
|
|
<option value="">请选择公司类型</option>
|
|
|
|
|
<volist name="CompanyType" id="vo">
|
|
|
|
|
<option value="{$key}" <if condition="isset($_GET['company_type']) && $key eq I('company_type')">selected</if> >{$vo}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
|
|
|
<select id="company_id" name="company_id" class="select_gallery" >
|
|
|
|
|
<option value="">请选择公司</option>
|
|
|
|
|
<volist name="companyList" id="vo">
|
|
|
|
|
<option value="{$vo.id}" <if condition="$vo.id eq I('company_id')">selected</if> >{$vo.company_name}</option>
|
|
|
|
|
<option value="">请先选择公司类型</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
|
<select id="settlement_type" name="settlement_type" class="select_gallery" >
|
|
|
|
|
<option value="">请选择结算周期</option>
|
|
|
|
|
<volist name="SettlementType" id="vo">
|
|
|
|
|
<option value="{$key}" <if condition="isset($_GET['settlement_type']) && $key eq I('settlement_type')">selected</if> >{$vo}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
|
<select id="relation_game_id" name="relation_game_id" class="select_gallery" >
|
|
|
|
|
<option value="">现包名</option>
|
|
|
|
|
<volist name="gameList" id="vo">
|
|
|
|
|
<option value="{$vo.relation_game_id}" <if condition="$vo.relation_game_id eq I('relation_game_id')">selected</if> >{$vo.relation_game_name}</option>
|
|
|
|
|
<select id="invoice_type" name="invoice_type" class="select_gallery" >
|
|
|
|
|
<option value="">请选择开票类型</option>
|
|
|
|
|
<volist name="InvoiceType" id="vo">
|
|
|
|
|
<option value="{$key}" <if condition="isset($_GET['invoice_type']) && $key eq I('invoice_type')">selected</if> >{$vo}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
|
<select id="status" name="status" class="select_gallery" >
|
|
|
|
|
<option value="">请选择审核状态</option>
|
|
|
|
|
<volist name="status" id="vo">
|
|
|
|
|
<option value="{$key}" <if condition="isset($_GET['status']) && $key eq I('status')">selected</if> >{$vo}</option>
|
|
|
|
|
<select id="is_payment" name="is_payment" class="select_gallery" >
|
|
|
|
|
<option value="">请选择是否有打款</option>
|
|
|
|
|
<volist name="IsPayment" id="vo">
|
|
|
|
|
<option value="{$key}" <if condition="isset($_GET['is_payment']) && $key eq I('is_payment')">selected</if> >{$vo}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('index','&row='.I('row'),false)}">搜索</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="butnbox" style="margin-bottom: 10px;">
|
|
|
|
|
<div class="butnlist jscheckbutn" style="margin-left: 2px">
|
|
|
|
|
<foreach name="menubtn" item="vo" >
|
|
|
|
|
{$vo}
|
|
|
|
|
</foreach>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 数据列表 -->
|
|
|
|
|
<div class="data_list">
|
|
|
|
|
<div class="">
|
|
|
|
@ -110,23 +119,15 @@
|
|
|
|
|
<!-- 表头 -->
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
|
|
|
|
<input class="check-all" type="checkbox">
|
|
|
|
|
</th>
|
|
|
|
|
<th>公司名称</th>
|
|
|
|
|
<th>内外团</th>
|
|
|
|
|
<th>甲方公司</th>
|
|
|
|
|
<th>甲方公司类型</th>
|
|
|
|
|
<th>乙方公司</th>
|
|
|
|
|
<th>乙方公司类型</th>
|
|
|
|
|
<th>结算周期</th>
|
|
|
|
|
<th>游戏类型</th>
|
|
|
|
|
<th>原游戏名称</th>
|
|
|
|
|
<th>现游戏名称</th>
|
|
|
|
|
<th>生效时间</th>
|
|
|
|
|
<th>原比例</th>
|
|
|
|
|
<th>申请比例</th>
|
|
|
|
|
<th>创建记录</th>
|
|
|
|
|
<th>市场部审批</th>
|
|
|
|
|
<th>管理员审批</th>
|
|
|
|
|
<th>备注</th>
|
|
|
|
|
<th>操作</th>
|
|
|
|
|
<th>开票类型</th>
|
|
|
|
|
<th>开票内容</th>
|
|
|
|
|
<th>打款流程</th>
|
|
|
|
|
<th>收款方</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
|
@ -139,65 +140,15 @@
|
|
|
|
|
<else/>
|
|
|
|
|
<volist name="data" id="data">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<input class="ids" type="checkbox" data-status="{$data.status}" value="{$data['id']}" name="ids[]" >
|
|
|
|
|
</td>
|
|
|
|
|
<td>{$data.company_name}</td>
|
|
|
|
|
<td>{$data.company_belong}</td>
|
|
|
|
|
<td>{$data.first_company_name}</td>
|
|
|
|
|
<td>{$data.first_company_type}</td>
|
|
|
|
|
<td>{$data.second_company_name}</td>
|
|
|
|
|
<td>{$data.second_company_type}</td>
|
|
|
|
|
<td>{$data.settlement_type}</td>
|
|
|
|
|
<td>{$data.game_type_name}</td>
|
|
|
|
|
<td>{$data.original_package_name}</td>
|
|
|
|
|
<td>{$data.relation_game_name}</td>
|
|
|
|
|
<td>{$data.valid}</td>
|
|
|
|
|
<td style="line-height: 16px;text-indent: 0;">
|
|
|
|
|
<div style="text-align: left;width: 90%;margin-left: 5%;margin-top: 10px;margin-bottom: 10px;">
|
|
|
|
|
{$data.last_turnover_ratio_str}
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="line-height: 16px;text-indent: 0;">
|
|
|
|
|
<div style="text-align: left;width: 90%;margin-left: 5%;margin-top: 10px;margin-bottom: 10px;">
|
|
|
|
|
{$data.turnover_ratio_str}
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<div style="line-height: 2;">
|
|
|
|
|
{$data.create}
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
<if condition="$data.status eq -1 ">
|
|
|
|
|
<div style="line-height: 2;color: red;">
|
|
|
|
|
{$data.market}
|
|
|
|
|
</div>
|
|
|
|
|
<else />
|
|
|
|
|
<div style="line-height: 2;">
|
|
|
|
|
{$data.market}
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<if condition="$data.status eq -2 ">
|
|
|
|
|
<div style="line-height: 2;color: red;">
|
|
|
|
|
{$data.admin}
|
|
|
|
|
</div>
|
|
|
|
|
<else />
|
|
|
|
|
<div style="line-height: 2;">
|
|
|
|
|
{$data.admin}
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
{$data.remark}
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<foreach name="data.oplist" item="vo" >
|
|
|
|
|
{$vo}
|
|
|
|
|
</foreach>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<td>{$data.invoice_type}</td>
|
|
|
|
|
<td>{$data.invoice_content}</td>
|
|
|
|
|
<td>{$data.is_payment}</td>
|
|
|
|
|
<td>{$data.collection}</td>
|
|
|
|
|
</volist>
|
|
|
|
|
</if>
|
|
|
|
|
</tbody>
|
|
|
|
@ -213,20 +164,7 @@
|
|
|
|
|
</if>
|
|
|
|
|
{$_page|default=''}
|
|
|
|
|
</div>
|
|
|
|
|
<!--弹出层-->
|
|
|
|
|
<div class="promote-layer mb20">
|
|
|
|
|
<form id="ajaxForm" action="{:U('set_withdraw')}" method="post">
|
|
|
|
|
<ol class="promote-con">
|
|
|
|
|
<li class="promote-con-con " id="deny">
|
|
|
|
|
<div class="mb20">
|
|
|
|
|
<span class="promote-name">备注:</span>
|
|
|
|
|
<textarea class="textarea-style" name="remark" id="remark"></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
<a class="ajax-post pack" style="cursor: pointer;" target-form="ids" url="{:U('setStatus',array('status'=>-1))}"><div class="promote-btn">拒绝</div></a>
|
|
|
|
|
</li>
|
|
|
|
|
</ol>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
|
|
<block name="script">
|
|
|
|
@ -260,98 +198,48 @@ $(function(){
|
|
|
|
|
$("#search").click();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$(".editRatio").on("click",function(){
|
|
|
|
|
var id = $(this).data("id");
|
|
|
|
|
var url = "{:U('editRatio')}"+"&id="+id;
|
|
|
|
|
window.location.href = url;
|
|
|
|
|
})
|
|
|
|
|
$(".delRatio").on("click",function(){
|
|
|
|
|
var id = $(this).data("id");
|
|
|
|
|
var url = "{:U('delRatio')}"+"&id="+id;
|
|
|
|
|
layer.confirm('删除后将无法恢复,请慎重选择', {
|
|
|
|
|
closeBtn:0,
|
|
|
|
|
title:false,
|
|
|
|
|
btn: ['取消','删除'] //按钮
|
|
|
|
|
}, function(index){
|
|
|
|
|
layer.close(index);
|
|
|
|
|
}, function(){
|
|
|
|
|
$.get(url,function(data){
|
|
|
|
|
if(data.code == 1){
|
|
|
|
|
layer.msg('<span style="color:white">'+data.msg+'<span>',{time: 1000},function(){
|
|
|
|
|
window.location.reload();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
layer.msg(data.msg,{icon: 2});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
$("#marketAgree,#marketRefuse,#adminAgree").on("click",function(){
|
|
|
|
|
var id = $(this).attr("id");
|
|
|
|
|
if(id == "marketAgree"){
|
|
|
|
|
var opname = "市场部审批通过";
|
|
|
|
|
var opurl = "{:U('marketAgree')}";
|
|
|
|
|
var opst ="[未进行审批]";
|
|
|
|
|
var status = 0;
|
|
|
|
|
}else if(id=="marketRefuse"){
|
|
|
|
|
var opname = "市场部审批拒绝";
|
|
|
|
|
var opurl = "{:U('marketRefuse')}";
|
|
|
|
|
var opst ="[未进行审批]";
|
|
|
|
|
var status = 0;
|
|
|
|
|
}else if(id=="adminAgree"){
|
|
|
|
|
var opname = "管理员审批通过";
|
|
|
|
|
var opurl = "{:U('adminAgree')}";
|
|
|
|
|
var opst ="[市场部审批通过]";
|
|
|
|
|
var status = 1;
|
|
|
|
|
}else if(id=="adminRefuse"){
|
|
|
|
|
var opname = "管理员审批拒绝";
|
|
|
|
|
var opurl = "{:U('adminRefuse')}";
|
|
|
|
|
var opst ="[市场部审批通过]";
|
|
|
|
|
var status = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var flag = false;
|
|
|
|
|
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
|
|
|
|
|
if($(elem).data("status") != status){
|
|
|
|
|
flag = true;
|
|
|
|
|
}else{
|
|
|
|
|
return $(elem).val();
|
|
|
|
|
}
|
|
|
|
|
}).get().join(",");
|
|
|
|
|
if(text == ''){
|
|
|
|
|
layer.msg("<font style='color:white'>" + '无需要'+opname+'的申请,仅'+opst+'状态可以进行'+opname+"</font>");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(flag){
|
|
|
|
|
layer.confirm(opname+"仅会对"+opst+"的申请进行处理,选择中包含其他的状态的申请将被忽略,点击取消停止操作",{title:false}, function(index){
|
|
|
|
|
_doAgreeApply();
|
|
|
|
|
layer.close(index);
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
_doAgreeApply();
|
|
|
|
|
}
|
|
|
|
|
function _doAgreeApply(){
|
|
|
|
|
//执行
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: opurl,
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
async: false,
|
|
|
|
|
data: {ids:text},
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(data.status==1){
|
|
|
|
|
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
window.location.reload();
|
|
|
|
|
},1500);
|
|
|
|
|
}
|
|
|
|
|
var company_id = "{$_GET['company_id']??0}";
|
|
|
|
|
|
|
|
|
|
$("#company_type").on("change",function(){
|
|
|
|
|
var type = $(this).find("option:selected").val();
|
|
|
|
|
var typename=setTypeName(type);
|
|
|
|
|
var url = "{:U('getCompanyList')}"+"&type="+type;
|
|
|
|
|
$.get(url,function(data){
|
|
|
|
|
var company = data.info;
|
|
|
|
|
var companystr = '<option value="">'+typename+'</option>';
|
|
|
|
|
for (var i in company) {
|
|
|
|
|
if(company[i].id == company_id){
|
|
|
|
|
companystr += "<option value='" + company[i].id + "' selected='selected'>" + company[i].company_name + "</option>"
|
|
|
|
|
}else{
|
|
|
|
|
companystr += "<option value='" + company[i].id + "'>" + company[i].company_name + "</option>"
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$("#company_id").html(companystr);
|
|
|
|
|
$("#company_id").select2();
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
$("#company_type").change();
|
|
|
|
|
|
|
|
|
|
function setTypeName(type) {
|
|
|
|
|
var typename = '';
|
|
|
|
|
switch (type) {
|
|
|
|
|
case '':
|
|
|
|
|
typename ="请先选择公司类型";
|
|
|
|
|
break;
|
|
|
|
|
case '0':
|
|
|
|
|
typename = "请选择已方公司";
|
|
|
|
|
break;
|
|
|
|
|
case "1":
|
|
|
|
|
typename = "请选择上游CP公司";
|
|
|
|
|
break;
|
|
|
|
|
case "2":
|
|
|
|
|
typename ="请选择联运下游渠道公司";;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return typename;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|