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
caf0f166
authored
Nov 04, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
加入地区筛选
parent
6eb5bdd2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
1 deletions
app/Http/Controllers/Filter/SupplierFilter.php
app/Http/Controllers/SupplierController.php
resources/views/web/supplier/SupplierListFilter.blade.php
storage/framework/views/587faa134dc1f8953abf61cb2995b8264ba36a12.php
app/Http/Controllers/Filter/SupplierFilter.php
View file @
caf0f166
...
...
@@ -93,7 +93,9 @@ class SupplierFilter
if
((
isset
(
$map
[
'status'
])
&&
$map
[
'status'
]
===
"0"
)
||
!
empty
(
$map
[
'status'
]))
{
$query
->
whereIn
(
'status'
,
explode
(
','
,
$map
[
'status'
]));
}
if
((
isset
(
$map
[
'region'
])
&&
$map
[
'region'
]
===
"0"
)
||
!
empty
(
$map
[
'region'
]))
{
$query
->
whereIn
(
'region'
,
explode
(
','
,
$map
[
'region'
]));
}
if
(
!
empty
(
$map
[
'is_type'
]))
{
$query
->
where
(
'is_type'
,
$map
[
'is_type'
]);
}
...
...
app/Http/Controllers/SupplierController.php
View file @
caf0f166
...
...
@@ -107,6 +107,15 @@ class SupplierController extends Controller
}
$this
->
data
[
'supplierTypeData'
]
=
$supplierTypeData
;
$regionData
=
[];
foreach
(
config
(
'fixed.Region'
)
as
$key
=>
$value
)
{
$regionData
[]
=
[
'name'
=>
$value
,
'value'
=>
$key
,
];
}
$this
->
data
[
'regionData'
]
=
$regionData
;
//获取创建人部门树
$this
->
data
[
'createUserDepartmentList'
]
=
(
new
DepartmentService
())
->
getCreateUserDepartmentListForXmSelect
();
...
...
resources/views/web/supplier/SupplierListFilter.blade.php
View file @
caf0f166
...
...
@@ -235,6 +235,10 @@
@inject('statusPresenter', 'App\Presenters\StatusPresenter')
{!! $statusPresenter->render('sign_com_id', '签约公司', 0, \App\Http\Services\CrmService::getSignCompanyListMap()) !!}
</div>
<div
class=
"layui-inline"
>
@inject('multiSelectorPresenter','App\Presenters\MultiSelectorPresenter')
{!! $multiSelectorPresenter->render('region','区域','',$regionData) !!}
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
创建部门
</label>
<div
class=
"layui-input-inline"
>
...
...
storage/framework/views/587faa134dc1f8953abf61cb2995b8264ba36a12.php
View file @
caf0f166
...
...
@@ -261,6 +261,11 @@
<?php
echo
$statusPresenter
->
render
(
'sign_com_id'
,
'签约公司'
,
0
,
\App\Http\Services\CrmService
::
getSignCompanyListMap
());
?>
</div>
<div
class=
"layui-inline"
>
<?php
$multiSelectorPresenter
=
app
(
'App\Presenters\MultiSelectorPresenter'
);
?>
<?php
echo
$multiSelectorPresenter
->
render
(
'region'
,
'区域'
,
''
,
$regionData
);
?>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
创建部门
</label>
<div
class=
"layui-input-inline"
>
...
...
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