Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
29c9cb1e
authored
2018-03-31 12:35:32 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
431441cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
218 additions
and
3 deletions
application/controllers/Work.php
application/views/work/审批/终审意见.php
application/controllers/Work.php
View file @
29c9cb1
...
...
@@ -208,7 +208,6 @@ class Work extends CI_Controller
'dueDiligence'
=>
$dueDiligence
//尽调报告
);
// array_merge($data, $dueDiligence);
}
switch
(
$state
)
{
...
...
@@ -231,8 +230,24 @@ class Work extends CI_Controller
if
(
$ret
->
applyOrderVO
->
status
==
4
){
$this
->
load
->
view
(
'work/审批/录入信用报告'
,
$data
);
}
else
{
var_dump
(
$ret
->
applyOrderVO
->
status
);
$this
->
load
->
view
(
'work/审批/意见'
,
$data
);
if
(
$ret
->
applyOrderVO
->
status
==
6
){
//查询初审结果,复审结果
$getFirstCheckUrl
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'flow/getFirstCheck/'
.
$id
;
$getFirstCheckResult
=
file_get_contents
(
$getFirstCheckUrl
);
$getFirstCheckResult
=
json_decode
(
$getFirstCheckResult
);
$getFirstCheck
=
$getFirstCheckResult
->
data
;
$data
[
'getFirstCheck'
]
=
$getFirstCheck
;
//查询初审结果,复审结果
$getSecondCheckUrl
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'flow/getSecoundCheck/'
.
$id
;
$getSecondCheckResult
=
file_get_contents
(
$getSecondCheckUrl
);
$getSecondCheckResult
=
json_decode
(
$getSecondCheckResult
);
$getSecondCheck
=
$getSecondCheckResult
->
data
;
$data
[
'getSecoundCheck'
]
=
$getSecondCheck
;
$this
->
load
->
view
(
'work/审批/终审意见'
,
$data
);
}
else
{
$this
->
load
->
view
(
'work/审批/意见'
,
$data
);
}
}
break
;
case
7
:
...
...
application/views/work/审批/终审意见.php
0 → 100644
View file @
29c9cb1
<?php
$this
->
load
->
view
(
'common/header'
);
?>
<body>
<div
class=
"cl pd-5 bg-1"
>
<span
class=
"l"
>
<?php
if
(
$applyOrderVO
->
status
==
4
)
:
?>
<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>
<?php
endif
;
?>
<button
class=
"btn btn-primary radius"
onclick=
"loadIframe('
<?=
site_url
(
'work/check/9/'
.
$id
)
?>
', '受理意见');"
>
受理意见
</button>
</span>
</div>
<form
action=
""
id=
"form"
>
<div
class=
"panel panel-default mb-20"
>
<div
class=
"panel-header"
>
初审意见
</div>
<div
class=
"panel-body cl"
>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
拟批
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$getFirstCheck
?
$getFirstCheck
->
mockMoney
:
''
?>
"
disabled
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-12 col-md-12"
>
<label>
拟批备注
</label>
<textarea
class=
"textarea"
disabled
>
<?=
$getFirstCheck
?
$getFirstCheck
->
description
:
''
?>
</textarea>
</div>
</div>
</div>
</div>
<div
class=
"panel panel-default mb-20"
>
<div
class=
"panel-header"
>
复审意见
</div>
<div
class=
"panel-body cl"
>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
拟批
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$getSecondCheck
?
$getSecondCheck
->
mockMoney
:
''
?>
"
disabled
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-12 col-md-12"
>
<label>
拟批备注
</label>
<textarea
class=
"textarea"
disabled
>
<?=
$getSecondCheck
?
$getSecondCheck
->
mockMoney
:
''
?>
</textarea>
</div>
</div>
</div>
</div>
<div
class=
"panel panel-default mb-20"
>
<div
class=
"panel-header"
>
终审意见
</div>
<div
class=
"panel-body cl"
>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
审核结果
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<option
value=
"1"
>
通过
</option>
<option
value=
"0"
>
不通过
</option>
</select>
</span>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
核批金额
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
借款期限
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<span
class=
"glyphicon form-control-feedback"
>
期
</span>
</div>
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
借款利率
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
</div>
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
每月还款金额
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
贷款产品
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<option
value=
"1"
>
XXXX
</option>
<option
value=
"2"
>
XXXX
</option>
</select>
</span>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-12 col-md-12"
>
<label>
审批意见
</label>
<textarea
class=
"textarea"
></textarea>
</div>
</div>
</div>
</div>
<input
type=
"hidden"
name=
"orderId"
value=
"
<?=
$id
?>
"
>
</form>
<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"
onclick=
"history.back()"
>
退回订单
</button>
</div>
<div
class=
"col-sm-2"
>
<button
class=
"btn btn-primary btn-block"
onclick=
"next()"
>
通过
</button>
</div>
</div>
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
function next () {
layer.confirm('确认通过', {
btn: ['确认','取消'],
title: '通过',
icon: 3
}, function(){
var data = $('#form').serializeJson();
//发起尽调
if(data.dueDiligence && data.dueDiligence == '1'){
$.ajax({
type: 'post',
url: apiBaseUrl + 'flow/firstDueDiligence',
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.success){
setTimeout(function () {
loadIframe('
<?=
site_url
(
'/work/check/12/'
.
$id
);
?>
', '审核意见');
}, 500)
}
},
error: function () {
layer.alert("操作失败")
}
})
}else{
data.status = 1;
var orderStatus = "
<?=
$applyOrderVO
->
status
?>
";
var url = 'flow/saveFirstCheck';
if(orderStatus == 4) {
url = url;
} else if(orderStatus == 5) {
url = 'flow/saveSecoundCheck';
} else if(orderStatus == 6) {
url = 'flow/saveLastCheck';
}
$.ajax({
type: 'post',
url: apiBaseUrl + url,
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('
<?=
site_url
(
'/work/check/12/'
.
$id
);
?>
', '
审核意见'
);
},
500
)
}
},
error
:
function
()
{
layer
.
alert
(
"操作失败"
)
}
})
}
});
}
</script>
</body>
</html>
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment