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
bece04e5
authored
Aug 04, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixbug
parent
afd52278
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
app/Http/Controllers/Api/SupplierShareApplyApiController.php
app/Http/Services/SupplierShareApplyService.php
resources/views/web/SupplierDetail.blade.php
resources/views/web/UpdateSupplier.blade.php
app/Http/Controllers/Api/SupplierShareApplyApiController.php
View file @
bece04e5
...
@@ -36,6 +36,9 @@ class SupplierShareApplyApiController extends Controller
...
@@ -36,6 +36,9 @@ class SupplierShareApplyApiController extends Controller
if
(
empty
(
$supplier
))
{
if
(
empty
(
$supplier
))
{
$this
->
response
(
-
1
,
'该供应商名称不存在,请输入正确供应商名称'
);
$this
->
response
(
-
1
,
'该供应商名称不存在,请输入正确供应商名称'
);
}
}
if
(
empty
(
$supplier
[
'create_uid'
])
&&
empty
(
$supplier
[
'channel_uid'
])
&&
empty
(
$supplier
[
'purchase_uid'
]))
{
$this
->
response
(
-
1
,
'该供应商没有相关的所属人信息,请联系管理员'
);
}
$applyService
=
new
SupplierShareApplyService
();
$applyService
=
new
SupplierShareApplyService
();
$departments
=
$applyService
->
getApplyCanUseDepartments
(
$supplier
);
$departments
=
$applyService
->
getApplyCanUseDepartments
(
$supplier
);
//获取当前人的部门id,如果部门列表里面包含自己的部门,则提示该供应商属于自己部门,请找主管分配
//获取当前人的部门id,如果部门列表里面包含自己的部门,则提示该供应商属于自己部门,请找主管分配
...
...
app/Http/Services/SupplierShareApplyService.php
View file @
bece04e5
...
@@ -59,6 +59,9 @@ class SupplierShareApplyService
...
@@ -59,6 +59,9 @@ class SupplierShareApplyService
}
}
}
}
}
}
$allDepartments
=
array_filter
(
$allDepartments
,
function
(
$department
)
{
return
!
empty
(
$department
);
});
return
$allDepartments
;
return
$allDepartments
;
}
}
...
...
resources/views/web/SupplierDetail.blade.php
View file @
bece04e5
...
@@ -41,9 +41,9 @@
...
@@ -41,9 +41,9 @@
</div>
</div>
<div
class=
"layui-col-md2"
>
<div
class=
"layui-col-md2"
>
合作类型 :
合作类型 :
@if (mb_strlen($supplier['stockup_type_name'])>
20
)
@if (mb_strlen($supplier['stockup_type_name'])>
15
)
<span
title=
"{{$supplier['stockup_type_name']}}"
>
<span
title=
"{{$supplier['stockup_type_name']}}"
>
{{mb_substr($supplier['stockup_type_name'],0,
20
)}}...
{{mb_substr($supplier['stockup_type_name'],0,
15
)}}...
</span>
</span>
@else
@else
{{$supplier['stockup_type_name']}}
{{$supplier['stockup_type_name']}}
...
...
resources/views/web/UpdateSupplier.blade.php
View file @
bece04e5
...
@@ -50,9 +50,9 @@
...
@@ -50,9 +50,9 @@
</div>
</div>
<div
class=
"layui-col-md2"
>
<div
class=
"layui-col-md2"
>
合作类型 :
合作类型 :
@if (mb_strlen($supplier['stockup_type_name'])>
20
)
@if (mb_strlen($supplier['stockup_type_name'])>
15
)
<span
title=
"{{$supplier['stockup_type_name']}}"
>
<span
title=
"{{$supplier['stockup_type_name']}}"
>
{{mb_substr($supplier['stockup_type_name'],0,
20
)}}...
{{mb_substr($supplier['stockup_type_name'],0,
15
)}}...
</span>
</span>
@else
@else
{{$supplier['stockup_type_name']}}
{{$supplier['stockup_type_name']}}
...
...
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