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
07543bbe
authored
Aug 25, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
创建时间
parent
6a5db520
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
1 deletions
app/Http/Controllers/Filter/SkuListFilter.php
app/Http/Services/SkuService.php
resources/views/script/SkuListScript.blade.php
resources/views/web/sku/SkuListFilter.blade.php
app/Http/Controllers/Filter/SkuListFilter.php
View file @
07543bbe
...
...
@@ -52,6 +52,14 @@ class SkuListFilter
unset
(
$map
[
'update_time'
]);
}
if
(
!
empty
(
$map
[
'create_time'
]))
{
$times
=
explode
(
'~'
,
$map
[
'create_time'
]);
$startTime
=
strtotime
(
$times
[
0
])
?:
1420041600
;
$endTime
=
strtotime
(
$times
[
1
])
?:
time
();
$map
[
'create_time/range'
]
=
$startTime
.
','
.
$endTime
;
unset
(
$map
[
'create_time'
]);
}
if
(
!
empty
(
$map
[
'source_type'
]))
{
switch
(
$map
[
'source_type'
])
{
...
...
app/Http/Services/SkuService.php
View file @
07543bbe
...
...
@@ -165,6 +165,7 @@ class SkuService extends BaseService
$item
[
'source_name'
]
=
array_get
(
config
(
'field.SkuSource'
),
@
$skuDBData
[
'source'
],
''
);
$item
[
'org_name'
]
=
array_get
(
config
(
'field.SkuOrgList'
),
@
$skuDBData
[
'org_id'
],
''
);
$item
[
'ability_level_name'
]
=
(
!
empty
(
$item
[
'ability_level'
])
?
$item
[
'ability_level'
]
:
0
)
==
2
?
'强履约'
:
'弱履约'
;
$item
[
'create_time'
]
=
$skuDBData
[
'create_time'
]
?
date
(
'Y-m-d H:i:s'
,
$skuDBData
[
'create_time'
])
:
''
;
return
$item
;
},
$list
);
$list
=
$this
->
transformInvalidSkuTag
(
$list
);
...
...
resources/views/script/SkuListScript.blade.php
View file @
07543bbe
...
...
@@ -177,6 +177,7 @@
},
{
field
:
'org_name'
,
title
:
'所属组织'
,
align
:
'center'
,
width
:
100
},
{
field
:
'audit_user'
,
title
:
'审核人'
,
align
:
'center'
,
width
:
100
},
{
field
:
'create_time'
,
title
:
'创建时间'
,
align
:
'center'
,
width
:
150
},
{
field
:
'update_time'
,
title
:
'最近修改时间'
,
align
:
'center'
,
width
:
150
},
{
field
:
'audit_time'
,
title
:
'上传时间'
,
align
:
'center'
,
width
:
150
},
{
field
:
'cp_time'
,
title
:
'上架有效期'
,
align
:
'center'
,
width
:
180
},
...
...
resources/views/web/sku/SkuListFilter.blade.php
View file @
07543bbe
...
...
@@ -156,7 +156,7 @@
</div>
<div
class=
"layui-inline"
style=
"width: 600px"
>
@inject('transformableTimeIntervalPresenter','App\Presenters\Filter\TransformableTimeIntervalPresenter')
{!! $transformableTimeIntervalPresenter->render(['update_time'=>'更新时间','create_time'=>'上传时间']) !!}
{!! $transformableTimeIntervalPresenter->render(['update_time'=>'更新时间','create_time'=>'
创建时间','audit_time'=>'
上传时间']) !!}
</div>
</div>
...
...
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