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
f4b61d6e
authored
2018-04-01 18:48:57 +0800
by
wang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
71bef1a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
0 deletions
application/views/loan/prosecute.php
application/views/loan/prosecute.php
View file @
f4b61d6
...
...
@@ -67,6 +67,8 @@
<button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button>\
<ul class="dropDown-menu menu radius box-shadow">\
<li><a href="javascript:;edit('+data+')">编辑订单</a></li>\
<li><a href="javascript:;confirma('+data+')">确认起诉</a></li>\
<li><a href="javascript:;transfer('+data+')">移交起诉</a></li>\
<li><a href="javascript:;del('+data+')">删除订单</a></li>\
</ul></span>';
}
...
...
@@ -171,6 +173,90 @@
});
}
function transfer(id) {
layer.confirm('
是否移交
', {
btn: ['
确认
','
取消
'],
title: '
移交
',
icon: 3
}, function(){
// ajax('
/
loanAfter
/
repaymentPlan
/
'+id, '
delete
')
var data = {
stateCode: 2
};
$.ajax({
type: '
patch
',
// url: apiBaseUrl + '
manage
/
financial
/
confirm
/
' + id + '
?
realRepaymentDate
=
' + Date.now(),
url: apiBaseUrl + '
loanAfter
/
prosecute
/
operate
/
'+id+'
?
stateCode
=
2
',
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.msg('
通过
');
}
if(!data.code){
setTimeout(function () {
layer_close();
}, 500)
}
},
error: function () {
layer.alert("操作失败")
}
});
});
}
function confirma(id) {
layer.confirm('
是否确认移交
', {
btn: ['
确认
','
取消
'],
title: '
确认移交
',
icon: 3
}, function(){
// ajax('
/
loanAfter
/
repaymentPlan
/
'+id, '
delete
')
var data = {
stateCode: 3
};
$.ajax({
type: '
patch
',
// url: apiBaseUrl + '
manage
/
financial
/
confirm
/
' + id + '
?
realRepaymentDate
=
' + Date.now(),
url: apiBaseUrl + '
loanAfter
/
prosecute
/
operate
/
'+id+'
?
stateCode
=
3
',
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.msg('
通过
');
}
if(!data.code){
setTimeout(function () {
layer_close();
}, 500)
}
},
error: function () {
layer.alert("操作失败")
}
});
});
}
function reload() {
table.fnDraw();
}
...
...
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