复审.php
6.29 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
<?php $this->load->view('common/header'); ?>
<body>
<div class="HuiTab">
<div class="tabBar clearfix" style="background-color:#e8e8e8">
<a href="javascript:location.replace('<?=site_url('/work/side/3')?>');"><span>我的审批列表</span></a>
<a href="javascript:location.replace('<?=site_url('/work/task')?>');"><span>任务管理</span></a>
</div>
</div>
<div class="page-container">
<form class="search">
<?php $this->load->view('work/search'); ?>
<div>
<input class="btn btn-primary radius" type="submit" value="提交搜索">
<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="/order/getStatus5">
<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>
</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:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/'+data+'?tab=0\')">查看详细</a></li>\
<li><a href="javascript:;" onclick="creatIframe(\'/work/check/1?tab=0\', \'审批订单\')">马上审批</a></li>\
<li>\
<a href="#">退回订单<i class="arrow Hui-iconfont"></i></a>\
<ul class="menu">\
<li><a href="#">退至【资料补录】阶段</a></li>\
<li><a href="#">退至【审批-初审】阶段</a></li>\
<li><a href="#">退至【审批-复审】阶段</a></li>\
<li><a href="#">退至【审批-终审】阶段</a></li>\
<li><a href="#">退至【尽调】阶段</a></li>\
<li><a href="#">退至【客户确认】阶段</a></li>\
<li><a href="#">退至【等待放款-移交】阶段</a></li>\
</ul>\
</li>\
<li><a href="javascript:;" onclick="cancel('+data+')">客户取消</a></li>\
<li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/'+data+'?tab=2\')">处理记录</a></li>\
</ul>\
</span>';
}
},
{data: "orderNo"},//订单编号
{data: "userName"},//申请人
{data: "idCard"},//身份证
{data: "phoneNumber"},//手机号
{data: "createTime"},//进件时间
{name: "departmentId", data: "departmentName"},//网点
{name: "productId", data: "productName"},//产品名称
{data: "applyMoney"},//申请金额
{data: "agreeMoney"},//审批金额
{name: "createUser", data: "createUserName"},//客户经理
{name: "status", data: "statusDesc"},//流程节点
{data: "modifyTime"},//流转时间
{name: "modifyUser", data: "modifyUserName"}, //处理人
]
});
</script>
<script>
function pass(id) {
layer.confirm('通过之后, 将立即进入审批阶段', {
btn: ['确认通过','取消'],
title: '确认通过预审',
icon: 3
}, function(){
layer.msg('通过');
});
}
function cancel(id) {
layer.confirm('确定取消?', {
btn: ['是','否'],
title: '确认',
icon: 3
}, function(){
var targetUrl = 'flow/cancelOrder/' + id;
$.ajax({
type: 'put',
url: apiBaseUrl + targetUrl,
cache: false,
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 () {
if(!data.code) {
table.fnDraw();
layer_close();
}
},500);
},
error: function () {
layer.alert("请求失败")
}
})
});
}
</script>
</body>
<html>