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
b6df2819
authored
May 21, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加推送权限
parent
c1e68635
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
config/perm.php
resources/views/orderlist/content.blade.php
config/perm.php
View file @
b6df2819
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
return
[
return
[
// 菜单权限
// 菜单权限
'联营订单'
=>
[
'联营订单'
=>
[
'平台订单'
=>
[
'orderlist_check'
,
'export'
,
'cancel_order'
,
'check_account'
,
'order_send'
,
'update_address'
,
'update_invoice'
,
'check_test_order'
,
'check_order'
,
'download_contract'
,],
'平台订单'
=>
[
'orderlist_check'
,
'export'
,
'cancel_order'
,
'check_account'
,
'order_send'
,
'update_address'
,
'update_invoice'
,
'check_test_order'
,
'check_order'
,
'download_contract'
,
'send_salesman'
],
'ERP订单'
=>
[
'erp_order_check'
],
'ERP订单'
=>
[
'erp_order_check'
],
],
],
...
...
resources/views/orderlist/content.blade.php
View file @
b6df2819
...
@@ -272,8 +272,8 @@
...
@@ -272,8 +272,8 @@
<a
class=
"btn btn-success"
href=
"{{URL('change', ['order_id'=>$v['order_id']])}}"
target=
"_blank"
>
人工审单
</a>
<a
class=
"btn btn-success"
href=
"{{URL('change', ['order_id'=>$v['order_id']])}}"
target=
"_blank"
>
人工审单
</a>
@endif
@endif
<!-- 管理员和经理
显示 && sale_id为空
&& 订单状态为待审核 -->
<!-- 管理员和经理
或有推送权限显示
&& 订单状态为待审核 -->
@if (
in_array($role, [1, 2]
)
&&
$v['status'] == 1)
@if (
(in_array($role, [1, 2]) || in_array('send_salesman', $userPerms)
)
&&
$v['status'] == 1)
<a
class=
"btn btn-info"
href=
"{{URL('sendSales', ['order_id'=>$v['order_id']])}}"
target=
"_blank"
>
推送
</a>
<a
class=
"btn btn-info"
href=
"{{URL('sendSales', ['order_id'=>$v['order_id']])}}"
target=
"_blank"
>
推送
</a>
@endif
@endif
...
...
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