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
3a6d11e9
authored
Mar 05, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整客服推送页
parent
561b2000
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
56 deletions
app/Http/Controllers/OrderController.php
resources/views/detail/sendSales.blade.php
app/Http/Controllers/OrderController.php
View file @
3a6d11e9
...
@@ -1123,10 +1123,20 @@ Class OrderController extends Controller
...
@@ -1123,10 +1123,20 @@ Class OrderController extends Controller
$info
[
'online_sales_chief'
]
=
$perm
->
getUserByCondition
(
33
,
66
,
0
);
// 线上销售-33 线上销售总监-66
$info
[
'online_sales_chief'
]
=
$perm
->
getUserByCondition
(
33
,
66
,
0
);
// 线上销售-33 线上销售总监-66
$info
[
'online_sales_mgr'
]
=
$perm
->
getDepartmentUser
(
33
,
63
);
// 线上销售-33 销售经理-63
$info
[
'online_sales_mgr'
]
=
$perm
->
getDepartmentUser
(
33
,
63
);
// 线上销售-33 销售经理-63
$info
[
'online_sales_kefu_1'
]
=
$perm
->
getUserByCondition
(
34
,
62
,
0
);
// 线上一组销售
$info
[
'online_sales_kefu_2'
]
=
$perm
->
getUserByCondition
(
35
,
62
,
0
);
// 线上二组销售
// 获取线上销售子级部门
$info
[
'online_sales_kefu_3'
]
=
$perm
->
getUserByCondition
(
36
,
62
,
0
);
// 线上三组销售
$sub_department
=
DB
::
table
(
'user_department'
)
->
where
(
'parent_id'
,
33
)
->
select
(
'department_id'
,
'department_name'
)
->
get
();
$info
[
'online_sales_kefu_4'
]
=
$perm
->
getUserByCondition
(
37
,
62
,
0
);
// 线上四组销售
foreach
(
$sub_department
as
&
$v
)
{
$v
->
sales
=
$perm
->
getUserByCondition
(
$v
->
department_id
,
62
,
0
);
}
$info
[
'sub_department'
]
=
$sub_department
;
// $info['online_sales_kefu_1'] = $perm->getUserByCondition(34, 62, 0); // 线上一组销售
// $info['online_sales_kefu_2'] = $perm->getUserByCondition(35, 62, 0); // 线上二组销售
// $info['online_sales_kefu_3'] = $perm->getUserByCondition(36, 62, 0); // 线上三组销售
// $info['online_sales_kefu_4'] = $perm->getUserByCondition(37, 62, 0); // 线上四组销售
$info
[
'offline_sales_chief'
]
=
$perm
->
getUserByCondition
(
40
,
90
,
0
);
// 线下销售-39 线下销售总监-90
$info
[
'offline_sales_chief'
]
=
$perm
->
getUserByCondition
(
40
,
90
,
0
);
// 线下销售-39 线下销售总监-90
...
...
resources/views/detail/sendSales.blade.php
View file @
3a6d11e9
...
@@ -64,12 +64,14 @@
...
@@ -64,12 +64,14 @@
</td>
</td>
</tr>
</tr>
@if (!empty($online_sales_kefu_1))
@if ($sub_department)
@foreach ($sub_department as $v)
@if (!empty($v->sales))
<tr>
<tr>
<td>
线销一组:
</td>
<td>
{{ $v->department_name }}
</td>
<td>
<td>
<ul>
<ul>
@foreach ($online_sales_kefu_1 as $vo)
@foreach ($v->sales as $vo)
@if ($vo->userId == $order_info['sale_id'])
@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>
<li><label><input
type=
"radio"
name=
"sale_id"
value=
"{{$vo->userId}}"
checked
/><span>
{{$vo->name}}
</span></label></li>
@else
@else
...
@@ -80,56 +82,7 @@
...
@@ -80,56 +82,7 @@
</td>
</td>
</tr>
</tr>
@endif
@endif
@if (!empty($online_sales_kefu_2))
<tr>
<td>
线销二组:
</td>
<td>
<ul>
@foreach ($online_sales_kefu_2 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($online_sales_kefu_3))
<tr>
<td>
线销三组:
</td>
<td>
<ul>
@foreach ($online_sales_kefu_3 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($online_sales_kefu_4))
<tr>
<td>
线销四组:
</td>
<td>
<ul>
@foreach ($online_sales_kefu_4 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
@endforeach
</ul>
</td>
</tr>
@endif
@endif
</table>
</table>
</ul>
</ul>
...
...
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