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
639f19cd
authored
2018-04-04 23:28:19 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
图片
1 parent
6dfe3907
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
111 additions
and
47 deletions
application/controllers/Work.php
application/helpers/activate_helper.php
application/libraries/Order/drivers/Order_ordersource.php
application/views/work/图片上传.php
application/views/work/审批/信用报告.php
application/views/work/审批/录入信用报告.php
application/views/work/审批/网查筛选.php
application/views/work/客户确认/客户确认.php
application/views/work/尽调报告/index.php
application/views/work/尽调管理.php
application/views/work/确认放款.php
application/views/work/等待放款.php
application/views/work/资料/资料补录.php
resource/upload.js
application/controllers/Work.php
View file @
639f19c
...
...
@@ -132,6 +132,8 @@ class Work extends CI_Controller
*/
public
function
record
(
$id
=
null
)
{
$this
->
load
->
driver
(
'Order'
);
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'order/detail/'
.
$id
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
...
...
@@ -154,7 +156,8 @@ class Work extends CI_Controller
'clientContactOutputVOS'
=>
$ret
->
clientContactOutputVOS
,
'applyOrderVO'
=>
$ret
->
orderVO
,
'operatorRecord'
=>
$ret2
,
'id'
=>
$id
'id'
=>
$id
,
'baseType'
=>
$this
->
order
->
ordersource
->
baseType
(),
);
$this
->
load
->
view
(
'work/资料/资料补录'
,
$data
);
...
...
@@ -255,6 +258,7 @@ class Work extends CI_Controller
}
break
;
case
7
:
$data
[
'firstCheck'
]
=
api
(
'order/ordersource/firstCheck'
);
$this
->
load
->
view
(
'work/审批/网查筛选'
,
$data
);
break
;
case
8
:
...
...
@@ -294,6 +298,7 @@ class Work extends CI_Controller
public
function
verify
(
$id
=
null
)
{
$this
->
load
->
driver
(
'flow'
);
$this
->
load
->
driver
(
'order'
);
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'order/detail/'
.
$id
;
$result
=
file_get_contents
(
$url
);
...
...
@@ -320,6 +325,7 @@ class Work extends CI_Controller
'plan'
=>
$ret2
,
'id'
=>
$id
,
'getLastCheck'
=>
$this
->
flow
->
getLastCheck
(
$id
),
'confirmType'
=>
$this
->
order
->
ordersource
->
confirmType
(),
);
$this
->
load
->
view
(
'work/客户确认/客户确认'
,
$data
);
...
...
@@ -434,6 +440,7 @@ class Work extends CI_Controller
public
function
inquiry
(
$id
)
{
$this
->
load
->
driver
(
'DueDiligence'
);
$this
->
load
->
driver
(
'Order'
);
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'order/detail/'
.
$id
;
$result
=
file_get_contents
(
$url
);
...
...
@@ -455,6 +462,7 @@ class Work extends CI_Controller
'industry'
=>
$this
->
duediligence
->
enum
->
industry
(),
'companyNature'
=>
$this
->
duediligence
->
enum
->
companyNature
(),
'dueDiligenceType'
=>
$this
->
order
->
ordersource
->
dueDiligenceType
(),
);
$this
->
load
->
view
(
'/work/尽调报告/index'
,
$data
);
...
...
application/helpers/activate_helper.php
View file @
639f19c
...
...
@@ -7,3 +7,15 @@ if(!function_exists('activate')) {
return
uri_string
()
==
$url
;
}
}
if
(
!
function_exists
(
'api'
))
{
function
api
(
$url
)
{
$CI
=
&
get_instance
();
$url
=
$CI
->
config
->
item
(
'apiBaseUrl'
)
.
$url
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
return
$ret
;
}
}
...
...
application/libraries/Order/drivers/Order_ordersource.php
View file @
639f19c
...
...
@@ -16,4 +16,31 @@ class Order_ordersource extends CI_Driver
return
$ret
;
}
public
function
dueDiligenceType
()
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'order/ordersource/dueDiligenceType'
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
return
$ret
;
}
public
function
baseType
()
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'order/ordersource/baseType'
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
return
$ret
;
}
public
function
confirmType
()
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'order/ordersource/confirmType'
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
return
$ret
;
}
}
...
...
application/views/work/图片上传.php
View file @
639f19c
...
...
@@ -7,10 +7,10 @@
<label>
资料上传
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select uploader"
size=
"1"
id=
"upload"
>
<?php
foreach
(
$t
his
->
session
->
sourceBaseT
ype
as
$k
=>
$v
)
:?>
<?php
foreach
(
$type
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$v->code
?>"
data
-
name
=
"<?=
$v->desc
?>"
><?=
$v
->
desc
?>
</option>
<?php
if
(
$v
->
children
&&
!
empty
(
$v
->
children
))
:?>
<?
php
foreach
(
$
this
->
session
->
sourceBaseType
as
$kk
=>
$vv
)
:?>
<?
php
foreach
(
$
v
->
children
as
$kk
=>
$vv
)
:?>
<
option
value
=
"<?=
$vv->code
?>"
data
-
name
=
"<?=
$v->desc
.'-'.
$vv->desc
?>"
>&
nbsp
;
&
nbsp
;
--<?=
$vv
->
desc
?>
</option>
<?php
endforeach
;
?>
<?php
endif
;
?>
...
...
@@ -21,7 +21,7 @@
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
</label>
<div>
<label
class=
"filePicker"
>
选择图片
</label>
<label
class=
"filePicker"
url=
"
<?=
$url
?>
"
>
选择图片
</label>
</div>
</div>
</div>
...
...
application/views/work/审批/信用报告.php
View file @
639f19c
application/views/work/审批/录入信用报告.php
View file @
639f19c
...
...
@@ -29,15 +29,37 @@
<button
class=
"btn btn-danger btn-block"
onclick=
"refuse()"
>
拒绝
</button>
</div>
<div
class=
"col-sm-2"
>
<button
class=
"btn btn-primary btn-block"
onclick=
"pass()"
>
通过
</button>
<button
class=
"btn btn-primary btn-block"
onclick=
"save()"
>
保存
</button>
</div>
</div>
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
// $('[name="hasBankBlacklist"], [name="hasTradeInto"], [name="hasCreditTypeException"]').on('change', function () {
// let pass = true;
// $('[name="hasBankBlacklist"], [name="hasTradeInto"], [name="hasCreditTypeException"]').each(function () {
// if($(this).val() != 1) {
// pass = false;
// }
// });
//
// if(pass) {
// $('#pass').attr('disabled', false);
// $('#pass').removeClass('btn-default').addClass('btn-primary');
// } else {
// $('#pass').attr('disabled', true);
// $('#pass').removeClass('btn-primary').addClass('btn-default');
// }
// })
//
// function btnPass(e) {
// if($(e).val())
//
// $('#pass').removeClass('btn-default').addClass('btn-primary');
// $('#pass').removeClass('btn-primary').addClass('btn-default');
// }
function refuse() {
layer.open({
type: 2,
...
...
@@ -48,7 +70,7 @@
});
}
function
pass
() {
function
save
() {
var data = $("#form1").serializeJson();
var url = '
<?=
site_url
(
'/work/check/7/'
.
$id
);
?>
';
$.ajax({
...
...
application/views/work/审批/网查筛选.php
View file @
639f19c
...
...
@@ -13,7 +13,7 @@
</span>
</div>
<?php
$this
->
load
->
view
(
'work/图片上传'
);
?>
<?php
$this
->
load
->
view
(
'work/图片上传'
,
[
'url'
=>
'order/ordersource/firstcheck/'
,
'type'
=>
$firstCheck
]
);
?>
<div
class=
"panel panel-default mb-20"
>
<div
class=
"panel-body"
>
...
...
@@ -51,6 +51,8 @@
<script
src=
"https://cdn.bootcss.com/holder/2.9.4/holder.min.js"
></script>
<script>
uploadList();
function refuse() {
layer.open({
type: 2,
...
...
application/views/work/客户确认/客户确认.php
View file @
639f19c
...
...
@@ -73,7 +73,7 @@
</table>
</div>
</div>
<?php
$this
->
load
->
view
(
'work/图片上传'
)
?>
<?php
$this
->
load
->
view
(
'work/图片上传'
,
[
'url'
=>
'order/ordersource/confirm/'
,
'type'
=>
$confirmType
]
)
?>
</div>
<div
class=
"row cl pb-20 col-sm-12"
>
...
...
@@ -88,6 +88,8 @@
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
uploadList();
function verify() {
layer.confirm('通过之后, 将立即进入放款阶段', {
btn: ['确认','取消'],
...
...
application/views/work/尽调报告/index.php
View file @
639f19c
...
...
@@ -19,7 +19,7 @@
</div>
<div
class=
"tabCon"
>
<?php
$this
->
load
->
view
(
'work/图片上传'
);
?>
<?php
$this
->
load
->
view
(
'work/图片上传'
,
[
'url'
=>
'/order/ordersource/duediligence/'
,
'type'
=>
$dueDiligenceType
])
?>
</div>
</div>
...
...
@@ -29,7 +29,7 @@
<button
class=
"btn btn-warning btn-block"
>
退回订单
</button>
</div>
<div
class=
"col-sm-2"
>
<button
class=
"btn btn-primary btn-block"
onclick=
"submit()"
>
提交尽调
</button>
<button
class=
"btn btn-primary btn-block"
onclick=
"submit()"
>
保存
</button>
</div>
</div>
...
...
application/views/work/尽调管理.php
View file @
639f19c
...
...
@@ -49,20 +49,6 @@
},
{
data
:
"id"
,
render
:
function
(
data
,
type
,
full
)
{
/*<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>*/
var
subMenu
=
''
;
$
(
'[name=status]'
).
find
(
'option'
).
each
(
function
()
{
if
(
!
$
(
this
).
val
())
{
return
;
}
subMenu
+=
'<li><a href="javascript:;" onclick="rollback('
+
data
+
','
+
$
(
this
).
val
()
+
','
+
full
.
status
+
')">退至 '
+
$
(
this
).
text
()
+
'阶段</a></li>'
;
});
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">\
...
...
@@ -71,7 +57,13 @@
<li><a href="javascript:;" onclick="rollback('
+
data
+
')">驳回</a></li>\
<li>\
<a href="#">退回订单<i class="arrow Hui-iconfont"></i></a>\
<ul class="menu">'
+
subMenu
+
'\
<ul class="menu">\
<li><a href="javascript:;" onclick="rollback(2,2,4)">退至 待补录阶段</a></li>\
<li class=""><a href="javascript:;" onclick="rollback(2,4,4)">退至 待初审阶段</a></li>\
<li class=""><a href="javascript:;" onclick="rollback(2,5,4)">退至 待复审阶段</a></li>\
<li><a href="javascript:;" onclick="rollback(2,6,4)">退至 待终审阶段</a></li>\
<li><a href="javascript:;" onclick="rollback(2,8,4)">退至 待客户确认阶段</a></li>\
<li><a href="javascript:;" onclick="rollback(2,10,4)">退至 待确认放款阶段</a></li>\
</ul>\
</li>\
<li><a href="javascript:;" onclick="cancel('
+
data
+
')">客户取消</a></li>\
...
...
application/views/work/确认放款.php
View file @
639f19c
...
...
@@ -50,13 +50,6 @@
},
{
data
:
"id"
,
render
:
function
(
data
,
type
,
full
)
{
var
subMenu
=
''
;
$
(
'[name=status]'
).
find
(
'option'
).
each
(
function
()
{
if
(
!
$
(
this
).
val
())
{
return
;
}
subMenu
+=
'<li><a href="javascript:;" onclick="rollback('
+
data
+
','
+
$
(
this
).
val
()
+
','
+
full
.
status
+
')">退至 '
+
$
(
this
).
text
()
+
'阶段</a></li>'
;
});
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">\
...
...
@@ -64,7 +57,13 @@
<li><a href="javascript:;" onclick="loan('
+
data
+
')">线下已放款</a></li>\
<li>\
<a href="#">退回订单<i class="arrow Hui-iconfont"></i></a>\
<ul class="menu">'
+
subMenu
+
'\
<ul class="menu">\
<li><a href="javascript:;" onclick="rollback(2,2,4)">退至 待补录阶段</a></li>\
<li class=""><a href="javascript:;" onclick="rollback(2,4,4)">退至 待初审阶段</a></li>\
<li class=""><a href="javascript:;" onclick="rollback(2,5,4)">退至 待复审阶段</a></li>\
<li><a href="javascript:;" onclick="rollback(2,6,4)">退至 待终审阶段</a></li>\
<li><a href="javascript:;" onclick="rollback(2,8,4)">退至 待客户确认阶段</a></li>\
<li><a href="javascript:;" onclick="rollback(2,10,4)">退至 待确认放款阶段</a></li>\
</ul>\
</li>\
<li><a href="javascript:;" onclick="cancel('
+
data
+
')">客户取消</a></li>\
...
...
application/views/work/等待放款.php
View file @
639f19c
...
...
@@ -49,13 +49,6 @@
},
{
data
:
"id"
,
render
:
function
(
data
,
type
,
full
)
{
var
subMenu
=
''
;
$
(
'[name=status]'
).
find
(
'option'
).
each
(
function
()
{
if
(
!
$
(
this
).
val
())
{
return
;
}
subMenu
+=
'<li><a href="javascript:;" onclick="rollback('
+
data
+
','
+
$
(
this
).
val
()
+
','
+
full
.
status
+
')">退至 '
+
$
(
this
).
text
()
+
'阶段</a></li>'
;
});
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">\
...
...
@@ -63,7 +56,13 @@
<li><a href="javascript:;" onclick="creatIframe(\'/index.php/work/move/'
+
data
+
'\', \'移交资料\')">移交资料</a></li>\
<li>\
<a href="#">退回订单<i class="arrow Hui-iconfont"></i></a>\
<ul class="menu">'
+
subMenu
+
'\
<ul class="menu">\
<li><a href="javascript:;" onclick="rollback(2,2,4)">退至 待补录阶段</a></li>\
<li class=""><a href="javascript:;" onclick="rollback(2,4,4)">退至 待初审阶段</a></li>\
<li class=""><a href="javascript:;" onclick="rollback(2,5,4)">退至 待复审阶段</a></li>\
<li><a href="javascript:;" onclick="rollback(2,6,4)">退至 待终审阶段</a></li>\
<li><a href="javascript:;" onclick="rollback(2,8,4)">退至 待客户确认阶段</a></li>\
<li><a href="javascript:;" onclick="rollback(2,10,4)">退至 待确认放款阶段</a></li>\
</ul>\
</li>\
<li><a href="javascript:;" onclick="cancel('
+
data
+
')">客户取消</a></li>\
...
...
application/views/work/资料/资料补录.php
View file @
639f19c
...
...
@@ -408,7 +408,7 @@
</div>
<!-- 资料信息 -->
<div
class=
"tabCon"
>
<?php
$this
->
load
->
view
(
'work/图片上传'
);
?>
<?php
$this
->
load
->
view
(
'work/图片上传'
,
[
'url'
=>
'order/ordersource/base/'
,
'type'
=>
$baseType
]
);
?>
<div
class=
"col-sm-offset-4 col-sm-4 pb-20"
>
<button
class=
"btn btn-primary btn-block"
type=
"button"
onclick=
"save()"
>
提交
</button>
...
...
resource/upload.js
View file @
639f19c
...
...
@@ -33,7 +33,8 @@ jQuery(function() {
// 当有文件添加进来的时候
uploader
.
on
(
'fileQueued'
,
function
(
file
)
{
// var $id = $('select.uploader').val();
uploader
.
options
.
server
=
'http://151.28ms.com:8088/order/ordersource/baseUpload?sourceType='
+
$
(
'#upload'
).
val
()
+
'&orderId='
+
$
(
'#orderId'
).
val
();
var
$id
=
$
(
'select.uploader'
).
val
();
var
$tr
=
$
(
'tr[data-id='
+
$id
+
']'
);
...
...
@@ -134,7 +135,8 @@ jQuery(function() {
});
window
.
uploadList
=
function
()
{
var
targetUrl
=
'order/ordersource/base/'
+
$
(
'#orderId'
).
val
();
url
=
$
(
'.filePicker'
).
attr
(
'url'
)
?
$
(
'.filePicker'
).
attr
(
'url'
)
:
'order/ordersource/base/'
;
var
targetUrl
=
url
+
$
(
'#orderId'
).
val
();
$
.
ajax
({
type
:
'get'
,
...
...
@@ -187,7 +189,6 @@ window.uploadList = function () {
function
removeFile
(
file
)
{
var
$li
=
$
(
'#'
+
file
.
id
);
var
id
=
$
(
'#'
+
file
.
id
).
data
(
'id'
);
console
.
log
();
var
targetUrl
=
'order/ordersource/delete/'
+
id
;
...
...
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