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
ecc161c7
authored
Jan 27, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
售后列表添加权限
parent
b5c973f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
app/Http/Controllers/WebController.php
resources/views/web/orderServiceDetails.blade.php
resources/views/web/orderServiceList.blade.php
app/Http/Controllers/WebController.php
View file @
ecc161c7
...
...
@@ -390,7 +390,7 @@ class WebController extends Controller
$perm
=
new
PermController
;
$data
[
'sale_list'
]
=
$perm
->
getUserByDepartmentId
(
Config
(
'perm_args.sales_department_id'
));
// 获取所有的销售
$data
[
'role'
]
=
$perm
->
getUserRole
(
$request
);
//
$data['role'] = $perm->getUserRole($request);
return
view
(
'web'
,
$data
);
}
...
...
resources/views/web/orderServiceDetails.blade.php
View file @
ecc161c7
...
...
@@ -148,7 +148,9 @@
</div>
@elseif ($order_service->service_status == 2)
<div
class=
"layui-btn-container"
style=
"text-align: center; margin: 20px 0;"
>
<a
class=
"layui-btn layui-btn-normal act_submit"
data-id=
"{{ $order_service->id }}"
data-type=
"3"
>
审核
</a>
@if (in_array('orderServiceList_audit', $userPerms))
<a
class=
"layui-btn layui-btn-normal act_submit"
data-id=
"{{ $order_service->id }}"
data-type=
"3"
>
审核
</a>
@endif
<a
class=
"layui-btn layui-btn-danger act_submit"
data-id=
"{{ $order_service->id }}"
data-type=
"-1"
>
取消
</a>
</div>
@endif
...
...
resources/views/web/orderServiceList.blade.php
View file @
ecc161c7
...
...
@@ -125,12 +125,14 @@
<
a
class
=
"btn btn-xs btn-outline btn-warning"
lay
-
event
=
"submit"
>
提交
<
/a
>
<
a
class
=
"btn btn-xs btn-outline btn-danger"
lay
-
event
=
"cancel"
>
取消
<
/a
>
@{{
#
}
else
if
(
d
.
service_status
==
2
)
{
}}
<?php
if
(
in_array
(
$role
,
[
1
,
2
]))
{
?>
<
a
class
=
"btn btn-xs btn-outline btn-success"
lay
-
event
=
"audit"
>
审核
<
/a
>
<
a
class
=
"btn btn-xs btn-outline btn-danger"
lay
-
event
=
"cancel"
>
取消
<
/a
>
<?php
if
(
in_array
(
'orderServiceList_audit'
,
$userPerms
))
{
?>
<
a
class
=
"btn btn-xs btn-outline btn-success"
lay
-
event
=
"audit"
>
审核
<
/a
>
<?php
}
?>
<
a
class
=
"btn btn-xs btn-outline btn-danger"
lay
-
event
=
"cancel"
>
取消
<
/a
>
@{{
#
}
else
if
(
d
.
service_status
==
3
&&
d
.
refund_status
!=
3
)
{
}}
<
a
class
=
"btn btn-xs btn-outline btn-success"
lay
-
event
=
"confirm"
>
确认退款
<
/a
>
<?php
if
(
in_array
(
'orderServiceList_confirm_refund'
,
$userPerms
))
{
?>
<
a
class
=
"btn btn-xs btn-outline btn-success"
lay
-
event
=
"confirm"
>
确认退款
<
/a
>
<?php
}
?>
@{{
#
}
}}
</script>
...
...
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