管理后台->推广员->结算管理->推广提现->订单详情--更新

master
chenxiaojun 5 years ago
parent 93b2c65db5
commit 1c157d78b9

@ -871,18 +871,27 @@ class QueryController extends ThinkController
$this->display(); $this->display();
} }
public function withdrawDetails($settlement_number = '') public function withdrawDetails($id)
{ {
$map['settlement_number'] = $settlement_number; $id = intval($id);
$data = M('TotalSettlement', 'tab_')->where($map)->find(); $map['withdraw_id'] = $id;
$settMap['promote_id'] = $data['promote_id']; $data = M('Spend', 'tab_')
$settMap['starttime'] = $data['starttime']; ->field('pay_order_number,game_name,user_account,promote_account,pay_amount,pay_way,if(selle_ratio >= 0,selle_ratio,0) as selle_ratio,pay_time,selle_status,pay_status,withdraw_id')
$settMap['endtime'] = $data['endtime']; ->where($map)->select();
$settMap['create_time'] = $data['create_time'];
$dataSett = M('settlement', 'tab_')->where($settMap)->select(); //提现状态
$total = M('settlement', 'tab_')->where($settMap)->sum('sum_money'); $withdrawStatus = M('withdraw', 'tab_')
$this->assign('list_data', $dataSett); ->where(array('id' => $id))
$this->assign('total', $total); ->getField('status');
$withdrawStatus = \Home\Controller\FinanceController::$withdrawStatus[$withdrawStatus];
foreach ($data as &$list) {
$list['income'] = bcmul($list['pay_amount'], bcdiv($list['selle_ratio'], 100, 2), 2);
$list['pay_time'] = date('Y-m-d H:i:s', $list['pay_time']);
}
$this->assign('listData', $data);
$this->assign('withdrawStatus', $withdrawStatus);
$this->display(); $this->display();
} }

@ -145,7 +145,7 @@
<if condition="$data.status eq 0"> <if condition="$data.status eq 0">
<a class="ajax-get" url="{:U('set_withdraw_status',array('ids'=>$data['id']))}">通过</a> <a class="ajax-get" url="{:U('set_withdraw_status',array('ids'=>$data['id']))}">通过</a>
<a class="agree" data-id="{$data['id']}">驳回</a> <a class="agree" data-id="{$data['id']}">驳回</a>
<elseif condition="$data.status eq 1"/> <elseif condition="$data.status neq 1"/>
<a class="upload-transfer-proof" data-id="{$data['id']}">上传汇款证明</a> <a class="upload-transfer-proof" data-id="{$data['id']}">上传汇款证明</a>
</if> </if>
</div> </div>

@ -2,7 +2,7 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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 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">
@ -28,35 +28,42 @@ body{ padding: 0px; }
<!-- 表头 --> <!-- 表头 -->
<thead> <thead>
<tr> <tr>
<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> </tr>
</thead> </thead>
<!-- 列表 --> <!-- 列表 -->
<tbody> <tbody>
<volist name="list_data" id="data"> <volist name="listData" id="vo">
<tr> <tr>
<td>{$data.starttime|date='Y-m-d',###}至{$data.endtime|date='Y-m-d',###}</td> <td>{$vo.pay_order_number}</td>
<td>{$data.game_name}</td> <td>{$vo.game_name}</td>
<td>{$data.total_money}</td> <td>{$vo.user_account}</td>
<td>{$data.total_number}</td> <td>{$vo.promote_account}</td>
<td>{:get_pattern($data['pattern'])}</td> <td>{$vo.pay_amount}</td>
<td>{$data.ratio}</td> <if condition="$vo.pay_way eq -1">
<td>{$data.money}</td> <td>0</td>
<td>{$data.sum_money}</td> <td>{$vo.pay_amount}</td>
<else/>
<td>{$vo.pay_amount}</td>
<td>0</td>
</if>
<td>{$vo.selle_ratio}%|{$vo.selle_ratio}%</td>
<td>{$vo.income}</td>
<td>{$vo.pay_time}</td>
<td>{$withdrawStatus}</td>
</tr> </tr>
</volist> </volist>
<tr>
<td colspan='8' style="text-align: center;">汇总:{$total}</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>

Loading…
Cancel
Save