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
43dbd620
authored
Aug 18, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'ysx-组织修改-20210817'
parents
3619fee8
74a757cf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
app/Http/Services/DepartmentService.php
config/field.php
resources/views/script/ApplySupplierShareScript.blade.php
resources/views/web/BatchAllocatePurchaseUser.blade.php
app/Http/Services/DepartmentService.php
View file @
43dbd620
...
...
@@ -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 @
43dbd620
...
...
@@ -95,5 +95,6 @@ return [
],
'ZiYingDepartmentId'
=>
51
,
'LiangYingDepartmentId'
=>
47
,
//60是本地的数据
'LiangYingDepartmentIds'
=>
[
47
,
60
,
72
]
];
\ No newline at end of file
resources/views/script/ApplySupplierShareScript.blade.php
View file @
43dbd620
...
...
@@ -44,8 +44,11 @@
//点击校验按钮
$
(
'#check_apply_supplier_share'
).
click
(
function
()
{
let
supplierName
=
$
(
'#supplier_name'
).
val
();
let
url
=
'/api/supplier_share_apply/CheckApplySupplierShare?supplier_name='
+
supplierName
;
let
res
=
ajax
(
url
);
let
url
=
'/api/supplier_share_apply/CheckApplySupplierShare'
;
let
data
=
{
supplier_name
:
supplierName
}
let
res
=
ajax
(
url
,
data
);
if
(
res
.
err_code
===
0
)
{
layer
.
msg
(
res
.
err_msg
,
{
icon
:
6
});
//设置对应的supplier_id,后端暂时放到res.count这个字段吧...
...
...
resources/views/web/BatchAllocatePurchaseUser.blade.php
View file @
43dbd620
...
...
@@ -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