资料移交.php
8.45 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
<?php $this->load->view('common/header'); ?>
<body>
<div class="page-container">
<div class="panel panel-default">
<div class="panel-header">申请信息</div>
<div class="panel-body">
<div class="row cl">
<div class="form-group col-sm-4 col-md-2">
<label>申请金额</label>
<input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->applyMoney : ''?>" disabled>
<span class="glyphicon form-control-feedback">元</span>
</div>
<div class="form-group col-sm-4 col-md-2">
<label>申请期限</label>
<input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled>
<span class="glyphicon form-control-feedback">天</span>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-header">授信信息</div>
<!-- GET /flow/getLastCheck-->
<div class="panel-body">
<div class="row cl">
<div class="form-group col-sm-4 col-md-2">
<label>核批金额</label>
<input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled>
<span class="glyphicon form-control-feedback">元</span>
</div>
<div class="form-group col-sm-4 col-md-2">
<label>借款期限</label>
<input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled>
<span class="glyphicon form-control-feedback">天</span>
</div>
<div class="form-group col-sm-4 col-md-2">
<label>借款利率</label>
<input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled>
<span class="glyphicon form-control-feedback">%</span>
</div>
<div class="form-group col-sm-4 col-md-2">
<label>每月还款金额</label>
<input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled>
<span class="glyphicon form-control-feedback">元</span>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-header">还款计划表</div>
<div class="panel-body text-c">
<table class="table table-border table-bordered table-bg">
<thead class="text-c">
<tr>
<th>期数</th>
<th>本期应还(元)</th>
</tr>
</thead>
<tbody class="text-c">
<?php if($plan && $plan->repayPlans):?>
<?php foreach ($plan->repayPlans as $k=>$v):?>
<tr>
<td><?=$v->period?> 期</td>
<td><?=$v->totalAmount?>元</td>
</tr>
<?php endforeach;?>
<?php endif;?>
</tbody>
</table>
</div>
</div>
<div class="panel panel-default mb-20">
<div class="panel-header">资料清单 <button class="btn btn-primary">资料导出</button></div>
<div class="panel-body">
<div class="row cl">
<div class="form-group col-sm-12">
<table class="table table-border table-bordered uploader-list-container" id="select_all">
<thead class="text-c">
<tr>
<th width="30"><input type="checkbox"></th>
<th>类型</th>
<th>支持相同类型图片上传多张, 格式: png/jpg 单张限制5M</th>
</tr>
</thead>
<tbody class="upload-tbody">
<tr data-id="1">
<td class="text-c"><input type="checkbox"></td>
<td class="text-c">处理日志</td>
<td>
<input type="checkbox" name="1" hidden/>
<a href="">处理日志.xls</a>
</td>
</tr>
<tr data-id="2">
<td class="text-c"><input type="checkbox"></td>
<td class="text-c">身份证复印件</td>
<td>
<div class="filelist">
<label class="radio">
<input type="checkbox" name="1"/>
<img src="holder.js/100x100">
</label>
<label class="radio">
<input type="checkbox" name="1"/>
<img src="holder.js/100x100">
</label>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="row cl pb-20 col-sm-12">
<div class="col-sm-offset-4 col-sm-2">
<button class="btn btn-warning btn-block">退回订单</button>
</div>
<div class="col-sm-2">
<button class="btn btn-primary btn-block" onclick="verify()">资料转移</button>
</div>
</div>
<?php $this->load->view('common/footer'); ?>
<script>
$('#select_all th>input:checkbox').on('change', function () {
var checked = $(this).is(':checked');
$('#select_all').find('input:checkbox').prop('checked', checked);
});
$('#select_all td>input:checkbox').on('change', function () {
var checked = $(this).is(':checked');
$(this).parents('tr').find('input:checkbox').prop('checked', checked);
});
function verify() {
layer.confirm('通过之后, 将立即进入放款阶段', {
btn: ['确认','取消'],
title: '资料转移',
icon: 3
}, function(){
var targetUrl = 'flow/confirm2NextStatus/' + "<?=$id?>";;
var data = {
"opinion": "",
"orderStatus": "<?=$applyOrderVO->status?>"
}
$.ajax({
type: 'put',
url: apiBaseUrl + targetUrl,
cache: false,
dataType: 'json',
data: JSON.stringify(data),
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if (data.code != 0) {
layer.alert('操作失败');
} else {
layer.alert('操作成功');
}
setTimeout(function () {
if (!data.code) {
layer_close();
}
}, 500);
},
error: function () {
layer.alert("操作失败")
}
})
});
}
</script>
</body>
</html>