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
eaff939b
authored
Sep 11, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化筛选逻辑
parent
c3a69892
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
app/Http/Controllers/Filter/AttachmentAuditFilter.php
app/Http/Services/DataService.php
resources/views/web/AttachmentAuditList.blade.php
resources/views/web/SupplierApplyList.blade.php
app/Http/Controllers/Filter/AttachmentAuditFilter.php
View file @
eaff939b
...
...
@@ -45,12 +45,15 @@ class AttachmentAuditFilter
}
}
}
// 默认只显示审核中的数据
if
(
empty
(
$map
[
'status'
])
)
{
if
(
isset
(
$map
[
'status'
])
&&
$map
[
'status'
]
===
"0"
)
{
$query
->
where
(
'status'
,
AttachmentAuditModel
::
STATUS_PENDING
);
}
else
{
$query
->
where
(
'status'
,
$map
[
'status'
]);
if
(
!
empty
(
$map
[
'status'
]))
{
$query
->
where
(
'status'
,
$map
[
'status'
]);
}
else
{
$query
->
where
(
'status'
,
AttachmentAuditModel
::
STATUS_PENDING
);
}
}
// 供应商名称筛选
...
...
app/Http/Services/DataService.php
View file @
eaff939b
...
...
@@ -893,4 +893,15 @@ class DataService
'international_code'
=>
'TW'
,
]);
}
public
static
function
initSupplierAccountName
()
{
$supplierAccountList
=
SupplierAccountModel
::
where
(
'account_name'
,
''
)
->
get
()
->
toArray
();
foreach
(
$supplierAccountList
as
$supplierAccount
)
{
$supplierAccount
[
'account_name'
]
=
SupplierAccountService
::
generateAccountName
(
$supplierAccount
[
'supplier_id'
]);
SupplierAccountModel
::
where
(
'id'
,
$supplierAccount
[
'id'
])
->
update
([
'account_name'
=>
$supplierAccount
[
'account_name'
],
]);
}
}
}
resources/views/web/AttachmentAuditList.blade.php
View file @
eaff939b
...
...
@@ -26,7 +26,7 @@
<div
class=
"layui-inline"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('
审核uid','审核人',request()->get('audit_uid
'),$auditUidList) !!}
{!! $statusPresenter->render('
audit_name','审核人',request()->get('audit_name
'),$auditUidList) !!}
</div>
</div>
<div
class=
"layui-row"
>
...
...
resources/views/web/SupplierApplyList.blade.php
View file @
eaff939b
...
...
@@ -26,7 +26,7 @@
<div
class=
"layui-inline"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('
审核uid','审核人',request()->get('audit_uid
'),$auditUidList) !!}
{!! $statusPresenter->render('
audit_name','审核人',request()->get('audit_name
'),$auditUidList) !!}
</div>
</div>
<div
class=
"layui-row"
>
...
...
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