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
cd43e20e
authored
2018-04-04 19:44:53 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
终审
1 parent
6b478bfc
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
178 additions
and
68 deletions
application/controllers/Work.php
application/libraries/DueDiligence/DueDiligence.php
application/libraries/DueDiligence/drivers/DueDiligence_enum.php
application/libraries/Flow/Flow.php
application/views/work/审批/终审意见.php
application/views/work/客户确认/客户确认.php
application/views/work/尽调报告/打工.php
application/views/work/尽调报告/法人.php
application/views/work/预审管理.php
resource/main.js
application/controllers/Work.php
View file @
cd43e20
...
...
@@ -293,6 +293,8 @@ class Work extends CI_Controller
public
function
verify
(
$id
=
null
)
{
$this
->
load
->
driver
(
'flow'
);
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'order/detail/'
.
$id
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
...
...
@@ -309,7 +311,6 @@ class Work extends CI_Controller
$result2
=
file_get_contents
(
$url2
);
$json2
=
json_decode
(
$result2
);
$ret2
=
$json2
->
data
;
var_dump
(
$ret
,
$ret2
);
$data
=
array
(
'clientInfoOutputVO'
=>
$ret
->
clientInfoOutputVO
,
...
...
@@ -317,8 +318,10 @@ class Work extends CI_Controller
'clientContactOutputVOS'
=>
$ret
->
clientContactOutputVOS
,
'applyOrderVO'
=>
$ret
->
orderVO
,
'plan'
=>
$ret2
,
'id'
=>
$id
'id'
=>
$id
,
'getLastCheck'
=>
$this
->
flow
->
getLastCheck
(
$id
),
);
$this
->
load
->
view
(
'work/客户确认/客户确认'
,
$data
);
}
...
...
@@ -430,6 +433,8 @@ class Work extends CI_Controller
public
function
inquiry
(
$id
)
{
$this
->
load
->
driver
(
'DueDiligence'
);
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'order/detail/'
.
$id
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
...
...
@@ -446,7 +451,10 @@ class Work extends CI_Controller
'clientUnitOutputVO'
=>
$ret
->
clientUnitOutputVO
,
'clientContactOutputVOS'
=>
$ret
->
clientContactOutputVOS
,
'applyOrderVO'
=>
$ret
->
orderVO
,
'id'
=>
$id
'id'
=>
$id
,
'industry'
=>
$this
->
duediligence
->
enum
->
industry
(),
'companyNature'
=>
$this
->
duediligence
->
enum
->
companyNature
(),
);
$this
->
load
->
view
(
'/work/尽调报告/index'
,
$data
);
...
...
application/libraries/DueDiligence/DueDiligence.php
0 → 100644
View file @
cd43e20
<?php
class
DueDiligence
extends
CI_Driver_Library
{
public
function
__construct
()
{
$this
->
valid_drivers
=
[
'enum'
];
}
}
application/libraries/DueDiligence/drivers/DueDiligence_enum.php
0 → 100644
View file @
cd43e20
<?php
class
DueDiligence_enum
extends
CI_Driver
{
public
$CI
;
public
function
__construct
()
{
$this
->
CI
=
&
get_instance
();
}
public
function
industry
()
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'dueDiligence/enum/industry'
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
return
$ret
;
}
public
function
companyNature
()
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'dueDiligence/enum/companyNature'
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
return
$ret
;
}
}
application/libraries/Flow/Flow.php
0 → 100644
View file @
cd43e20
<?php
class
Flow
extends
CI_Driver_Library
{
public
$ci
;
public
function
__construct
()
{
$this
->
valid_drivers
=
[];
$this
->
ci
=
&
get_instance
();
}
public
function
getLastCheck
(
$id
)
{
$url
=
$this
->
ci
->
config
->
item
(
'apiBaseUrl'
)
.
'flow/getLastCheck/'
.
$id
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
return
$ret
;
}
}
application/views/work/审批/终审意见.php
View file @
cd43e20
...
...
@@ -78,37 +78,39 @@
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
核批金额
</label>
<input
type=
"text"
class=
"form-control input-text"
name=
"agreeMoney"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
name=
"agreeMoney"
value=
""
onchange=
"cal()"
>
<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"
name=
"deadLine"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
name=
"deadLine"
value=
""
onchange=
"cal()"
>
<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"
name=
"annualInterestRate"
value=
""
>
<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"
name=
"repayMonth"
value=
""
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
贷款产品
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
name=
"productId"
>
<option
value=
""
>
贷款
产品
</option>
<select
class=
"select"
size=
"1"
name=
"productId"
onchange=
"product(this)"
>
<option
value=
""
>
选择
产品
</option>
<?php
foreach
(
$this
->
session
->
products
as
$k
=>
$v
)
:
?>
<option
<?=
$applyOrderVO
->
productId
==
$v
->
id
?
'selected'
:
''
?>
value=
"
<?=
$v
->
id
?>
"
>
<?=
$v
->
productName
?>
</option>
<option
<?=
$applyOrderVO
->
productId
==
$v
->
id
?
'selected'
:
''
?>
value=
"
<?=
$v
->
id
?>
"
data-annual-interest-rate=
<?=
$v
->
annualInterestRate
?>
>
<?=
$v
->
productName
?>
</option
>
<?php
endforeach
;
?>
</select>
</span>
</div>
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
年化利率
</label>
<input
type=
"text"
class=
"form-control input-text"
name=
"annualInterestRate"
value=
"
<?=
$applyOrderVO
->
annualInterestRate
?>
"
disabled
id=
"annualInterestRate"
>
<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"
name=
"repayMonth"
value=
""
disabled
id=
"repayMonth"
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-12 col-md-12"
>
...
...
@@ -133,6 +135,45 @@
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
function product (e) {
$('#annualInterestRate').val($(e).find(':selected').data('annual-interest-rate'));
cal();
}
function cal() {
const productId = $('[name="productId"]').val();
const loanDeadline = $('[name="deadLine"]').val();
const borrowAmount = $('[name="agreeMoney"]').val();
if(!productId || !loanDeadline || !borrowAmount) {
return;
}
const url = '/application/tool/interest?borrowAmount='+borrowAmount+'&productId='+productId+'&loanDeadline='+loanDeadline;
$.ajax({
type: 'get',
url: apiBaseUrl + url,
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 {
console.log(data);
$('#repayMonth').val(data.data.repayPlans[0].totalAmount);
}
},
error:function(){
layer.alert("计算失败")
}
})
}
cal();
function next() {
layer.confirm('确认通过', {
btn: ['确认', '取消'],
...
...
@@ -150,7 +191,9 @@
} else if (orderStatus == 6) {
url = 'flow/saveLastCheck';
}
data.annualInterestRate = parseFloat(data.annualInterestRate) /100;
data.annualInterestRate = parseFloat(data.annualInterestRate);
$.ajax({
type: 'post',
url: apiBaseUrl + url,
...
...
application/views/work/客户确认/客户确认.php
View file @
cd43e20
...
...
@@ -27,17 +27,17 @@
<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
->
agreeMoney
:
''
?>
"
disabled
>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$
getLastCheck
->
agreeMoney
?>
"
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
>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$
getLastCheck
->
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
>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$
getLastCheck
->
annualInterestRate
?>
"
disabled
>
<span
class=
"glyphicon form-control-feedback"
>
%
</span>
</div>
<div
class=
"form-group col-sm-4 col-md-2"
>
...
...
application/views/work/尽调报告/打工.php
View file @
cd43e20
...
...
@@ -110,7 +110,7 @@
<div
class=
"form-group col-sm-4 col-md-2"
>
<label>
提供公司地址是否属实
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<select
class=
"select"
size=
"1"
name=
"companyAddressHasReal"
>
<option>
是否真实
</option>
<option
value=
"1"
>
真实
</option>
<option
value=
"2"
>
不真实
</option>
...
...
@@ -122,18 +122,17 @@
<div
class=
"row cl"
>
<div
class=
"form-group has-feedback col-sm-3 col-md-2"
>
<label>
工作/经营时间
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"workingTime"
>
<span
class=
"glyphicon glyphicon-month form-control-feedback"
aria-hidden=
"true"
></span>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
所属行业
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<option
value=
""
>
请选择
</option>
<option
value=
""
>
制造业
</option>
<option
value=
""
>
销售业
</option>
<option
value=
""
>
服务业
</option>
<option
value=
""
>
其他
</option>
<select
class=
"select"
size=
"1"
name=
"industry"
>
<option></option>
<?php
foreach
(
$industry
as
$k
=>
$v
)
:
?>
<option
value=
"
<?=
$k
?>
"
>
<?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
...
...
application/views/work/尽调报告/法人.php
View file @
cd43e20
...
...
@@ -130,10 +130,9 @@
<span
class=
"form-control select-box"
>
<select
class=
"select"
name=
"industry"
size=
"1"
>
<option
value=
""
>
请选择
</option>
<option
value=
"0"
>
制造业
</option>
<option
value=
"1"
>
销售业
</option>
<option
value=
"2"
>
服务业
</option>
<option
value=
"3"
>
其他
</option>
<?php
foreach
(
$industry
as
$k
=>
$v
)
:
?>
<option
value=
"
<?=
$k
?>
"
>
<?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
...
...
@@ -148,12 +147,11 @@
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
公司性质
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<select
class=
"select"
size=
"1"
name=
"companyNature"
>
<option
value=
""
>
请选择
</option>
<option
value=
"0"
>
制造业
</option>
<option
value=
"1"
>
销售业
</option>
<option
value=
"2"
>
服务业
</option>
<option
value=
"3"
>
其他
</option>
<?php
foreach
(
$companyNature
as
$k
=>
$v
)
:
?>
<option
value=
"
<?=
$k
?>
"
>
<?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
...
...
@@ -162,12 +160,12 @@
<div
class=
"row cl"
>
<div
class=
"form-group has-feedback col-sm-3 col-md-2"
>
<label>
借款人从业时间
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"workingSeniority"
>
<span
class=
"glyphicon glyphicon-year form-control-feedback"
aria-hidden=
"true"
></span>
</div>
<div
class=
"form-group has-feedback col-sm-3 col-md-2"
>
<label>
在公司所占股份
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"share"
>
<span
class=
"glyphicon glyphicon-percent form-control-feedback"
aria-hidden=
"true"
></span>
</div>
</div>
...
...
@@ -262,37 +260,38 @@
</div>
</div>
</div>
</form>
<form
action=
""
id=
"dueDiligenceAssetsLiabilitiesVO"
>
<div
class=
"panel panel-default mb-20"
>
<div
class=
"panel-header"
>
资产负责及其他信息情况
</div>
<div
class=
"panel-body"
>
<div
class=
"row cl"
>
<div
class=
"form-group has-feedback col-sm-3 col-md-2"
>
<label>
名下房产套数
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"houseNumber"
>
<span
class=
"glyphicon form-control-feedback"
aria-hidden=
"true"
>
套
</span>
</div>
<div
class=
"form-group has-feedback col-sm-3 col-md-2"
>
<label>
名下车辆
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"carNumber"
>
<span
class=
"glyphicon form-control-feedback"
aria-hidden=
"true"
>
部
</span>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
车辆型号
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"carBrand"
>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group has-feedback col-sm-3 col-md-1"
>
<label>
未结清贷款
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"loanNumber"
>
<span
class=
"glyphicon form-control-feedback"
aria-hidden=
"true"
>
笔
</span>
</div>
<div
class=
"form-group has-feedback col-sm-3 col-md-1"
>
<label>
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"loanAmount"
>
<span
class=
"glyphicon form-control-feedback"
aria-hidden=
"true"
>
元
</span>
</div>
</div>
...
...
@@ -301,31 +300,32 @@
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
民间贷款
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<select
class=
"select"
size=
"1"
name=
"folkLoan"
>
<option
value=
""
>
有
</option>
<option
value=
""
>
无
</option>
</select>
</span>
</div>
<div
class=
"form-group
has-feedback col-sm-3 col-md-1
"
>
<label>
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<span
class=
"glyphicon form-control-feedback"
aria-hidden=
"true"
>
元
</span>
<div
class=
"form-group
col-sm-3 col-md-3
"
>
<label>
民间贷款笔数
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"folkLoanNumber"
>
<span
class=
"glyphicon form-control-feedback"
aria-hidden=
"true"
>
笔
</span>
</div>
<div
class=
"form-group col-sm-4 col-md-3"
>
<label>
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
placeholder=
"备注"
>
<div
class=
"form-group col-sm-3 col-md-1"
>
<label>
民间贷款金额
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"folkLoanAmount"
>
<span
class=
"glyphicon form-control-feedback"
aria-hidden=
"true"
>
元
</span>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-6 col-md-4"
>
<label>
家庭第一收入来源
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"familyFirstIncome"
>
</div>
<div
class=
"form-group col-sm-6 col-md-4"
>
<label>
家庭第二收入来源
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
name=
"familySecondIncome"
>
</div>
</div>
...
...
@@ -333,15 +333,15 @@
<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=
""
>
无
</option>
<option
value=
""
>
有
</option>
<select
class=
"select"
size=
"1"
name=
"negativeInformation"
>
<option
value=
"
0
"
>
无
</option>
<option
value=
"
1
"
>
有
</option>
</select>
</span>
</div>
<div
class=
"form-group col-sm-6 col-md-3"
>
<label>
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
placeholder=
"备注"
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
placeholder=
"备注"
name=
"negativeInformationRemark"
>
</div>
</div>
...
...
@@ -587,9 +587,10 @@
</div>
</div>
</form>
<div
class=
"panel panel-default mb-20"
>
<div
class=
"panel panel-default mb-20"
>
<div
class=
"panel-header"
>
住址考察
</div>
<div
class=
"panel-body"
>
<div
class=
"row cl"
>
<div
class=
"form-group has-feedback col-sm-3 col-md-1"
>
<label>
公司经营项目
</label>
...
...
@@ -659,7 +660,7 @@
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
</div>
</div>
</div>
</div>
<form
id=
"dueDiligenceSurveyAddressVO"
>
...
...
@@ -786,5 +787,3 @@
</div>
</div>
</form>
...
...
application/views/work/预审管理.php
View file @
cd43e20
...
...
@@ -131,12 +131,12 @@
layer
.
prompt
({
title
:
'一旦拒绝, 该笔借款将作废, 进入【审批拒绝】列表!'
,
formType
:
0
},
function
(
reason
,
index
)
{
layer
.
close
(
index
);
var
data
=
{
"destOrderStatus"
:
11
,
"opinion"
:
reason
,
"orderStatus"
:
1
}
ajax
(
'flow/refuseStatus/12'
,
'put'
,
data
);
ajax
(
'flow/refuseStatus/'
+
id
,
'put'
,
data
,
'操作成功'
,
function
()
{
reload
();
});
});
}
</script>
...
...
resource/main.js
View file @
cd43e20
...
...
@@ -40,3 +40,10 @@ function phone (e) {
$
(
e
).
val
(
''
).
focus
();
}
}
$
(
'[name="deadLine"]'
).
on
(
'change'
,
function
()
{
if
(
$
(
this
).
val
()
%
6
)
{
layer
.
alert
(
'期数只能是6的倍数'
);
$
(
this
).
val
(
''
);
}
})
...
...
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