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

master
chenxiaojun 5 years ago
parent 93b2c65db5
commit 1c157d78b9

@ -871,18 +871,27 @@ class QueryController extends ThinkController
$this->display();
}
public function withdrawDetails($settlement_number = '')
public function withdrawDetails($id)
{
$map['settlement_number'] = $settlement_number;
$data = M('TotalSettlement', 'tab_')->where($map)->find();
$settMap['promote_id'] = $data['promote_id'];
$settMap['starttime'] = $data['starttime'];
$settMap['endtime'] = $data['endtime'];
$settMap['create_time'] = $data['create_time'];
$dataSett = M('settlement', 'tab_')->where($settMap)->select();
$total = M('settlement', 'tab_')->where($settMap)->sum('sum_money');
$this->assign('list_data', $dataSett);
$this->assign('total', $total);
$id = intval($id);
$map['withdraw_id'] = $id;
$data = M('Spend', 'tab_')
->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')
->where($map)->select();
//提现状态
$withdrawStatus = M('withdraw', 'tab_')
->where(array('id' => $id))
->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();
}

@ -145,7 +145,7 @@
<if condition="$data.status eq 0">
<a class="ajax-get" url="{:U('set_withdraw_status',array('ids'=>$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>
</if>
</div>

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

Loading…
Cancel
Save