客户确认.php
5.76 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
<?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">还款计划表
<!-- <button class="btn btn-success">导出</button></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>
<?php $this->load->view('work/图片上传') ?>
</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>
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) {
table.fnDraw();
layer_close();
}
}, 500);
},
error: function () {
layer.alert("操作失败")
}
})
});
}
</script>
</body>
</html>