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
970f2d56
authored
May 13, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
设置筛选
parent
a9cacbe9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
app/Http/Controllers/Filter/SkuListFilter.php
resources/views/web/sku/SkuListFilter.blade.php
app/Http/Controllers/Filter/SkuListFilter.php
View file @
970f2d56
...
...
@@ -8,6 +8,7 @@ use App\Model\IntracodeModel;
use
App\Model\UserInfoModel
;
use
App\Model\DepartmentModel
;
use
App\Model\SupplierSyncModel
;
use
App\Model\SupplierChannelModel
;
use
App\Http\Services\AdminUserService
;
use
App\Http\Services\DepartmentService
;
...
...
@@ -73,6 +74,23 @@ class SkuListFilter
unset
(
$map
[
'data_channel_uid'
]);
}
//根据数据维护员(purchase_uid)查询对应的供应商编码,多个一起请求
if
(
!
empty
(
$map
[
'purchase_uid'
]))
{
$supplierCodes
=
SupplierChannelModel
::
where
(
'purchase_uid'
,
$map
[
'purchase_uid'
])
->
whereNotNull
(
'supplier_code'
)
->
where
(
'supplier_code'
,
'!='
,
''
)
->
pluck
(
'supplier_code'
)
->
toArray
();
if
(
!
empty
(
$supplierCodes
))
{
dd
(
implode
(
','
,
$supplierCodes
));
$map
[
'canal/eqs'
]
=
implode
(
','
,
$supplierCodes
);
}
else
{
// 没有匹配的供应商,传一个不存在的值以确保查不到数据
$map
[
'canal/eqs'
]
=
'NO_MATCH'
;
}
unset
(
$map
[
'purchase_uid'
]);
}
if
(
!
empty
(
$map
[
'source_type'
]))
{
switch
(
$map
[
'source_type'
])
{
case
'all'
:
...
...
resources/views/web/sku/SkuListFilter.blade.php
View file @
970f2d56
...
...
@@ -124,6 +124,11 @@
</div>
<div
class=
"layui-inline"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('purchase_uid','数据维护员',request()->get('purchase_uid'),
$userCodes) !!}
</div>
<div
class=
"layui-inline"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('customer_tags/condition','标签',null,$skuTags) !!}
</div>
<div
class=
"layui-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