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
c2dface5
authored
Dec 23, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整推送人员
parent
f53bd71d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
app/Http/Controllers/OrderController.php
config/perm_args.php
app/Http/Controllers/OrderController.php
View file @
c2dface5
...
@@ -1204,14 +1204,15 @@ Class OrderController extends Controller
...
@@ -1204,14 +1204,15 @@ Class OrderController extends Controller
}
}
// $info['offline_sales_all'] = $perm->getDepartmentUser(40, 62); // 线下销售各组人员
// $info['offline_sales_all'] = $perm->getDepartmentUser(40, 62); // 线下销售各组人员
$info
[
'offline_sales_all'
]
=
$perm
->
getUserByDepartmentId
(
40
,
0
,
'userId not in ('
.
implode
(
','
,
$offline_sales_chief
)
.
')'
);
// 线下销售各组人员
$offline_sales
=
$perm
->
getUserByDepartmentId
(
40
,
0
,
'userId not in ('
.
implode
(
','
,
$offline_sales_chief
)
.
')'
);
// 线下销售各组人员
$key_customer_sales
=
$perm
->
getUserByDepartmentId
(
Config
(
'perm_args.key_customer_department_id'
),
0
);
// 大客户
$info
[
'self_kefu'
]
=
$perm
->
getUserByDepartmentId
(
38
,
0
);
// 自营销售部
$suzhou_sales
=
$perm
->
getUserByDepartmentId
(
Config
(
'perm_args.suzhou_department_id'
),
0
);
// 苏州
$info
[
'test'
]
=
$perm
->
getUserByCondition
(
''
,
Config
(
'perm_args.test_position_id'
),
0
);
// 测试
$info
[
'offline_sales_all'
]
=
array_merge
(
$offline_sales
,
$key_customer_sales
,
$suzhou_sales
);
$info
[
'self_kefu'
]
=
$perm
->
getUserByDepartmentId
(
38
,
0
);
// 自营销售部
$info
[
'sale_id'
]
=
$request
->
user
->
userId
;
$info
[
'test'
]
=
$perm
->
getUserByCondition
(
''
,
Config
(
'perm_args.test_position_id'
),
0
);
// 测试
$info
[
'role'
]
=
$perm
->
getUserRole
(
$request
);
$info
[
'sale_id'
]
=
$request
->
user
->
userId
;
$info
[
'role'
]
=
$perm
->
getUserRole
(
$request
);
return
view
(
'detail'
,
$info
);
return
view
(
'detail'
,
$info
);
}
}
...
...
config/perm_args.php
View file @
c2dface5
...
@@ -88,4 +88,7 @@ return [
...
@@ -88,4 +88,7 @@ return [
// 测试人员职位ID
// 测试人员职位ID
'test_position_id'
=>
[
23
,
24
,
25
],
'test_position_id'
=>
[
23
,
24
,
25
],
'key_customer_department_id'
=>
39
,
// 大客户部门ID
'suzhou_department_id'
=>
59
,
// 苏州部门ID
];
];
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