录入信用报告.php
1.91 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
<?php $this->load->view('common/header'); ?>
<body>
<div class="cl pd-5 bg-1">
<span class="r">
<button class="btn btn-primary radius">保存</button>
<button class="btn btn-primary radius">预览信用报告</button>
</span>
</div>
<?php $this->load->view('work/审批/信用报告'); ?>
<div class="row cl pb-20 col-sm-12">
<div class="col-sm-offset-3 col-sm-2">
<button class="btn btn-warning btn-block">退回订单</button>
</div>
<div class="col-sm-2">
<button class="btn btn-danger btn-block" onclick="refuse()">拒绝</button>
</div>
<div class="col-sm-2">
<button class="btn btn-primary btn-block" onclick="pass()">
通过
</button>
</div>
</div>
<?php $this->load->view('common/footer'); ?>
<script>
function refuse() {
layer.open({
type: 2,
title: '电核记录',
shadeClose: true,
area: ['800px', '400px'],
content: '<?=site_url('work/telRefuse')?>'
});
}
function pass() {
var data = $("#form1").serializeJson();
$.ajax({
type: 'post',
url: apiBaseUrl + 'audit/creditReport',
cache: false,
data: JSON.stringify(data),
dataType: 'json',
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 () {
loadIframe(url, '审核意见');
}, 500)
},
error: function () {
layer.alert("操作失败")
}
})
}
</script>
</body>
</html>