Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
76121af5
authored
May 17, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_adjust_20180507' into development
parents
5d266386
467bc060
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
1 deletions
public/js/order.js
resources/views/detail/content.blade.php
public/js/order.js
View file @
76121af5
...
...
@@ -655,6 +655,53 @@
});
},
// 推送业务员
sendSales
:
function
()
{
$
(
'.send_sales'
).
click
(
function
(){
var
sale_id
=
$
(
'input[name=sale_id]:checked'
).
val
();
var
sale_name
=
$
(
'input[name=sale_id]:checked'
).
next
(
'span'
).
text
();
if
(
sale_id
==
null
)
{
layer
.
msg
(
'请选择业务员!'
);
return
false
;
}
// 弹出提示
layer
.
open
({
title
:
'提醒'
,
content
:
'<div>确定推送到 <i class="error">'
+
sale_name
+
'</i> 吗?</div>'
,
btn
:[
'取消'
,
'确定'
],
yes
:
function
(
index
,
layero
){
layer
.
close
(
index
);
},
btn2
:
function
(
index
,
layero
){
$
.
ajax
({
url
:
'/sendSales'
,
type
:
'post'
,
data
:
$
(
'#sendSalesForm'
).
serialize
(),
dataType
:
'json'
,
success
:
function
(
resp
)
{
if
(
resp
.
errcode
===
0
){
layer
.
msg
(
resp
.
errmsg
||
'操作成功'
);
setTimeout
(
function
(){
location
.
reload
();
},
1000
);
}
else
{
layer
.
alert
(
resp
.
errmsg
||
'网络异常'
);
}
},
error
:
function
(
res
)
{
console
.
log
(
res
);
}
})
}
});
return
false
;
})
},
//人工审单
changeOrder
:
function
(){
$
(
'.deletegoods'
).
click
(
function
(){
...
...
resources/views/detail/content.blade.php
View file @
76121af5
...
...
@@ -499,7 +499,7 @@
@endif
<!-- 人工审单时去掉操作按钮 -->
@if (!isset($_REQUEST['tags'])
&&
$action_name != 'changeOrder')
@if (!isset($_REQUEST['tags'])
&&
$action_name != 'changeOrder'
&&
$action_name != 'sendSales'
)
<p
style=
"padding-left: 5px;"
>
操作
</p>
<div
class=
"tabs-box"
>
<!-- 判断操作权限 -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment