You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
5.2 KiB
125 lines
5.2 KiB
9 months ago
|
{extend name="public/container"}
|
||
|
{block name="content"}
|
||
|
<div class="layui-fluid">
|
||
|
<div class="layui-card">
|
||
|
<div class="layui-card-header">支付宝提现记录</div>
|
||
|
<div class="layui-card-body">
|
||
|
<form class="layui-form layui-form-pane" action="">
|
||
|
<div class="layui-form-item">
|
||
|
<div class="layui-inline">
|
||
|
<label class="layui-form-label">搜索</label>
|
||
|
<div class="layui-input-inline">
|
||
|
<input type="text" name="pay_fund_order_id" class="layui-input" placeholder="订单号">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="layui-inline">
|
||
|
<button class="layui-btn layui-btn-normal layui-btn-sm" type="button" lay-submit="search" lay-filter="search"><i class="layui-icon"></i>搜索</button>
|
||
|
<button class="layui-btn layui-btn-sm layui-btn-normal" type="button" onclick="window.location.reload()"><i class="layui-icon"></i>刷新</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
<table id="userList" lay-filter="userList"></table>
|
||
|
|
||
|
<script type="text/html" id="act">
|
||
|
<button lay-event='remarks' class="layui-btn layui-btn-normal layui-btn-xs" type="button">备注</button>
|
||
|
</script>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<script src="{__ADMIN_PATH}js/layuiList.js"></script>
|
||
|
<script>
|
||
|
layList.form.render();
|
||
|
layList.date({elem: '#datetime', type: 'datetime', range: '~'});
|
||
|
layList.tableList('userList',"{:Url('get_user_extract')}",function () {
|
||
|
return [
|
||
|
{field: 'id', title: '编号', align: 'center',width:'6%'},
|
||
|
{field: 'extract_price', title: '提现金额',align: 'center'},
|
||
|
{field: 'trans_date', title: '打款时间',align: 'center'},
|
||
|
{field: 'pay_fund_order_id', title: '订单号',align: 'center',width:'20%'},
|
||
|
{field: 'type', title: '类型',align: 'center',width:'10%'},
|
||
|
{field: 'status', title: '状态',align: 'center',width:'10%'},
|
||
|
];
|
||
|
});
|
||
|
|
||
|
layList.search('search',function(where){
|
||
|
var arr_time = [];
|
||
|
var start_time = '';
|
||
|
var end_time = '';
|
||
|
if (where.datetime) {
|
||
|
arr_time = where.datetime.split('~');
|
||
|
start_time = arr_time[0].trim();
|
||
|
end_time = arr_time[1].trim();
|
||
|
}
|
||
|
layList.reload({
|
||
|
nireid: where.nireid,
|
||
|
status: where.status,
|
||
|
extract_type: where.extract_type,
|
||
|
start_time: start_time,
|
||
|
end_time: end_time,
|
||
|
},true);
|
||
|
});
|
||
|
//查询
|
||
|
layList.search('search',function(where){
|
||
|
layList.reload(where,true);
|
||
|
});
|
||
|
//监听并执行排序
|
||
|
layList.sort(['id','sort'],true);
|
||
|
//点击事件绑定
|
||
|
layList.tool(function (event,data,obj) {
|
||
|
switch (event) {
|
||
|
case 'succ':
|
||
|
var url=layList.U({a:'succ',q:{id:data.id}});
|
||
|
$eb.$swal('delete',function(){
|
||
|
$eb.axios.get(url).then(function(res){
|
||
|
if(res.status == 200 && res.data.code == 200) {
|
||
|
window.location.reload();
|
||
|
$eb.$swal('success',res.data.msg);
|
||
|
}else
|
||
|
return Promise.reject(res.data.msg || '删除失败')
|
||
|
}).catch(function(err){
|
||
|
$eb.$swal('error',err);
|
||
|
});
|
||
|
}, {
|
||
|
title:'确定审核通过?',
|
||
|
text:'通过后无法撤销,请谨慎操作(支付宝自动到账)!',
|
||
|
confirm:'审核通过'
|
||
|
});
|
||
|
break;
|
||
|
case 'fail':
|
||
|
var url=layList.U({a:'fail',q:{id:data.id}});
|
||
|
$eb.$alert('textarea',{
|
||
|
title:'请输入未通过愿意',
|
||
|
value:'输入信息不完整或有误!',
|
||
|
},function(value){
|
||
|
$eb.axios.post(url,{message:value}).then(function(res){
|
||
|
if(res.data.code == 200) {
|
||
|
window.location.reload();
|
||
|
$eb.$swal('success', res.data.msg);
|
||
|
}else
|
||
|
$eb.$swal('error',res.data.msg||'操作失败!');
|
||
|
});
|
||
|
});
|
||
|
break;
|
||
|
case 'remarks':
|
||
|
var url=layList.U({a:'remarks',q:{id:data.id}});
|
||
|
$eb.$alert('textarea',{
|
||
|
title:'请输入提现备注',
|
||
|
value:'',
|
||
|
},function(value){
|
||
|
$eb.axios.post(url,{message:value}).then(function(res){
|
||
|
if(res.data.code == 200) {
|
||
|
window.location.reload();
|
||
|
$eb.$swal('success', res.data.msg);
|
||
|
}else
|
||
|
$eb.$swal('error',res.data.msg||'操作失败!');
|
||
|
});
|
||
|
});
|
||
|
break;
|
||
|
case 'open_image':
|
||
|
$eb.openImage(data.merchant_head);
|
||
|
break;
|
||
|
}
|
||
|
});
|
||
|
</script>
|
||
|
{/block}
|