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
69efea34
authored
Jun 19, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
合同展示sku次啊够用
parent
7a28dab8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
app/Http/Transformers/SupplierContractTransformer.php
resources/views/script/SupplierContractListScript.blade.php
app/Http/Transformers/SupplierContractTransformer.php
View file @
69efea34
...
...
@@ -3,16 +3,23 @@
namespace
App\Http\Transformers
;
use
App\Model\IntracodeModel
;
class
SupplierContractTransformer
{
public
function
transformList
(
$list
)
{
$intraCodeModel
=
new
IntracodeModel
();
$users
=
$intraCodeModel
->
getSampleEncode
(
true
);
foreach
(
$list
as
&
$contract
)
{
if
(
!
$contract
)
{
continue
;
}
if
(
!
empty
(
$contract
[
'supplier'
][
'yunxin_channel_uid'
]))
{
$contract
[
'yunxin_channel_user_name'
]
=
array_get
(
$users
,
$contract
[
'supplier'
][
'yunxin_channel_uid'
]);
}
$contract
[
'create_time'
]
=
$contract
[
'create_time'
]
?
date
(
'Y-m-d H:i:s'
,
$contract
[
'create_time'
]
...
...
resources/views/script/SupplierContractListScript.blade.php
View file @
69efea34
...
...
@@ -108,6 +108,12 @@
width
:
100
},
{
field
:
'yunxin_channel_user_name'
,
title
:
'SKU采购员'
,
align
:
'center'
,
width
:
130
},
{
field
:
'update_time'
,
title
:
'更新时间'
,
align
:
'center'
,
...
...
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