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
2cda9b38
authored
2018-04-09 20:55:54 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
复审不能发起尽调
1 parent
70b1dbf6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
158 additions
and
24 deletions
application/controllers/Work.php
application/views/work/审批/意见2.php
application/views/work/尽调报告/index.php
application/views/work/尽调报告/法人.php
application/controllers/Work.php
View file @
2cda9b3
...
...
@@ -253,7 +253,9 @@ class Work extends CI_Controller
$data
[
'getSecondCheck'
]
=
$getSecondCheck
;
$this
->
load
->
view
(
'work/审批/终审意见'
,
$data
);
}
else
{
}
elseif
(
$ret
->
orderVO
->
status
==
5
)
{
$this
->
load
->
view
(
'work/审批/意见2'
,
$data
);
}
else
{
$this
->
load
->
view
(
'work/审批/意见'
,
$data
);
}
}
...
...
application/views/work/审批/意见2.php
0 → 100644
View file @
2cda9b3
<?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"
>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-4 col-md-2"
>
<label>
拟批
</label>
<input
type=
"text"
class=
"form-control input-text"
name=
"mockMoney"
value=
""
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
<div
class=
"form-group col-sm-12"
>
<textarea
class=
"textarea"
placeholder=
""
name=
"description"
></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 orderStatus = "
<?=
$applyOrderVO
->
status
?>
";
var data = $('#form').serializeJson();
//发起尽调
if(data.dueDiligence && data.dueDiligence == '1' && false){
$.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 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>
application/views/work/尽调报告/index.php
View file @
2cda9b3
...
...
@@ -9,16 +9,6 @@
<input
type=
"hidden"
name=
"orderId"
value=
"
<?=
$id
?>
"
>
<div
class=
"tabCon"
>
<div
class=
"panel panel-default mb-20"
>
<div
class=
"panel-header"
>
尽调目的
</div>
<div
class=
"panel-body"
>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-3 col-md-2"
>
{{type.diligencePurpose}}
</div>
</div>
</div>
</div>
<?php
$this
->
load
->
view
(
'work/尽调报告/法人'
);
//打工\法人2合一?>
...
...
@@ -67,7 +57,9 @@
},
dueDiligenceVO: {
dueDiligenceAssetsLiabilitiesVO: {},
dueDiligenceBasicInformationVO: {},
dueDiligenceBasicInformationVO: {
diligencePurpose: ''
},
dueDiligenceClientCompanyAssetConditionVO: {},
dueDiligenceCompanyOperationConditionVO: {},
dueDiligenceCompanyReconnaissanceVO: {},
...
...
@@ -90,6 +82,7 @@
this.getType();
this.getCompanyNature();
this.getIndustry();
this.getFirstCheck();
},
methods: {
getOrder () {
...
...
@@ -138,10 +131,15 @@
},
getCompanyNature () {
instance.get('dueDiligence/enum/companyNature').then( ( {data} ) => {
console.log(data);
this.companyNature = data.data;
});
},
getFirstCheck () {
instance.get('flow/getFirstCheck/
<?=
$id
?>
').then( ( {data} ) => {
this.dueDiligenceVO.dueDiligenceBasicInformationVO.diligencePurpose = data.data.diligencePurpose;
});
},
submit() {
let _this = this;
layer.confirm('
确认要提交尽调?
', {
...
...
application/views/work/尽调报告/法人.php
View file @
2cda9b3
<div
class=
"panel panel-default mb-20"
>
<div
class=
"panel-header"
>
尽调目的
</div>
<div
class=
"panel-body"
>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-12"
>
{{dueDiligenceVO.dueDiligenceBasicInformationVO.diligencePurpose}}
</div>
</div>
</div>
</div>
<form
action=
""
id=
"dueDiligenceBasicInformationVO"
>
<input
type=
"hidden"
name=
"orderId"
value=
"
<?=
$id
?>
"
>
<div
class=
"panel panel-default mb-20"
>
...
...
@@ -157,18 +168,18 @@
</span>
</div>
</div>
</div>
<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"
v-model=
"dueDiligenceVO.dueDiligenceWorkConditionVO.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"
v-model=
"dueDiligenceVO.dueDiligenceWorkConditionVO.share"
>
<span
class=
"glyphicon glyphicon-percent form-control-feedback"
aria-hidden=
"true"
></span>
</div>
<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"
v-model=
"dueDiligenceVO.dueDiligenceWorkConditionVO.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"
v-model=
"dueDiligenceVO.dueDiligenceWorkConditionVO.share"
>
<span
class=
"glyphicon glyphicon-percent form-control-feedback"
aria-hidden=
"true"
></span>
</div>
</div>
...
...
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