Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
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
159fddde
authored
Aug 17, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
适配部门修改
parent
485ef207
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
app/Http/Services/DepartmentService.php
config/field.php
resources/views/web/BatchAllocatePurchaseUser.blade.php
app/Http/Services/DepartmentService.php
View file @
159fddde
...
...
@@ -84,8 +84,8 @@ class DepartmentService
return
$departmentModel
->
where
(
'department_id'
,
$departmentId
)
->
first
()
->
toArray
();
}
else
{
$department
=
$departmentModel
->
where
(
'department_id'
,
$departmentId
)
->
first
();
//如果当前的部门id已经是联营采购部门Id
if
(
$departmentId
==
config
(
'field.LiangYingDepartmentId'
))
{
//如果当前的部门id已经是联营采购部门Id
(二级,目前有联营一部和联营二部)
if
(
in_array
(
$departmentId
,
config
(
'field.LiangYingDepartmentIds'
)
))
{
return
$department
->
toArray
();
}
else
{
if
(
!
empty
(
$department
))
{
...
...
config/field.php
View file @
159fddde
...
...
@@ -88,5 +88,6 @@ return [
],
'ZiYingDepartmentId'
=>
51
,
'LiangYingDepartmentId'
=>
47
,
//60是本地的数据
'LiangYingDepartmentIds'
=>
[
47
,
60
,
72
]
];
\ No newline at end of file
resources/views/web/BatchAllocatePurchaseUser.blade.php
View file @
159fddde
...
...
@@ -4,7 +4,7 @@
}
</style>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
style=
"height: 1
5
0px"
>
<div
class=
"layui-card-header"
style=
"height: 1
7
0px"
>
<blockquote
class=
"layui-elem-quote layui-text"
>
<b>
渠道开发员设置
</b>
</blockquote>
...
...
@@ -18,7 +18,7 @@
</div>
</div>
<div
class=
"layui-form-item"
>
<div
align=
"center"
style=
"margin-top:
2
0px;text-align: right"
>
<div
align=
"center"
style=
"margin-top:
1
0px;text-align: right"
>
<button
type=
"button"
class=
"layui-btn layui-btn-sm layui-btn-info submit-loading"
lay-submit
lay-filter=
"auditSupplier"
>
确认
</button>
...
...
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