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
a3a57461
authored
Aug 06, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整自营推送
parent
1cbc5fef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
27 deletions
app/Http/Controllers/OrderController.php
resources/views/detail/sendSales.blade.php
app/Http/Controllers/OrderController.php
View file @
a3a57461
...
...
@@ -837,26 +837,30 @@ Class OrderController extends Controller
$tags
=
$request
->
input
(
'tags'
,
''
);
// 联营
$joint_manager
=
$perm
->
getRoleUsers
(
$request
,
'经理'
);
$joint_kefu
=
$perm
->
getRoleUsers
(
$request
,
'客服'
);
$sale_list
=
$perm
->
getRoleUsers
(
$request
,
'交易员'
);
$test
=
$perm
->
getRoleUsers
(
$request
,
'测试'
);
$self_manager
=
$self_kefu
=
''
;
if
(
$tags
&&
$tags
==
'self'
)
{
$manager
=
$perm
->
getRoleUsers
(
$request
,
'自营客服主管'
);
$test
=
$perm
->
getRoleUsers
(
$request
,
'测试'
);
$sale_list
=
''
;
$assistant
=
$perm
->
getRoleUsers
(
$request
,
'自营客服主管助理'
);
$kefu
=
$perm
->
getRoleUsers
(
$request
,
'自营客服'
);
$kefu
=
array_merge
(
$assistant
,
$kefu
);
}
else
{
$manager
=
$perm
->
getRoleUsers
(
$request
,
'经理'
);
$test
=
$perm
->
getRoleUsers
(
$request
,
'测试'
);
$sale_list
=
$perm
->
getRoleUsers
(
$request
,
'交易员'
);
$kefu
=
$perm
->
getRoleUsers
(
$request
,
'客服'
);
}
$self_manager
=
$perm
->
getRoleUsers
(
$request
,
'自营客服主管'
);
$self_assistant
=
$perm
->
getRoleUsers
(
$request
,
'自营客服主管助理'
);
$self_kefu
=
$perm
->
getRoleUsers
(
$request
,
'自营客服'
);
$self_kefu
=
array_merge
(
$self_assistant
,
$self_kefu
);
}
$info
[
'manager'
]
=
$this
->
filterLeave
(
$manager
);
$info
[
'test'
]
=
$this
->
filterLeave
(
$test
);
$info
[
'sale_list'
]
=
$this
->
filterLeave
(
$sale_list
);
$info
[
'kefu'
]
=
$this
->
filterLeave
(
$kefu
);
$info
[
'joint_manager'
]
=
$this
->
filterLeave
(
$joint_manager
);
$info
[
'joint_kefu'
]
=
$this
->
filterLeave
(
$joint_kefu
);
$info
[
'sale_list'
]
=
$this
->
filterLeave
(
$sale_list
);
$info
[
'test'
]
=
$this
->
filterLeave
(
$test
);
$info
[
'self_manager'
]
=
$this
->
filterLeave
(
$self_manager
);
$info
[
'self_kefu'
]
=
$this
->
filterLeave
(
$self_kefu
);
$info
[
'sale_id'
]
=
$request
->
user
->
userId
;
$info
[
'role'
]
=
$perm
->
getUserRole
(
$request
);
$info
[
'role'
]
=
$perm
->
getUserRole
(
$request
);
return
view
(
'detail'
,
$info
);
}
...
...
resources/views/detail/sendSales.blade.php
View file @
a3a57461
...
...
@@ -9,16 +9,13 @@
<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($manager))
@if (!empty($
joint_
manager))
<tr>
@if ($order_info['order_goods_type'] == 1)
<td
class=
"check-table-title"
width=
"10%"
>
经理:
</td>
@else
<td
class=
"check-table-title"
width=
"10%"
>
客服主管:
</td>
@endif
<td
class=
"check-table-title"
width=
"10%"
>
经理:
</td>
<td>
<ul>
@foreach ($manager as $k => $v)
@foreach ($
joint_
manager as $k => $v)
@if ($v->userId == $order_info['sale_id'])
<li><label><input
type=
"radio"
name=
"sale_id"
value=
"{{$v->userId}}"
checked
/><span>
{{$v->name}}
</span></label></li>
@else
...
...
@@ -30,6 +27,23 @@
</tr>
@endif
@if (!empty($joint_kefu))
<tr>
<td
class=
"check-table-title"
>
联营客服:
</td>
<td>
<ul>
@foreach ($joint_kefu as $key => $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($sale_list))
<tr>
<td
class=
"check-table-title"
>
交易员:
</td>
...
...
@@ -46,13 +60,31 @@
</td>
</tr>
@endif
@if (!empty($self_manager))
<tr>
<td
class=
"check-table-title"
width=
"10%"
>
自营客服主管:
</td>
<td>
<ul>
@foreach ($self_manager as $k => $v)
@if ($v->userId == $order_info['sale_id'])
<li><label><input
type=
"radio"
name=
"sale_id"
value=
"{{$v->userId}}"
checked
/><span>
{{$v->name}}
</span></label></li>
@else
<li><label><input
type=
"radio"
name=
"sale_id"
value=
"{{$v->userId}}"
/><span>
{{$v->name}}
</span></label></li>
@endif
@endforeach
</ul>
</td>
</tr>
@endif
@if (!empty($kefu))
@if (!empty($
self_
kefu))
<tr>
<td
class=
"check-table-title"
>
客服:
</td>
<td
class=
"check-table-title"
>
自营
客服:
</td>
<td>
<ul>
@foreach ($kefu as $key => $vo)
@foreach ($
self_
kefu as $key => $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
...
...
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