chargedetail.php
10.3 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<?php $this->load->view('common/header'); ?>
<body>
<div class="page-container">
<form class="" onreset="resetHandler()">
<?php //$this->load->view('work/search2'); ?>
<div class="col-xs-2">
<span class="select-box">
<select class="select table_search" size="1" name="code" >
<option value="" selected>时间类型</option>
<?php foreach ($ret as $k=>$v):?>
<option value="<?=$k?>"><?=$v?></option>
<?php endforeach;?>
</select>
</span>
</div>
<div class="date mb-20">
<input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}'})" id="min" class="input-text Wdate"> -
<input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d'})" id="max" class="input-text Wdate">
</div>
<div class="row cl mb-20">
<div class="col-xs-2">
<span class="select-box">
<select class="select table_search" size="1">
<option value="" selected>还款状态</option>
<?php foreach ($this->session->repaymentPlans as $k=>$v):?>
<option value="<?=$k?>"><?=$v?></option>
<?php endforeach;?>
</select>
</span>
</div>
<div class="col-xs-2">
<span class="select-box">
<select class="select table_search" size="1" column="6">
<option value="" selected>网点</option>
<?php foreach ($this->session->departments as $k=>$v):?>
<option value="<?=$v->id?>"><?=$v->name?></option>
<?php if($v->children && !empty($v->children)):?>
<?php foreach ($v->children as $kk=>$vv):?>
<option value="<?=$vv->id?>"><?=$vv->name?></option>
<?php endforeach;?>
<?php endif;?>
<?php endforeach;?>
</select>
</span>
</div>
<div class="col-xs-2">
<input type="text" class="form-control input-text table_search" value="" placeholder="姓名" column="3" name="proposerName">
</div>
<div class="col-xs-2">
<input type="text" class="form-control input-text table_search" value="" placeholder="手机号" column="5" name="phoneNumber">
</div>
<!-- <div class="col-xs-2">-->
<!-- <input type="text" class="form-control input-text" value="" id="loanMinMoney" placeholder="最小申请金额" name="loanMinMoney">-->
<!-- </div>-->
<!-- <div class="col-xs-2">-->
<!-- <input type="text" class="form-control input-text table_search" id="loanMaxMoney" value="" placeholder="最大申请金额" name="loanMaxMoney">-->
<!-- </div>-->
<!-- <div class="col-xs-2">-->
<!-- <input type="text" class="form-control input-text table_search" id="ratifyMinMoney" value="" placeholder="最小审批金额" name="ratifyMinMoney">-->
<!-- </div>-->
<!-- <div class="col-xs-2">-->
<!-- <input type="text" class="form-control input-text table_search" id="ratifyMaxMoney" value="" placeholder="最大审批金额" name="ratifyMaxMoney">-->
<!-- </div>-->
</div>
<div>
<button class="btn btn-primary radius" type="button" onclick="$('#table').DataTable().draw()">搜索</button>
<input class="btn btn-warning radius" type="reset" value="重置">
</div>
</form>
<div class="body mt-20">
<table class="table table-border table-bordered table-bg" id="table" url="manage/financial/repayments/alreadyPay">
<thead class="text-c">
<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>
<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: "source"},//来源
{data: "orderNumber"},//订单编号
{data: "applyAmount"},//订单编号
{name: "branchName", data: "branchName"},//网点名称
{data: "clientManager"},//客户经理
// {data: "confirmDate"},//确认到账日期
{data: function (data) {
if(!data.confirmDate)
return '';
return getNowFormatDate(new Date(parseInt(data.confirmDate)));
}},//计划还款日期
{data: "currentBalance"},//当月应还
{data: "currentPeriods"},//当月期数
// {data: "hasDue"},//是否逾期
{data: function (data) {
if(data.hasDue == 1){
return '是';
}else if(data.hasDue == 0){
return '否';
}else{
return '';
}
}},//是否逾期
{data: "dueDay"},//逾期天数
// {data: "enterDate"},//进件时间
{data: function (data) {
if(!data.enterDate)
return '';
return getNowFormatDate(new Date(parseInt(data.enterDate)));
}},//进件时间
// {data: "hasClean"},//是否结清
{data: function (data) {
if(data.hasClean == 1){
return '是';
}else if(data.hasClean == 0){
return '否';
}else{
return '';
}
}},//是否结清
{data: "idNumber"},//身份证
{data: "interestPenalty"},//罚息
// {data: "loanDate"},//放款日期
{data: function (data) {
if(!data.loanDate)
return '';
return getNowFormatDate(new Date(parseInt(data.loanDate)));
}},//放款日期
{data: "overdueFine"},//滞纳金
{data: "phoneNumber"},//手机号
// {data: "planRepaymentDate"},//计划还款日期
{data: function (data) {
if(!data.planRepaymentDate)
return '';
return getNowFormatDate(new Date(parseInt(data.planRepaymentDate)));
}},//计划还款日期
{name: "productId", data: "productName"},//产品名称
{data: "proposerName"},//申请人
{data: "prosecuteStatus"},//起诉状态
{data: "ratifyAmount"},//审批金额
// {data: "realRepaymentDate"},//实际还款日
{data: function (data) {
if(!data.realRepaymentDate)
return '';
return getNowFormatDate(new Date(parseInt(data.realRepaymentDate)));
}},//计划还款日期
// {data: "repayStatus"},//还款状态
{data: function (data) {
if(data.repayStatus == 0){
return '未还';
}else if(data.repayStatus == 1){
return '逾期未还';
}else if(data.repayStatus == 2){
return '逾期已还';
}else if(data.repayStatus == 3){
return '已还';
}else{
return '';
}
}},//计划还款日期
// {name: "repayStatus", data: "repayStatus"},//还款状态
{data: "totalPeriods"},//总期数
]
});
// $('#loanMinMoney, #loanMaxMoney,#ratifyMinMoney, #ratifyMaxMoney').on('keyup', function () {
// var url = window.location.href;
//// alert(url);
// location.href = url+'&loanMinMoney='+$("#loanMinMoney").val()+'&loanMaxMoney='+$("#loanMaxMoney").val()+'&ratifyMinMoney='+$("#ratifyMinMoney").val()+'&ratifyMaxMoney='+$("#ratifyMaxMoney").val()
//// $('#table').DataTable().draw();
// });
function pass(id) {
layer.confirm('通过之后, 账单同步更新到收款明细列表', {
btn: ['通过','取消'],
title: '确认到账',
icon: 3
}, function(){
layer.msg('通过');
});
}
//获取url中的参数
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var r = window.location.search.substr(1).match(reg); //匹配目标参数
if (r != null) return unescape(r[2]); return null; //返回参数值
}
</script>
</body>
<html>