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
427df46b
authored
2018-03-25 21:41:31 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
f063006e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
5 deletions
application/views/work/预审管理.php
application/views/work/预审管理.php
View file @
427df46
...
...
@@ -55,8 +55,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="pass(
1
)">通过</a></li>\
<li><a href="javascript:;" onclick="refuse(
1
)">拒绝</a></li>\
<li><a href="javascript:;" onclick="pass(
'
+
data
+
'
)">通过</a></li>\
<li><a href="javascript:;" onclick="refuse(
'
+
data
+
'
)">拒绝</a></li>\
</ul>\
</span>'
;
}
...
...
@@ -84,17 +84,79 @@
title
:
'确认通过预审'
,
icon
:
3
},
function
(){
layer
.
msg
(
'通过'
);
var
targetUrl
=
'flow/confirm2NextStatus/'
+
id
;
var
data
=
{
"destOrderStatus"
:
2
,
"opinion"
:
"string"
,
"orderStatus"
:
1
}
$
.
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
refuse
(
id
)
{
layer
.
confirm
(
'一旦
驳回
, 该笔借款将作废, 进入【审批拒绝】列表!'
,
{
layer
.
confirm
(
'一旦
拒绝
, 该笔借款将作废, 进入【审批拒绝】列表!'
,
{
btn
:
[
'确认拒绝'
,
'取消'
],
title
:
'确认拒绝'
,
icon
:
3
},
function
(){
layer
.
msg
(
'拒绝'
);
var
targetUrl
=
'flow/confirm2NextStatus/'
+
id
;
var
data
=
{
"destOrderStatus"
:
0
,
"opinion"
:
"string"
,
"orderStatus"
:
1
}
$
.
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
(
"请求失败"
)
}
})
});
}
</script>
...
...
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