汇总单结算代码上传

master
zhengyongxing 4 years ago
parent 9d43914b17
commit 61d12c2750

@ -26,11 +26,8 @@ class WithdrawController extends BaseController
$map = [];
// $map['pay_time'] = strtotime($_REQUEST['start_time']);
$map["promote.id"] = get_pid();
$map['tab_company_statement_info.company_type'] = ['in',"1,2"];
// $map['pay_type'] = 1;
if ($_REQUEST['pay_status'] || $_REQUEST['pay_status'] == '0') {
$map['pay_status'] = $_REQUEST['pay_status'];
@ -146,6 +143,11 @@ var_dump(1);die();
$statemnt_info = json_decode($dbres['statement_info'],true);
$dbres['pay_time'] = date("Y-m-d H:i:s",$dbres['pay_time']);
$dbres['statement_begin_time'] = date("Y-m-d",$dbres['statement_begin_time']);
$dbres['statement_end_time'] = date("Y-m-d",$dbres['statement_end_time']);
$dbres['hletter_amount'] = convertAmountToCn($dbres['statement_money']);
// dump($company_info);
// dump($statemnt_info);die();
$rowspan = count($statemnt_info);

@ -83,8 +83,10 @@
<a href="{:U('Finance/index')}" class="<if condition='CONTROLLER_NAME eq Finance and ACTION_NAME eq index '>active</if> ">结算中心</a>
<a href="{:U('Finance/settlementDtl')}" class="<if condition='CONTROLLER_NAME eq Finance and ACTION_NAME eq settlementDtl '>active</if> ">结算明细</a>
<a href="{:U('Finance/withdrawRecord')}" class="<if condition='CONTROLLER_NAME eq Finance and (ACTION_NAME eq withdrawRecord or ACTION_NAME eq withdrawDtl or ACTION_NAME eq settlementOrder) '>active</if> ">提现记录</a>
<a href="{:U('Withdraw/index')}" class="<if condition='CONTROLLER_NAME eq Withdraw and (ACTION_NAME eq index or ACTION_NAME eq withdrawDetail or ACTION_NAME eq withdrawOrderDetail) '>active</if> ">公司结算</a>
</div>
<?php if ($loginer['withdraw_show'] == 1) :?>
<a href="{:U('Withdraw/index')}" class="<if condition='CONTROLLER_NAME eq Withdraw and (ACTION_NAME eq index or ACTION_NAME eq withdrawDetail or ACTION_NAME eq withdrawOrderDetail) '>active</if> ">公司结算</a>
<?php endif;?>
</div>
<?php endif ;?>
<div class="subNav jssubNav"><i class="prev_icon icon_fenbao"></i><span>游戏管理</span><i class="arrow_icon"></i></div>
<div class="navContent jsnavContent">

@ -214,7 +214,9 @@
<elseif condition="$s.pay_status eq 1"/>打款成功</if>
</td>
<td>
<a href="javascript:;" class="open_edit" data-id="{$s.id}">提现</a>
<if condition="$promote_data.withdraw_done eq 1">
<a href="javascript:;" class="open_edit" data-id="{$s.id}">提现</a>
</if>
<a href="javascript:;" class="apply" data-id="{$s.id}">结算单详情</a>
</td>
</tr>

@ -163,25 +163,20 @@
<div class="trunk-content article">
<div class="tabcon trunk-list">
<if condition="$data['company_type'] eq 1">
<div style="text-align: center;font-size: 25px">《{$data.company_name}》结算单</div>
<div style="text-align: center;font-size: 20px">({$data['statement_begin_time']|default="无"}-{$data['statement_end_time']|default="无"})</div>
<div>&nbsp</div>
<table class="table normal_table">
<tr class="odd">
<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>
<empty name="data">
<tr>
@ -191,45 +186,151 @@
</td>
</tr>
<else/>
<tr class="<eq name='mod' value='1'>odd</eq>">
<td rowspan="{$rowspan}">{$data.company_name}</td>
<td>{$statemnt_info[0]['game_name']}</td>
<td>{$statemnt_info[0]['sum_money']}</td>
<td><if condition="$statemnt_info[0]['increment_ratio']">0<else/>{$statemnt_info[0]['ratio']}</if></td>
<td><if condition="$statemnt_info[0]['ratio']">0<else/>{$statemnt_info[0]['increment_ratio']}</if></td>
<td>{$statemnt_info[0]['fax_ratio']}</td>
<td>{$statemnt_info[0]['pay_amount']}</td>
<td rowspan="{$rowspan}">{$data['fine']}</td>
<td rowspan="{$rowspan}">{$data['reward']}</td>
<td rowspan="{$rowspan}">{$data['pay_amount']}</td>
<td rowspan="{$rowspan}">{$company_info[0]['payee_name']|default="无"}</td>
<td rowspan="{$rowspan}">{$data['pay_time']}</td>
<td rowspan="{$rowspan}">{$data['remark']}</td>
<td>
<a href="javascript:;" class="apply" data-id="{$statemnt_info[0]['relation_game_id']}" data-start="{$statemnt_info[0]['statement_begin_time']}" data-end="{$statemnt_info[0]['statement_end_time']}">查看详情</a>
</td>
</tr>
<!-- <tr class="<eq name='mod' value='1'>odd</eq>">-->
<!-- <td rowspan="{$rowspan}">{$data.company_name}</td>-->
<!-- <td>{$statemnt_info[0]['game_name']}</td>-->
<!-- <td>{$statemnt_info[0]['sum_money']}</td>-->
<!-- <td><if condition="$statemnt_info[0]['increment_ratio']">0<else/>{$statemnt_info[0]['ratio']}</if></td>-->
<!-- <td><if condition="$statemnt_info[0]['ratio']">0<else/>{$statemnt_info[0]['increment_ratio']}</if></td>-->
<!-- <td>{$statemnt_info[0]['fax_ratio']}</td>-->
<!-- <td>{$statemnt_info[0]['pay_amount']}</td>-->
<!-- <td rowspan="{$rowspan}">{$data['fine']}</td>-->
<!-- <td rowspan="{$rowspan}">{$data['reward']}</td>-->
<!-- <td rowspan="{$rowspan}">{$data['pay_amount']}</td>-->
<!-- <td rowspan="{$rowspan}">{$company_info[0]['payee_name']|default="无"}</td>-->
<!-- <td rowspan="{$rowspan}">{$data['pay_time']}</td>-->
<!-- <td rowspan="{$rowspan}">{$data['remark']}</td>-->
<!-- <td>-->
<!-- <a href="javascript:;" class="apply" data-id="{$statemnt_info[0]['relation_game_id']}" data-start="{$statemnt_info[0]['statement_begin_time']}" data-end="{$statemnt_info[0]['statement_end_time']}">查看详情</a>-->
<!-- </td>-->
<!-- </tr>-->
<volist name="statemnt_info" id="s" index="key">
<if condition="$key egt 1">
<tr>
<td>{$s['statement_begin_time']}-{$s['statement_end_time']}</td>
<td>{$s['game_name']}</td>
<td>{$s['sum_money']}</td>
<td><if condition="$s['increment_ratio']">0<else/>{$s['ratio']}</if></td>
<td><if condition="$s['ratio']">0<else/>{$s['increment_ratio']}</if></td>
<td>{$s['fax_ratio']}</td>
<td>{$s['pay_amount']}</td>
<td>
<a href="javascript:;" class="apply" data-id="{$s['relation_game_id']}" data-start="{$s['statement_begin_time']}" data-end="{$s['statement_end_time']}">查看详情</a>
</td>
</tr>
</if>
</volist>
<tr>
<td colspan="50">
开户名:{$company_info.payee_name|default="无"}&nbsp&nbsp开户行{$company_info.opening_bank|default="无"}&nbsp&nbsp银行账户{$company_info.bank_account|default="无"}&nbsp&nbsp账户类型
<td>{$data['statement_begin_time']}-{$data['statement_end_time']}</td>
<td>罚款</td>
<td>{$data['fine']}</td>
<td></td>
<td></td>
<td></td>
<td>{$data['fine']}</td>
</tr>
<tr>
<td>{$data['statement_begin_time']}-{$data['statement_end_time']}</td>
<td>奖励</td>
<td>{$data['reward']}</td>
<td></td>
<td></td>
<td></td>
<td>{$data['reward']}</td>
</tr>
<tr>
<td colspan="2">
合计
</td>
<td>
{$data['pay_amount']}
</td>
<td colspan="3">
</td>
<td>
{$data['statement_money']}
</td>
</tr>
<tr>
<td>
支付金额(大写)
</td>
<td colspan="20">
{$data['hletter_amount']}
</td>
</tr>
<tr>
<td>
备注:
</td>
<td colspan="20">
结算金额=平台总额*(分成比例+补点比例)*(1-税费费率)
</td>
</tr>
<tr>
<td></td>
<td>甲方:</td>
<td></td>
<td>乙方:</td>
<td>{$company_info['partner']}</td>
<td></td>
</tr>
<tr>
<td></td>
<td>联系人:</td>
<td></td>
<td>联系人:</td>
<td>{$company_info['link_man']}</td>
<td></td>
</tr>
<tr>
<td></td>
<td>联系电话:</td>
<td></td>
<td>联系电话:</td>
<td>{$company_info['link_phone']}</td>
<td></td>
</tr>
<tr>
<td></td>
<td>开票项目</td>
<td></td>
<td>邮寄地址</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>发票类型</td>
<td></td>
<td>请汇入此账号</td>
<td>{$company_info['ali_account']}</td>
<td></td>
</tr>
<tr>
<td colspan="3"></td>
<td>户名</td>
<td>{$company_info['link_phone']}</td>
<td></td>
</tr>
<tr>
<td colspan="3"></td>
<td>账号</td>
<td>{$company_info['bank_account']}</td>
<td></td>
</tr>
<tr>
<td colspan="3"></td>
<td>开户行</td>
<td>{$company_info['opening_bank']}</td>
<td></td>
</tr>
</empty>
</table>
<elseif condition="$data['company_type'] eq 2"/>
@ -313,9 +414,9 @@
</div>
<div class="pagenation clearfix">
<?php if ($loginer['level'] !== 4) :?>
<a id="sch-btn" href="{:U('download/testresource_data_export',array_merge(['promote_type'=>'xxx'],I('get.')))}" class="ajax-get" >导出</a>
<?php endif ;?>
<!-- <?php if ($loginer['level'] !== 4) :?>-->
<!-- <a id="sch-btn" href="{:U('download/testresource_data_export',array_merge(['promote_type'=>'xxx'],I('get.')))}" class="ajax-get" >导出</a>-->
<!-- <?php endif ;?>-->
{$_page}
</div>

Loading…
Cancel
Save