电核.php
10.9 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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<?php $this->load->view('common/header'); ?>
<body>
<div class="cl pd-5 bg-1">
<span class="l">
<button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('work/check/6/'.$id)?>', '录入信用报告');">录入信用报告</button>
<button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('work/check/7/'.$id)?>', '网查筛查');">网查筛查</button>
<button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('work/check/8/'.$id)?>', '电核');">电核</button>
<button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('work/check/9/'.$id)?>', '受理意见');">受理意见</button>
</span>
</div>
<div id="tab" class="HuiTab">
<div class="tabBar clearfix" style="background-color:#e8e8e8">
<span>电核结果</span>
<span>电核记录</span>
</div>
<div class="tabCon">
<form action="" id="form1">
<input type="hidden" name="orderId" value="<?=$id?>">
<?php $this->load->view('/work/审批/电核结果'); ?>
</form>
</div>
<?php $record = api('/audit/phoneAudit/record/'.$id); ?>
<div class="tabCon pb-20">
<div class="cl pd-5 bg-1">
<span class="r">
<button class="btn btn-primary radius" onclick="add()">
<i class="Hui-iconfont"></i> 添加
</button>
</span>
</div>
<table class="table table-border table-bordered table-bg">
<thead class="text-c">
<tr>
<th>ID</th>
<th>电核时间</th>
<th>是否拨通</th>
<th>电核人</th>
<th>备注</th>
<!-- <th width="70px">操作</th>-->
</tr>
</thead>
<tbody class="text-c">
<tr v-for="record in records">
<td>{{record.id}}</td>
<td>{{record.phoneAuditTime | formatDate}}</td>
<td>{{record.hasPutThrough}}</td>
<td>{{record.phoneAuditEmployee}}</td>
<td>{{record.remark}}</td>
</tr>
</tbody>
</table>
</div>
<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" @click="submit()">通过</button>
</div>
</div>
</div>
<?php $this->load->view('common/footer'); ?>
<script>
var vm = new Vue({
el: '#tab',
data: {
phoneAudit: {
"accountAddress":"",
"applyAmount":0,
"buildingArea":0,
"chineseZodiac":"",
"companyName":"",
"companyPhoneNumber":"",
"constructionTime":"",
"contacts":[
{},
{},
{},
],
"creditCardMonthRepayAmount":0,
"currentCompanyAddress":"",
"currentCompanyEntryTime":"",
"decorationCost":0,
"familyMembers":[
{},
{},
{},
],
"familySituationIsReal":0,
"financialInstitutions":[
{},
{},
{},
],
"hasProvidentFund":0,
"hasSocialInsurance":0,
"housingValuation":0,
"id":0,
"idCard":"",
"identityInformationOptions":0,
"identityInformationRemark":"",
"incomeCertifies":"",
"incomeCertifiesJobTitle":"",
"jianAnValuation":0,
"jobTitle":"",
"liveYears":0,
"livingCondition":0,
"loanMonthRepayAmount":0,
"loanPeriod":0,
"loanUse":"",
"maritalRemark":"",
"maritalStatus":0,
"monthlyIncome":0,
"name":"",
"nowAddress":"",
"operateInformationOptions":0,
"operateInformationRemark":"",
"orderId":0,
"otherAssets":"",
"otherAssetsDetail":"",
"otherAssetsValuation":0,
"overdueReasons":"",
"permanentPopulation":0,
"populationComposition":"",
"providentFundAmount":0,
"realEstateAmount":0,
"salaryPaymentForm":0,
"socialInsuranceAmount":0,
"totalAssetsAmount":0,
"totalCreditLiabilityAmount":0,
"totalNoneCreditLiabilityAmount":0,
"vehicleBrands":"string",
"vehicleNumber":0,
"vehicleValuation":0,
"whetherLongResidence":0,
"workingYears":0
},
records: {},
use: {},
marry: {},
nature: {},
relation: {},
dwell: {},
wagePaymentForm: {},
},
mounted () {
this.getRecords();
this.getEnum();
},
methods: {
getRecords () {
instance.get('/audit/phoneAudit/record/<?=$id?>').then( ( {data} ) => {
this.records = data.data.reverse();
});
},
getEnum () {
instance.get('dueDiligence/enum/loanPurpose').then( ( {data} ) => {
this.use = data.data;
});
instance.get('/enum/loan/nature').then( ( {data} ) => {
this.nature = data.data;
});
instance.get('client/enum/marry').then( ( {data} ) => {
this.marry = data.data;
});
instance.get('client/enum/contact/relation').then( ( {data} ) => {
this.relation = data.data;
});
instance.get('client/enum/dwell').then( ( {data} ) => {
this.dwell = data.data;
});
instance.get('client/enum/wagePaymentForm').then( ( {data} ) => {
this.wagePaymentForm = data.data;
});
},
addFamilyMembers () {
this.phoneAudit.familyMembers.push({});
},
addContacts () {
this.phoneAudit.contacts.push({});
},
addFinancialInstitution () {
this.phoneAudit.financialInstitutions.push({});
},
getPhoneAudit: function () {
instance.get('/audit/phoneAudit/<?=$id?>').then( ( {data} ) => {
if(data.data) {
this.phoneAudit = data.data;
}
});
},
submit () {
var data = this.phoneAudit;
var url = '<?=site_url('/work/check/9/' . $id);?>';
$.ajax({
type: 'post',
url: apiBaseUrl + 'audit/phoneAudit',
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('操作成功');
}
if(!data.code){
setTimeout(function () {
loadIframe(url, '审核意见');
}, 500)
}
},
error: function () {
layer.alert("操作失败")
}
})
}
},
watch: {
'phoneAudit.idCard' (idCard) {
if(idCard.length >= 10) {
var yyyy = idCard.substring(6, 10)
var arr=['猴','鸡','狗','猪','鼠','牛','虎','兔','龙','蛇','马','羊'];
this.phoneAudit.chineseZodiac = /^\d{4}$/.test(yyyy)?arr[yyyy%12]:null;
} else {
this.phoneAudit.chineseZodiac = '';
}
}
// shengxiao(idCard){
// substring
// var arr=['猴','鸡','狗','猪','鼠','牛','虎','兔','龙','蛇','马','羊'];
// return /^\d{4}$/.test(yyyy)?arr[yyyy%12]:null;
// }
}
});
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
var index = getQueryString('tab');
$("#tab").Huitab({index: index});
function add() {
layer.open({
type: 2,
title: '电核记录',
shadeClose: true,
area: ['800px', '400px'],
content: '<?=site_url('work/telAdd/'.$id)?>'
});
}
function refuse() {
layer.open({
type: 2,
title: '电核记录',
shadeClose: true,
area: ['800px', '400px'],
content: '<?=site_url('work/telRefuse')?>'
});
}
</script>
</body>
</html>