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
7aec11d6
authored
Oct 30, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整推送页面
parent
085739bc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
2 deletions
app/Http/Controllers/OrderController.php
config/perm_args.php
resources/views/detail/sendSales.blade.php
app/Http/Controllers/OrderController.php
View file @
7aec11d6
...
...
@@ -914,7 +914,7 @@ Class OrderController extends Controller
$tags
=
$request
->
input
(
'tags'
,
''
);
// 联营
//
$joint_manager = $perm->getRoleUsers($request, '经理');
$joint_manager
=
$perm
->
getRoleUsers
(
$request
,
'经理'
);
$joint_in_charge_1
=
$perm
->
getRoleUsers
(
$request
,
'线销一组主管'
);
$joint_in_charge_2
=
$perm
->
getRoleUsers
(
$request
,
'线销二组主管'
);
$joint_in_charge_3
=
$perm
->
getRoleUsers
(
$request
,
'线销三组主管'
);
...
...
@@ -933,13 +933,21 @@ Class OrderController extends Controller
$self_kefu
=
array_merge
(
$self_assistant
,
$self_kefu
);
}
// $info['joint_manager'] = $this->filterLeave($joint_manager);
$info
[
'joint_manager'
]
=
$this
->
filterLeave
(
$joint_manager
);
$info
[
'kefu_manager'
]
=
Config
(
'perm_args.kefu_manager'
);
$joint_in_charge_1
=
$this
->
filterLeave
(
$joint_in_charge_1
);
$joint_in_charge_2
=
$this
->
filterLeave
(
$joint_in_charge_2
);
$joint_in_charge_3
=
$this
->
filterLeave
(
$joint_in_charge_3
);
$info
[
'joint_in_charge'
]
=
$this
->
remove_duplicate
(
array_merge
(
$joint_in_charge_1
,
$joint_in_charge_2
,
$joint_in_charge_3
));
// 临时处理 (主管里面去掉张娟)
foreach
(
$info
[
'joint_in_charge'
]
as
$k
=>
$v
)
{
if
(
$v
->
userId
==
'1445'
)
{
unset
(
$info
[
'joint_in_charge'
][
$k
]);
}
}
$info
[
'joint_kefu_1'
]
=
$this
->
filterLeave
(
$joint_kefu_1
);
$info
[
'joint_kefu_2'
]
=
$this
->
filterLeave
(
$joint_kefu_2
);
$info
[
'joint_kefu_3'
]
=
$this
->
filterLeave
(
$joint_kefu_3
);
...
...
config/perm_args.php
View file @
7aec11d6
...
...
@@ -55,4 +55,11 @@ return [
],
'redis_search_sales_expire'
=>
7200
,
// 缓存两小时
// 客服经理 (固定,用于推送业务员页面) --- 两个奇葩
'kefu_manager'
=>
[
(
object
)[
'userId'
=>
1445
,
'name'
=>
'张娟'
,
'status'
=>
0
],
(
object
)[
'userId'
=>
1582
,
'name'
=>
'滕欢欢'
,
'status'
=>
0
],
],
];
resources/views/detail/sendSales.blade.php
View file @
7aec11d6
...
...
@@ -9,6 +9,40 @@
<input
type=
"hidden"
name=
"order_id"
value=
"{{$order_info['order_id']}}"
>
<table
class=
"table table-bordered table-hover check-table"
style=
"min-height:150px;"
>
@if (!empty($joint_manager))
<tr>
<td
class=
"check-table-title"
></td>
<td>
<ul>
@foreach ($joint_manager as $vo)
@if ($vo->userId == $order_info['sale_id'])
<li><label><input
type=
"radio"
name=
"sale_id"
value=
"{{$vo->userId}}"
checked
/><span>
{{$vo->name}}
</span></label></li>
@else
<li><label><input
type=
"radio"
name=
"sale_id"
value=
"{{$vo->userId}}"
/><span>
{{$vo->name}}
</span></label></li>
@endif
@endforeach
</ul>
</td>
</tr>
@endif
@if (!empty($kefu_manager))
<tr>
<td
class=
"check-table-title"
></td>
<td>
<ul>
@foreach ($kefu_manager as $vo)
@if ($vo->userId == $order_info['sale_id'])
<li><label><input
type=
"radio"
name=
"sale_id"
value=
"{{$vo->userId}}"
checked
/><span>
{{$vo->name}}
</span></label></li>
@else
<li><label><input
type=
"radio"
name=
"sale_id"
value=
"{{$vo->userId}}"
/><span>
{{$vo->name}}
</span></label></li>
@endif
@endforeach
</ul>
</td>
</tr>
@endif
@if (!empty($joint_in_charge))
<tr>
<td
class=
"check-table-title"
>
联营客服:
</td>
...
...
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