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
f4a96444
authored
Sep 05, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
最后上传时间
parent
8b4d2b56
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
app/Http/Transformers/SupplierTransformer.php
resources/views/script/SupplierListScript.blade.php
app/Http/Transformers/SupplierTransformer.php
View file @
f4a96444
...
@@ -30,6 +30,9 @@ class SupplierTransformer
...
@@ -30,6 +30,9 @@ class SupplierTransformer
$viewData
=
$viewCheckService
->
checkSupplierView
(
$supplierIds
);
$viewData
=
$viewCheckService
->
checkSupplierView
(
$supplierIds
);
$adminUserService
=
new
AdminUserService
();
$adminUserService
=
new
AdminUserService
();
//获取基石上传记录情况,展示第一次上传时间和最后一次上传时间
$lastUploadSkuTimes
=
SkuService
::
getUploadTimeBySupplierCodes
(
array_column
(
$list
,
'supplier_code'
),
'last'
);
foreach
(
$list
as
&
$supplier
)
{
foreach
(
$list
as
&
$supplier
)
{
$supplier
[
'viewed'
]
=
array_get
(
$viewData
,
$supplier
[
'supplier_id'
],
false
);
$supplier
[
'viewed'
]
=
array_get
(
$viewData
,
$supplier
[
'supplier_id'
],
false
);
$supplier
=
$this
->
getStockupType
(
$supplier
);
$supplier
=
$this
->
getStockupType
(
$supplier
);
...
@@ -63,6 +66,9 @@ class SupplierTransformer
...
@@ -63,6 +66,9 @@ class SupplierTransformer
$supplier
[
'create_name'
]
=
array_get
(
$userInfo
,
'name'
);
$supplier
[
'create_name'
]
=
array_get
(
$userInfo
,
'name'
);
}
}
$supplier
[
'last_upload_sku_time'
]
=
array_get
(
$lastUploadSkuTimes
,
$supplier
[
'supplier_code'
])
?
date
(
'Y-m-d H:i:s'
,
$lastUploadSkuTimes
[
$supplier
[
'supplier_code'
]])
:
''
;
//获取最新修改人以及下级审核员
//获取最新修改人以及下级审核员
$log
=
LogModel
::
getLastLog
(
$supplier
[
'supplier_id'
]);
$log
=
LogModel
::
getLastLog
(
$supplier
[
'supplier_id'
]);
$supplier
[
'last_update_name'
]
=
$log
?
$log
[
'admin_name'
]
:
''
;
$supplier
[
'last_update_name'
]
=
$log
?
$log
[
'admin_name'
]
:
''
;
...
...
resources/views/script/SupplierListScript.blade.php
View file @
f4a96444
...
@@ -205,7 +205,7 @@
...
@@ -205,7 +205,7 @@
{
field
:
'supplier_type_name'
,
title
:
'供应商类别'
,
align
:
'center'
,
width
:
110
},
{
field
:
'supplier_type_name'
,
title
:
'供应商类别'
,
align
:
'center'
,
width
:
110
},
{
field
:
'create_time'
,
title
:
'创建时间'
,
align
:
'center'
,
width
:
145
},
{
field
:
'create_time'
,
title
:
'创建时间'
,
align
:
'center'
,
width
:
145
},
{
field
:
'sku_create_time'
,
title
:
'首次上传sku时间'
,
align
:
'center'
,
width
:
145
},
{
field
:
'sku_create_time'
,
title
:
'首次上传sku时间'
,
align
:
'center'
,
width
:
145
},
{
field
:
'
sku_update
_time'
,
title
:
'最新上传sku时间'
,
align
:
'center'
,
width
:
145
},
{
field
:
'
last_upload_sku
_time'
,
title
:
'最新上传sku时间'
,
align
:
'center'
,
width
:
145
},
];
];
cols
.
push
(
cols
.
push
(
);
);
...
...
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