|
|
|
|
<extend name="Public/base"/>
|
|
|
|
|
|
|
|
|
|
<block name="body">
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
|
|
|
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
|
|
<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;}
|
|
|
|
|
.data_list table td{
|
|
|
|
|
text-indent:0;
|
|
|
|
|
}
|
|
|
|
|
.data_game_list table td{
|
|
|
|
|
line-height:1;
|
|
|
|
|
padding: 3px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
#form .txt_area.download_url {width:400px;}
|
|
|
|
|
.tabcon1711 .table_radio2 .table_btn {width:215px;}
|
|
|
|
|
.bnt_add,.bnt_remove,.bnt_save{
|
|
|
|
|
height: 30px;
|
|
|
|
|
width: 20px;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
line-height: 10px;
|
|
|
|
|
color: #3399ff;
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.bnt_remove{
|
|
|
|
|
color: #F70909;
|
|
|
|
|
}
|
|
|
|
|
.bnt_save{
|
|
|
|
|
color: #4DB361;
|
|
|
|
|
}
|
|
|
|
|
</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>
|
|
|
|
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
|
<h3 class="page_title">{$meta_title}</h3>
|
|
|
|
|
<p class="description_text">说明:该功能是用于录入工会所属的推广公司名称</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="jssearch search_list fl cf">
|
|
|
|
|
<a class="sch-btn" href="javascript:history.back(-1)" >返回</a>
|
|
|
|
|
<?php if ($msg):?>
|
|
|
|
|
{$msg}
|
|
|
|
|
<?php elseif ($settlement_type == 1):?>
|
|
|
|
|
<div class="data_list data_game_list">
|
|
|
|
|
<span style="color: red;">上游-汇总结算单</span>
|
|
|
|
|
<div class="">
|
|
|
|
|
<table border="1">
|
|
|
|
|
<!-- 表头 -->
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th style="width:10%;min-width:150px;">平台</th>
|
|
|
|
|
<th>时间</th>
|
|
|
|
|
<th>游戏名称</th>
|
|
|
|
|
<th>平台流水</th>
|
|
|
|
|
<th>分成比例</th>
|
|
|
|
|
<th>我方比例</th>
|
|
|
|
|
<th>渠道费率</th>
|
|
|
|
|
<th>税费费率</th>
|
|
|
|
|
<th>合作方结算分成</th>
|
|
|
|
|
<th>违规罚款</th>
|
|
|
|
|
<th>奖励</th>
|
|
|
|
|
<th style="width:20%;min-width:150px;">备注</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
|
<tbody>
|
|
|
|
|
<empty name ="listData">
|
|
|
|
|
<td colspan="99" class="text-center">aOh! 暂时还没有可结算内容!</td>
|
|
|
|
|
<else />
|
|
|
|
|
<?php foreach ($listData as $index => $item): ?>
|
|
|
|
|
<?php foreach ($item['channels'] as $k => $channel): ?>
|
|
|
|
|
<?php if ($k == 0) :?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item.company_name}</td>
|
|
|
|
|
<td>123</td>
|
|
|
|
|
<td>{$channel['relation_game_name']}</td>
|
|
|
|
|
<td>{$channel['amount']}</td>
|
|
|
|
|
<td>{$channel['game_ratio']}%</td>
|
|
|
|
|
<td>{$channel['self_game_ratio']}%</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['channel_rate']*100}%</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['invoice_rate']*100}%</td>
|
|
|
|
|
<td>{$channel['parter_settlement']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['fine']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['bonuses']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['remark']}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php else :?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>123</td>
|
|
|
|
|
<td>{$channel['relation_game_name']}</td>
|
|
|
|
|
<td>{$channel['amount']}</td>
|
|
|
|
|
<td>{$channel['game_ratio']}%</td>
|
|
|
|
|
<td>{$channel['self_game_ratio']}%</td>
|
|
|
|
|
<td>{$channel['parter_settlement']}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
</empty>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php elseif (in_array($settlement_type, [2, 3])):?>
|
|
|
|
|
<!-- 下游-内团/外团汇总结算单 -->
|
|
|
|
|
<span style="color: red;">下游-<?php echo $settlement_type == 2 ? "内团" : "外团"?>汇总结算单</span>
|
|
|
|
|
<div class="data_list data_game_list">
|
|
|
|
|
<div class="">
|
|
|
|
|
<table border="1">
|
|
|
|
|
<!-- 表头 -->
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>排序</th>
|
|
|
|
|
<th style="width:10%;">平台</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 style="width:20%;min-width:150px;">备注</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
|
<tbody>
|
|
|
|
|
<empty name ="listData">
|
|
|
|
|
<td colspan="99" class="text-center">aOh! 暂时还没有可结算内容!</td>
|
|
|
|
|
<else />
|
|
|
|
|
<?php foreach ($listData as $index => $item): ?>
|
|
|
|
|
<?php foreach ($item['channels'] as $k => $channel): ?>
|
|
|
|
|
<?php if ($k == 0) :?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$index+1}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item.company_name}</td>
|
|
|
|
|
<td>{$channel['account']}</td>
|
|
|
|
|
<td>{$channel['relation_game_name']}</td>
|
|
|
|
|
<td>{$channel['amount']}</td>
|
|
|
|
|
<td>{$channel['game_ratio']}%</td>
|
|
|
|
|
<td>{$channel['game_ratio_max']}%</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['fax_ratio']*100}%</td>
|
|
|
|
|
<td>{$channel['price']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['fine']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['bonuses']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['total_amount']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['settlement_contact']}</td>
|
|
|
|
|
<td>{$item['time_start']} 至 {$item['time_end']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">备注</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php else :?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{$channel['account']}</td>
|
|
|
|
|
<td>{$channel['relation_game_name']}</td>
|
|
|
|
|
<td>{$channel['amount']}</td>
|
|
|
|
|
<td>{$channel['game_ratio']}%</td>
|
|
|
|
|
<td>{$channel['game_ratio_max']}%</td>
|
|
|
|
|
<td>{$channel['price']}</td>
|
|
|
|
|
<td>{$item['time_start']} 至 {$item['time_end']}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
</empty>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php elseif ($settlement_type == 4):?>
|
|
|
|
|
<span style="color: red;">下游-个人汇总结算单</span>
|
|
|
|
|
<div class="data_list data_game_list">
|
|
|
|
|
<div class="">
|
|
|
|
|
<table border="1">
|
|
|
|
|
<!-- 表头 -->
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>排序</th>
|
|
|
|
|
<th style="width:10%;min-width:150px;">公司名称</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>
|
|
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
|
<tbody>
|
|
|
|
|
<empty name ="listData">
|
|
|
|
|
<td colspan="99" class="text-center">aOh! 暂时还没有可结算内容!</td>
|
|
|
|
|
<else />
|
|
|
|
|
<?php foreach ($listData as $index => $item): ?>
|
|
|
|
|
<?php foreach ($item['channels'] as $k => $channel): ?>
|
|
|
|
|
<?php if ($k == 0) :?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$index+1}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item.company_name}</td>
|
|
|
|
|
<td>{$channel['account']}</td>
|
|
|
|
|
<td>{$channel['admin_name']}</td>
|
|
|
|
|
<td>{$channel['company_relation_name']}</td>
|
|
|
|
|
<td>{$channel['type_name']}</td>
|
|
|
|
|
<td>{$channel['relation_game_name']}</td>
|
|
|
|
|
<td >{$channel['time_start']} 至 {$channel['time_end']}</td>
|
|
|
|
|
<td>{$channel['amount']}</td>
|
|
|
|
|
<td>{$channel['game_ratio']}%</td>
|
|
|
|
|
<td>{$channel['game_ratio_max']}%</td>
|
|
|
|
|
<td>{$channel['price']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['bonuses']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['fine']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['total_amount']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['settlement_contact']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['bank_card']}</td>
|
|
|
|
|
<td rowspan="{:sizeof($item['channels'])}">{$item['bank_address']}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php else :?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{$channel['account']}</td>
|
|
|
|
|
<td>{$channel['admin_name']}</td>
|
|
|
|
|
<td>{$channel['company_relation_name']}</td>
|
|
|
|
|
<td>{$channel['type_name']}</td>
|
|
|
|
|
<td>{$channel['relation_game_name']}</td>
|
|
|
|
|
<td >{$item['time_start']} 至 {$item['time_end']}</td>
|
|
|
|
|
<td>{$channel['amount']}</td>
|
|
|
|
|
<td>{$channel['game_ratio']}%</td>
|
|
|
|
|
<td>{$channel['game_ratio_max']}%</td>
|
|
|
|
|
<td>{$channel['price']}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
</empty>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
<br>
|
|
|
|
|
<?php if ($generate):?>
|
|
|
|
|
<span>请选择审核人:</span>
|
|
|
|
|
<div>
|
|
|
|
|
<span class="audit_user">
|
|
|
|
|
<select class="first_audit">
|
|
|
|
|
<?php foreach ($admin_users as $admin):?>
|
|
|
|
|
<option value="{$admin['uid']}" >{$admin['nickname']}</option>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
</select>
|
|
|
|
|
<button type="button" class="bnt_save">→</button>
|
|
|
|
|
</span>
|
|
|
|
|
<button type="button" class="bnt_add">✚</button>
|
|
|
|
|
<button type="button" class="bnt_remove">✖</button>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
<div>
|
|
|
|
|
<h3>审核人:</h3>
|
|
|
|
|
<div>
|
|
|
|
|
<?php foreach ($audit_users as $index => $user_id):?>
|
|
|
|
|
<span>
|
|
|
|
|
{:get_admin_nickname($user_id)}
|
|
|
|
|
(
|
|
|
|
|
<?php if ($index + 1 < $step):?>
|
|
|
|
|
通过
|
|
|
|
|
<?php elseif ($index + 1 == $step) :?>
|
|
|
|
|
<?php echo $status == 1 ? "通过" : ($status == 2 ? "未通过" : "待审核")?>
|
|
|
|
|
<?php else:?>
|
|
|
|
|
待审核
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
)
|
|
|
|
|
<?php if ($index < sizeof($audit_users) - 1):?><button type="button" class="bnt_save">→</button><?php endif;?>
|
|
|
|
|
</span>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-top:30px;">
|
|
|
|
|
<label>备注:</label>
|
|
|
|
|
<?php if ($audit_auth):?>
|
|
|
|
|
<textarea style="width: 400px;height: 200px;" id="remark">{$remark}</textarea>
|
|
|
|
|
<?php else :?>
|
|
|
|
|
<textarea style="width: 400px;height: 200px;" id="remark" disabled>{$remark}</textarea>
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php if ($audit_auth):?>
|
|
|
|
|
<div style="margin-top: 30px;">
|
|
|
|
|
<button class="submit_btn" id="submit" type="submit" target-form="form-horizontal" onclick="auditSettlement({$id}, 1)">
|
|
|
|
|
审核通过
|
|
|
|
|
</button>
|
|
|
|
|
<button class="submit_btn" target-form="form-horizontal" onclick="auditSettlement({$id}, 2)">
|
|
|
|
|
审核未通过
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
</div>
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
|
|
<block name="script">
|
|
|
|
|
<script src="__STATIC__/layer/layer.js"></script>
|
|
|
|
|
<script src="__STATIC__/layer/extend/layer.ext.js"></script>
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
|
|
|
|
|
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js" ></script>
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<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>
|
|
|
|
|
<link rel="stylesheet" href="__STATIC__/flatpickr/flatpickr.min.css">
|
|
|
|
|
<script src="__STATIC__/flatpickr/flatpickr.min.js"></script>
|
|
|
|
|
<script src="__STATIC__/flatpickr/l10n/zh.js"></script>
|
|
|
|
|
<style>
|
|
|
|
|
.layui-layer-demo .layui-layer-title {background:#F0F5F7;font-weight:bold;}
|
|
|
|
|
.layui-layer-demo .layui-layer-content {}
|
|
|
|
|
.layui-layer-demo .layui-layer-content table{width:100%;border:0;border-spacing:0;padding:0;}
|
|
|
|
|
.layui-layer-demo .layui-layer-content td {height:42px;padding-left:20px;}
|
|
|
|
|
.layui-layer-demo .layui-layer-content tr:hover {background:#F0F5F7;}
|
|
|
|
|
.layui-layer-demo .layui-layer-content tr~tr {border-top:1px solid #ccc;}
|
|
|
|
|
.layui-layer-demo .layui-layer-content td~td {border-left:1px solid #ccc;}
|
|
|
|
|
.layui-layer-demo .layui-layer-content tr:last-child td {}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
<volist name=":I('get.')" id="vo">
|
|
|
|
|
Think.setValue('{$key}',"{$vo}");
|
|
|
|
|
</volist>
|
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
//导航高亮
|
|
|
|
|
highlight_subnav("{:U('settlement/sheetList')}");
|
|
|
|
|
|
|
|
|
|
function auditSettlement(id, audit_type)
|
|
|
|
|
{
|
|
|
|
|
$.ajax({
|
|
|
|
|
url : "{:U('settlement/auditSheet')}",
|
|
|
|
|
dataType:"JSON",
|
|
|
|
|
method:"POST",
|
|
|
|
|
data : {id:id, audit_type:audit_type, remark:$('#remark').val()},
|
|
|
|
|
success:function(response){
|
|
|
|
|
layer.msg(response.info);
|
|
|
|
|
if (response.status != 0) {
|
|
|
|
|
location.reload()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|