prosecute.php
4.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php $this->load->view('common/header'); ?>
<body>
<div class="page-container">
<form class="" onreset="resetHandler()" id="prosecute">
<?php $this->load->view('loan/search'); ?>
<div>
<button class="btn btn-primary radius" type="button" onclick="$('#table').DataTable().draw()">搜索</button>
<input class="btn btn-warning radius" type="reset" value="重置">
<button class="btn btn-primary radius" type="button" onclick="layer_show('导入', '<?=site_url('loan/import/3')?>')">导入</button>
<button class="btn btn-success radius r" type="button" onclick="excel()">导出</button>
</div>
</form>
<div class="body mt-20">
<table class="table table-border table-bordered table-bg" id="table" url="/loanAfter/prosecute?prosecuteStatus=0">
<thead class="text-c">
<tr>
<th width="68px">操作</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 class="text-c">
</tbody>
</table>
</div>
</div>
<?php $this->load->view('common/footer'); ?>
<script>
var table = $('#table').dataTable({
columns: [
{
data: "id", render: function (data, type, full) {
return '<span class="dropDown dropDown_hover">\
<button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button>\
<ul class="dropDown-menu menu radius box-shadow">\
<li><a href="javascript:;edit('+data+')">编辑订单</a></li>\
<li><a href="javascript:;del('+data+')">删除订单</a></li>\
</ul></span>';
}
},
{data: "source"},//来源
{data: "orderNumber"},//订单编号
{data: "proposerName"},//申请人
{data: "idNumber"},//身份证
{data: "phoneNumber"},//手机号
{name: "branchName", data: "branchName"},//网点
{name: "productId", data: "productName"},//产品名称
{data: "createTime"},//借款金额
{data: "interestPenalty"},//罚息
{data: "overdueFine"},//滞纳金
{data: "totalPeriods"},//期数
{data: "createTime"},//还款方式
{data: "createTime"},//本期应还款日
{data: "realRepaymentDate"},//实际还款日
{data: "hasDue"},//是否逾期
{data: "dueDay"},//逾期天数
{data: "createTime"},//未还款总金额
{data: "prosecuteStatus"},//起诉状态
]
});
function edit(id) {
layer_show('编辑', '<?=site_url('/loan/edit/2')?>');
}
function del(id) {
layer.confirm('是否删除订单', {
btn: ['确认','取消'],
title: '删除订单',
icon: 3
}, function(){
layer.msg('删除');
});
}
function reload() {
table.fnDraw();
}
function excel() {
var data = $('#prosecute').serialize();
}
</script>
</body>
<html>