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
257158fa
authored
2018-03-24 17:08:57 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
ff366d52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
31 deletions
application/views/work/尽调管理.php
application/views/work/尽调管理.php
View file @
257158f
<?php
$this
->
load
->
view
(
'common/header'
);
?>
<body>
<div
class=
"page-container"
>
<div
class=
"page-container"
>
<form
class=
"search"
>
<?php
$this
->
load
->
view
(
'work/search'
);
?>
<div>
...
...
@@ -36,15 +36,15 @@
</tbody>
</table>
</div>
</div>
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
</div>
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
var
table
=
$
(
'#table'
).
dataTable
({
columns
:
[
{
// data: "id",
render
:
function
(
data
,
type
,
full
)
{
return
'<input value="'
+
data
+
'" type="checkbox">'
;
render
:
function
(
data
,
type
,
full
)
{
return
'<input value="'
+
data
+
'" type="checkbox">'
;
}
},
{
...
...
@@ -58,29 +58,26 @@
<li><a href="#">退至【等待放款-移交】阶段</a></li>*/
var
subMenu
=
''
;
$
(
'[name=status]'
).
find
(
'option'
).
each
(
function
()
{
if
(
!
$
(
this
).
val
())
{
if
(
!
$
(
this
).
val
())
{
return
;
}
subMenu
+=
'<li><a href="javascript:;" onclick="rollback('
+
data
+
','
+
$
(
this
).
val
()
+
','
+
full
.
status
+
')">退至 '
+
$
(
this
).
text
()
+
'阶段</a></li>'
;
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/'
+
data
+
'?tab=0\')">查看详细</a></li>\
<li><a href="javascript:;" onclick="layer_show(\'资料补录\', \'/index.php/work/record/'
+
data
+
'\')">马上尽调</a></li>\
<li><a href="javascript:;" onclick="rollback('
+
data
+
')">驳回</a></li>\
<li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/'
+
data
+
'?tab=0\')">查看详细</a></li>\
<li><a href="javascript:;" onclick="layer_show(\'资料补录\', \'/index.php/work/record/'
+
data
+
'\')">马上尽调</a></li>\
<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">'
+
subMenu
+
'\
</ul>\
</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>\
<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>'
;
}
},
{
data
:
"orderNo"
},
//订单编号
...
...
@@ -98,30 +95,35 @@
{
name
:
"modifyUser"
,
data
:
"modifyUserName"
},
//处理人
]
});
</script>
</script>
<script>
<script>
function
pass
(
id
)
{
layer
.
confirm
(
'通过之后, 将立即进入审批阶段'
,
{
btn
:
[
'确认通过'
,
'取消'
],
btn
:
[
'确认通过'
,
'取消'
],
title
:
'确认通过预审'
,
icon
:
3
},
function
()
{
},
function
()
{
layer
.
msg
(
'通过'
);
});
}
function
rollback
(
id
,
curr
,
all
)
{
function
rollback
(
id
,
curr
,
dest
)
{
console
.
log
(
id
,
curr
,
all
);
layer
.
prompt
({
title
:
'输入驳回理由'
,
formType
:
1
},
function
(
pass
,
index
)
{
layer
.
prompt
({
title
:
'输入驳回理由'
,
formType
:
1
},
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
)
{
...
...
@@ -132,11 +134,11 @@
layer
.
alert
(
'操作成功'
);
}
setTimeout
(
function
()
{
if
(
!
data
.
code
)
{
if
(
!
data
.
code
)
{
table
.
fnDraw
();
layer_close
();
}
},
500
);
},
500
);
},
error
:
function
()
{
layer
.
alert
(
"操作失败"
)
...
...
@@ -147,10 +149,10 @@
function
cancel
(
id
)
{
layer
.
confirm
(
'确定取消?'
,
{
btn
:
[
'是'
,
'否'
],
btn
:
[
'是'
,
'否'
],
title
:
'确认'
,
icon
:
3
},
function
()
{
},
function
()
{
var
targetUrl
=
'flow/cancelOrder/'
+
id
;
$
.
ajax
({
type
:
'put'
,
...
...
@@ -167,11 +169,11 @@
layer
.
alert
(
'请求成功'
);
}
setTimeout
(
function
()
{
if
(
!
data
.
code
)
{
if
(
!
data
.
code
)
{
table
.
fnDraw
();
layer_close
();
}
},
500
);
},
500
);
},
error
:
function
()
{
layer
.
alert
(
"请求失败"
)
...
...
@@ -179,6 +181,6 @@
})
});
}
</script>
</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