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
5502db7b
authored
2018-03-25 16:11:09 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://g.28ms.com:8000/yangjianbin/page
into develop
2 parents
ab99148a
c11099a9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
394 additions
and
133 deletions
application/controllers/Work.php
application/views/config/add.php
application/views/config/index.php
application/views/perm/role.php
application/views/perm/staff.php
application/views/tool/cal.php
application/views/tool/edit.php
application/views/tool/web.php
application/views/work/客户确认.php
application/views/work/客户确认/客户确认.php
application/views/work/尽调管理.php
application/views/work/确认放款.php
application/views/work/等待放款.php
application/controllers/Work.php
View file @
5502db7
...
...
@@ -215,9 +215,26 @@ class Work extends CI_Controller
$this
->
load
->
view
(
'work/审批/拒绝'
);
}
public
function
verify
(
$
state
=
null
)
public
function
verify
(
$
id
=
null
)
{
$this
->
load
->
view
(
'work/客户确认/客户确认'
);
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'order/detail/'
.
$id
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
if
(
!
$ret
->
clientUnitOutputVO
)
{
$ret
->
clientUnitOutputVO
=
array
();
}
if
(
!
$ret
->
clientContactOutputVOS
)
{
$ret
->
clientContactOutputVOS
=
array
();
}
$data
=
array
(
'clientInfoOutputVO'
=>
$ret
->
clientInfoOutputVO
,
'clientUnitOutputVO'
=>
$ret
->
clientUnitOutputVO
,
'clientContactOutputVOS'
=>
$ret
->
clientContactOutputVOS
,
'applyOrderVO'
=>
$ret
->
applyOrderVO
);
$this
->
load
->
view
(
'work/客户确认/客户确认'
,
$data
);
}
public
function
move
()
...
...
application/views/config/add.php
View file @
5502db7
...
...
@@ -35,8 +35,9 @@
<label>
还款方式
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
name=
"repaymentMode"
>
<option>
请选择
</option>
<option
value=
"1"
>
1
</option>
<?php
foreach
(
$this
->
session
->
repayments
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$k
?>"
><?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
...
...
@@ -80,6 +81,9 @@
function
save
()
{
var
targetUrl
=
$
(
"#add"
).
attr
(
"action"
);
var
data
=
$
(
"#add"
).
serializeJson
();
data
.
annualInterestRate
=
parseFloat
(
data
.
annualInterestRate
)
/
100
;
data
.
overdueFine
=
parseFloat
(
data
.
overdueFine
)
/
100
;
$
.
ajax
({
type
:
'post'
,
url
:
apiBaseUrl
+
targetUrl
,
...
...
application/views/config/index.php
View file @
5502db7
...
...
@@ -2,9 +2,28 @@
<body>
<div
class=
"page-container"
>
<div>
<button
class=
"btn btn-primary radius"
onclick=
"layer_show('添加', '
<?=
site_url
(
'/config/add'
)
?>
')"
>
添加
</button>
</div>
<form
class=
""
onreset=
"resetHandler()"
>
<div
class=
"row cl mb-20"
>
<div
class=
"col-xs-2"
>
<span
class=
"select-box"
>
<select
class=
"select table_search"
name=
"code"
size=
"1"
column=
"6"
>
<option
value=
""
selected
>
选择字段
</option>
<option
value=
"0"
>
产品名称
</option>
<option
value=
"1"
>
还款方式
</option>
</select>
</span>
</div>
<div
class=
"col-xs-2"
>
<input
type=
"text"
class=
"input-text"
placeholder=
""
id=
""
name=
"keyword"
>
</div>
<div>
<input
class=
"btn btn-warning radius"
type=
"reset"
value=
"重置"
>
<button
class=
"btn btn-primary radius"
type=
"button"
onclick=
"layer_show('添加', '
<?=
site_url
(
'/config/add'
)
?>
')"
>
添加
</button>
</div>
<!--<div>
<button class="btn btn-primary radius" onclick="layer_show('添加', '
<?
/*= site_url('/config/add') */
?>
')">添加</button>
</div>-->
</form>
<div
class=
"body mt-20"
>
<table
class=
"table table-border table-bordered table-bg"
id=
"table"
>
...
...
application/views/perm/role.php
View file @
5502db7
...
...
@@ -60,10 +60,10 @@
processing: true,
bSort: false,
searching: false,//是否显示搜索
iDisplayLength:
6
,
iDisplayLength:
99
,
bLengthChange: false,
ajax: {
url: apiBaseUrl + '/
order/into/getAllApplyOrder
',
url: apiBaseUrl + '/
system/role/getAllRole
',
dataFilter: function (json) {
var ret = {}, json = jQuery.parseJSON(json);
ret.data = json.data || [];
...
...
@@ -96,9 +96,9 @@
</ul></span>';
}
},
{data: "
orderNo
"},//所属网点
{data: "
userName
"},//角色
{data: "
idCard
"},//人数
{data: "
branchName
"},//所属网点
{data: "
nameZh
"},//角色
{data: "
employeeCount;
"},//人数
]
});
...
...
application/views/perm/staff.php
View file @
5502db7
...
...
@@ -64,7 +64,7 @@
iDisplayLength: 6,
bLengthChange: false,
ajax: {
url: apiBaseUrl + '
/order/into/getAllApplyOrde
r',
url: apiBaseUrl + '
system/user/getAllH
r',
dataFilter: function (json) {
var ret = {}, json = jQuery.parseJSON(json);
ret.data = json.data || [];
...
...
@@ -89,26 +89,28 @@
columns: [
{
data: "id", render: function (data, type, full) {
var str = '';
if(full.status == 1){
str = '<li><a href="javascript:freeze('+data+');">冻结</a></li>';
} else {
str = '<li><a href="javascript:unfreeze('+data+');">解冻</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">\
<li><a href="javascript:del('+data+');">注销</a></li>\
<li><a href="javascript:on_off('+data+');">冻结/解冻</a></li>\
'+str+'\
<li><a href="javascript:reset('+data+');">重置密码</a></li>\
</ul></span>';
}
},
{data: "orderNo"},//用户名
{data: "userName"},//真实姓名
{data: "idCard", render: function(data, type, full) {
if(data)
return '<a href="javascript:edit(\''+full.id+'\')" class="btn btn-link">'+data+'</a>';
}},//手机号码
{data: "userName"},//身份证号码
{data: "userName"},//角色
{data: "userName"},//所属网点
{data: "userName"},//状态
{data: "userName"},//备注
{data: "username"},//用户名
{data: "name"},//真实姓名
{data: "phone"},//手机号码
{data: "id"},//身份证号码
{data: "roles"},//角色
{data: "departmentId"},//所属网点
{data: "status"},//状态
{data: "remark"},//备注
]
});
...
...
@@ -154,17 +156,88 @@
layer_show('添加员工', '
<?=
site_url
(
'perm/staffEdit'
);
?>
/'+id);
}
function reset() {
layer_show('重置密码', '
<?=
site_url
(
'perm/reset'
);
?>
');
function reset(id) {
//layer_show('重置密码', '
<?=
site_url
(
'perm/reset'
);
?>
');
layer.confirm('
您确定要将密码重置为
123456
吗
?
', {
btn: ['
确认
','
取消
'],
title: '
重置密码
',
icon: 3
}, function(){
$.ajax({
type: '
put
',
url: apiBaseUrl + '
system
/
user
/
resetPassword
/
'+id+'
?
newPassword
=
' + 123456,
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 {
layer.msg('
重置成功
');
}
},
error: function () {
layer.alert("请求失败")
}
})
});
}
function
on_off
(id) {
layer.confirm('
您确定要冻结
/
解冻
这个员工账号吗
?
', {
function
freeze
(id) {
layer.confirm('
您确定要冻结这个员工账号吗
?
', {
btn: ['
确认
','
取消
'],
title: '
冻结
/
解冻
',
title: '
冻结
',
icon: 3
}, function(){
layer.msg('
冻结
/
解冻成功
');
$.ajax({
type: '
put
',
url: apiBaseUrl + '
system
/
user
/
freeze
/
' + id,
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 {
layer.msg('
冻结成功
');
}
},
error: function () {
layer.alert("请求失败")
}
})
});
}
function unfreeze(id) {
layer.confirm('
您确定要解冻这个员工账号吗
?
', {
btn: ['
确认
','
取消
'],
title: '
解冻
',
icon: 3
}, function(){
$.ajax({
type: '
put
',
url: apiBaseUrl + '
manage
/
financial
/
confirm
/
' + id + '
?
realRepaymentDate
=
' + Date.now(),
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 {
layer.msg('
解冻成功
');
}
},
error: function () {
layer.alert("请求失败")
}
})
});
}
...
...
application/views/tool/cal.php
View file @
5502db7
<?php
$this
->
load
->
view
(
'common/header'
);
?>
<body>
<div
class=
"cl pd-5 bg-1"
>
<div
class=
"cl pd-5 bg-1"
>
<span
class=
"l"
>
<button
class=
"btn btn-primary radius"
onclick=
"layer_load('', '
<?=
site_url
(
'/tool/cal'
);
?>
');"
>
<button
class=
"btn btn-primary radius"
onclick=
"layer_load('', '
<?=
site_url
(
'/tool/cal'
);
?>
');"
>
<i
class=
"Hui-iconfont"
>

</i>
利息计算器
</button>
<button
class=
"btn btn-primary radius"
onclick=
"layer_load('', '
<?=
site_url
(
'/tool/web'
);
?>
');"
>
<button
class=
"btn btn-primary radius"
onclick=
"layer_load('', '
<?=
site_url
(
'/tool/web'
);
?>
');"
>
<i
class=
"Hui-iconfont"
>

</i>
网查网址
</button>
</span>
</div>
</div>
<form
id=
"form"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-body"
>
<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"
>
<?php
foreach
(
$this
->
session
->
products
as
$k
=>
$v
)
:?>
<
option
data
-
repaymentMode
=
"<?=
$v->repaymentMode
?>"
data
-
loanDeadline
=
"<?=
$v->loanDeadline
?>"
value
=
"<?=
$v->id
?>"
><?=
$v
->
productName
?>
</option>
<?php
endforeach
;
?>
<form
id=
"form"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-body"
>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
产品名称
</label>
<span
class=
"form-control select-box"
>
<select
id=
"product"
class=
"select"
size=
"1"
name=
"productId"
>
<?php
foreach
(
$this
->
session
->
products
as
$k
=>
$v
)
:
?>
<option
data-repaymentMode=
"
<?=
$v
->
repaymentMode
?>
"
data-loanDeadline=
"
<?=
$v
->
loanDeadline
?>
"
value=
"
<?=
$v
->
id
?>
"
>
<?=
$v
->
productName
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
借款金额
</label>
<input
name=
"borrowAmount"
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-2"
>
<label>
借款期数
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
id=
"loanDeadline"
>
<?php
for
(
$i
=
1
;
$i
<=
$this
->
session
->
products
[
0
]
->
loanDeadline
;
$i
++
)
:
?>
<option
value=
"
<?=
$i
?>
"
>
<?=
$i
?>
</option>
<?php
endfor
;
?>
</select>
</span>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
借款金额
</label>
<input
name=
"borrowAmount"
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-2"
>
<label>
借款期数
</label>
<input
type=
"text"
class=
"form-control input-text"
readonly
value=
"
<?=
$this
->
session
->
products
[
0
]
?
$this
->
session
->
products
[
0
]
->
repaymentMode
:
''
;
?>
"
id=
"repaymentMode"
>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
还款方式
</label>
<input
type=
"text"
class=
"form-control input-text"
readonly
value=
"
<?=
$this
->
session
->
products
[
0
]
?
$this
->
session
->
products
[
0
]
->
loanDeadline
:
''
;
?>
"
id=
"loanDeadline"
>
</div>
</div>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
还款方式
</label>
<input
type=
"text"
class=
"form-control input-text"
readonly
value=
"
<?=
$this
->
session
->
products
[
0
]
?
$this
->
session
->
products
[
0
]
->
repaymentMode
:
''
;
?>
"
id=
"repaymentMode"
>
</div>
</div>
</div>
</div>
<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"
>
<label>
每月应还
</label>
<input
type=
"text"
id=
"totalAmount"
class=
"form-control input-text"
value=
""
disabled
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
总共应还
</label>
<input
type=
"text"
id=
"totalRepay"
class=
"form-control input-text"
value=
""
disabled
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
<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"
>
<label>
每月应还
</label>
<input
type=
"text"
id=
"totalAmount"
class=
"form-control input-text"
value=
""
disabled
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
总共应还
</label>
<input
type=
"text"
id=
"totalRepay"
class=
"form-control input-text"
value=
""
disabled
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
</div>
</div>
</div>
<div
class=
"row cl pb-20 col-sm-12"
>
<div
class=
"col-sm-offset-4 col-sm-2"
>
<button
class=
"btn btn-primary btn-block"
>
计算
</button>
</div>
<div
class=
"col-sm-2"
>
<input
class=
"btn btn-warning btn-block"
value=
"重置"
type=
"reset"
>
</div>
<div
class=
"row cl pb-20 col-sm-12"
>
<div
class=
"col-sm-offset-4 col-sm-2"
>
<button
class=
"btn btn-primary btn-block"
>
计算
</button>
</div>
</form>
<div
class=
"col-sm-2"
>
<input
class=
"btn btn-warning btn-block"
value=
"重置"
type=
"reset"
>
</div>
</div>
</form>
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
$
(
'#product'
).
change
(
function
()
{
var
data
=
$
(
this
).
find
(
':selected'
).
data
();
$
(
'#repaymentMode'
).
val
(
data
.
repaymentmode
);
$
(
'#loanDeadline'
).
val
(
data
.
loandeadline
);
})
<script>
$
(
'#product'
).
change
(
function
()
{
var
data
=
$
(
this
).
find
(
':selected'
).
data
();
$
(
'#repaymentMode'
).
val
(
data
.
repaymentmode
);
$
(
'#loanDeadline'
).
empty
();
var
str
=
''
;
for
(
var
i
=
1
;
i
<=
parseInt
(
data
.
loandeadline
);
i
++
)
{
str
+=
'<option value="'
+
i
+
'">'
+
i
+
'</option>'
;
}
$
(
'#loanDeadline'
).
append
(
str
);
})
$
(
'#form'
).
submit
(
function
(
e
)
{
e
.
stopPropagation
();
e
.
preventDefault
();
var
borrowAmount
=
$
(
'[name=borrowAmount]'
).
val
();
var
productId
=
$
(
'[name=productId]'
).
val
();
var
str
=
'borrowAmount='
+
borrowAmount
+
'&productId='
+
productId
;
$
.
ajax
({
type
:
'get'
,
url
:
apiBaseUrl
+
'application/tool/interest?'
+
str
,
cache
:
false
,
dataType
:
'json'
,
contentType
:
"application/json; charset=UTF-8"
,
success
:
function
(
data
){
if
(
data
.
code
!=
0
){
var
msg
=
data
.
msg
?
data
.
msg
:
'请求失败'
;
layer
.
alert
(
msg
);
}
else
{
$
(
'#totalRepay'
).
val
(
data
.
data
.
totalRepay
);
$
(
'#totalAmount'
).
val
(
data
.
data
.
repayPlans
[
0
].
totalAmount
);
}
},
error
:
function
(){
layer
.
alert
(
"请求失败"
)
$
(
'#form'
).
submit
(
function
(
e
)
{
e
.
stopPropagation
();
e
.
preventDefault
();
var
borrowAmount
=
$
(
'[name=borrowAmount]'
).
val
();
var
productId
=
$
(
'[name=productId]'
).
val
();
var
loanDeadline
=
$
(
'#loanDeadline'
).
val
();
str
=
'borrowAmount='
+
borrowAmount
+
'&productId='
+
productId
+
'&loanDeadline='
+
loanDeadline
;
$
.
ajax
({
type
:
'get'
,
url
:
apiBaseUrl
+
'application/tool/interest?'
+
str
,
cache
:
false
,
dataType
:
'json'
,
contentType
:
"application/json; charset=UTF-8"
,
success
:
function
(
data
)
{
if
(
data
.
code
!=
0
)
{
var
msg
=
data
.
msg
?
data
.
msg
:
'请求失败'
;
layer
.
alert
(
msg
);
}
else
{
$
(
'#totalRepay'
).
val
(
data
.
data
.
totalRepay
);
$
(
'#totalAmount'
).
val
(
data
.
data
.
repayPlans
[
0
].
totalAmount
);
}
})
},
error
:
function
()
{
layer
.
alert
(
"请求失败"
)
}
})
</script>
})
</script>
</body>
<html>
...
...
application/views/tool/edit.php
View file @
5502db7
...
...
@@ -54,7 +54,7 @@
var data = $("#web_add").serializeJson();
$.ajax({
type:'p
os
t',
type:'p
u
t',
url:apiBaseUrl + targetUrl,
cache: false,
data:JSON.stringify(data),
...
...
application/views/tool/web.php
View file @
5502db7
...
...
@@ -122,7 +122,30 @@
btn: ['确认','取消'],
title: '删除网查'
}, function(){
layer_load('应用工具', '
<?=
site_url
(
"tool/web"
)
?>
'
);
$.ajax({
type:'delete',
url:apiBaseUrl + 'application/tool/webSite/' + id,
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 {
layer.msg('删除成功');
setTimeout(function () {
layer_load('应用工具', '
<?=
site_url
(
"tool/web"
)
?>
'
);
},
500
);
}
},
error
:
function
(){
layer
.
alert
(
"请求失败"
)
}
})
});
}
</script>
...
...
application/views/work/客户确认.php
View file @
5502db7
...
...
@@ -53,7 +53,7 @@
<button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button>\
<ul class="dropDown-menu menu radius box-shadow">\
<li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/'
+
data
+
'?tab=0\')">查看详细</a></li>\
<li><a href="javascript:;" onclick="creatIframe(\'/index.php/work/verify\', \'客户确认\')">客户确认</a></li>\
<li><a href="javascript:;" onclick="creatIframe(\'/index.php/work/verify
/'
+
data
+
'
\', \'客户确认\')">客户确认</a></li>\
<li><a href="javascript:;" onclick="cancel('
+
data
+
')">客户取消</a></li>\
<li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/'
+
data
+
'?tab=2\')">处理记录</a></li>\
</ul>\
...
...
application/views/work/客户确认/客户确认.php
View file @
5502db7
...
...
@@ -22,6 +22,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-header"
>
授信信息
</div>
<!-- GET /flow/getLastCheck-->
<div
class=
"panel-body"
>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-4 col-md-2"
>
...
...
application/views/work/尽调管理.php
View file @
5502db7
This diff is collapsed.
Click to expand it.
application/views/work/确认放款.php
View file @
5502db7
...
...
@@ -53,8 +53,8 @@
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">\
<li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.p
bp/work/detail/1
?tab=0\')">查看详细</a></li>\
<li><a href="javascript:;" onclick="loan(
1
)">线下已放款</a></li>\
<li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.p
hp/work/detail/'
+
data
+
'
?tab=0\')">查看详细</a></li>\
<li><a href="javascript:;" onclick="loan(
'
+
data
+
'
)">线下已放款</a></li>\
<li>\
<a href="#">退回订单<i class="arrow Hui-iconfont"></i></a>\
<ul class="menu">\
...
...
@@ -91,7 +91,42 @@
</script>
<script>
function
loan
(
id
)
{
layer_show
(
'线下已放款'
,
'/work/loan'
);
layer_show
(
'线下已放款'
,
'/index.php/work/loan'
);
}
function
cancel
(
id
)
{
layer
.
confirm
(
'确定取消?'
,
{
btn
:
[
'是'
,
'否'
],
title
:
'确认'
,
icon
:
3
},
function
(){
var
targetUrl
=
'flow/cancelOrder/'
+
id
;
$
.
ajax
({
type
:
'put'
,
url
:
apiBaseUrl
+
targetUrl
,
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
{
layer
.
alert
(
'请求成功'
);
}
setTimeout
(
function
()
{
if
(
!
data
.
code
)
{
table
.
fnDraw
();
layer_close
();
}
},
500
);
},
error
:
function
()
{
layer
.
alert
(
"请求失败"
)
}
})
});
}
</script>
</body>
...
...
application/views/work/等待放款.php
View file @
5502db7
...
...
@@ -49,24 +49,24 @@
},
{
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">\
<li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/
1
?tab=0\')">查看详细</a></li>\
<li><a href="javascript:;" onclick="creatIframe(\'/
work/move
\', \'移交资料\')">移交资料</a></li>\
<li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/
'
+
data
+
'
?tab=0\')">查看详细</a></li>\
<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">\
<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>\
<ul class="menu">'
+
subMenu
+
'\
</ul>\
</li>\
<li><a href="
#
">客户取消</a></li>\
<li><a href="
javascript:;" onclick="cancel('
+
data
+
')
">客户取消</a></li>\
<li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/'
+
data
+
'?tab=2\')">处理记录</a></li>\
</ul>\
</span>'
;
...
...
@@ -99,6 +99,79 @@
layer
.
msg
(
'通过'
);
});
}
function
rollback
(
id
,
curr
,
dest
)
{
layer
.
prompt
({
title
:
'输入驳回理由'
,
formType
:
0
},
function
(
pass
,
index
)
{
layer
.
close
(
index
);
var
data
=
{
"destOrderStatus"
:
dest
,
"opinion"
:
pass
,
"orderStatus"
:
curr
}
var
targetUrl
=
'flow/unConfirmRollbackStatus/'
+
id
;
$
.
ajax
({
type
:
'put'
,
url
:
apiBaseUrl
+
targetUrl
,
cache
:
false
,
dataType
:
'json'
,
data
:
JSON
.
stringify
(
data
),
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
(
'操作成功'
);
}
setTimeout
(
function
()
{
if
(
!
data
.
code
)
{
table
.
fnDraw
();
layer_close
();
}
},
500
);
},
error
:
function
()
{
layer
.
alert
(
"操作失败"
)
}
})
});
}
function
cancel
(
id
)
{
layer
.
confirm
(
'确定取消?'
,
{
btn
:
[
'是'
,
'否'
],
title
:
'确认'
,
icon
:
3
},
function
(){
var
targetUrl
=
'flow/cancelOrder/'
+
id
;
$
.
ajax
({
type
:
'put'
,
url
:
apiBaseUrl
+
targetUrl
,
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
{
layer
.
alert
(
'请求成功'
);
}
setTimeout
(
function
()
{
if
(
!
data
.
code
)
{
table
.
fnDraw
();
layer_close
();
}
},
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