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
ce911589
authored
Jan 30, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_adjust_check_0125' into 'master'
调整人工审单权限 See merge request
!4
parents
b5ca8c34
9843319e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
app/Http/Controllers/OrderCountController.php
config/perm.php
resources/views/detail/content.blade.php
app/Http/Controllers/OrderCountController.php
View file @
ce911589
...
...
@@ -81,7 +81,7 @@ Class OrderCountController extends Controller
$useremail
=
$request
->
user
->
email
;
// 菜单
$menuconfig
=
DB
::
table
(
'config'
)
->
where
(
'config_
id'
,
5
)
->
first
();
$menuconfig
=
DB
::
table
(
'config'
)
->
where
(
'config_
title'
,
'订单系统'
)
->
first
();
$menus
=
[];
if
(
$menuconfig
&&
!
(
$menus
=
json_decode
(
$menuconfig
->
config_data
)))
$menus
=
[];
...
...
config/perm.php
View file @
ce911589
...
...
@@ -2,7 +2,7 @@
return
[
// 菜单权限
'订单管理'
=>
[
'订单列表'
=>
[
'orderlist_check'
,
'export'
,
'
adjust_price'
,
'
check_order'
,
'cancel_order'
,
'check_account'
,
'order_send'
,
'send_invoice'
,
'update_address'
,
'update_invoice'
,
'check_test_order'
,
'check_offline_order'
],
'订单列表'
=>
[
'orderlist_check'
,
'export'
,
'check_order'
,
'cancel_order'
,
'check_account'
,
'order_send'
,
'send_invoice'
,
'update_address'
,
'update_invoice'
,
'check_test_order'
,
'check_offline_order'
],
'订单统计'
=>
[
'ordercount_check'
],
],
...
...
resources/views/detail/content.blade.php
View file @
ce911589
...
...
@@ -413,7 +413,7 @@
<p
style=
"padding-left: 5px;"
>
操作
</p>
<div
class=
"tabs-box"
>
<!-- 判断操作权限 -->
@if (($role == 1 || $role ==2)
&&
$order_info['status'] == 1
&&
in_array('
adjust_price
', $userPerms))
@if (($role == 1 || $role ==2)
&&
$order_info['status'] == 1
&&
in_array('
check_order
', $userPerms))
<a
class=
"btn btn-success"
href=
"{{URL('change', ['order_id'=>$order_info['order_id']])}}"
class=
"btn btn-default"
>
人工审单
</a>
@endif
<!-- <a href="{:U('account', 'order_id='.$order_info['order_id'])}" class="btn btn-default">账期设置</a> -->
...
...
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