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
3a69fa2c
authored
Oct 18, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
字段调整
parent
a57dad7f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletions
app/Http/Services/SkuService.php
app/Http/Transformers/SupplierTransformer.php
resources/views/script/SkuListScript.blade.php
app/Http/Services/SkuService.php
View file @
3a69fa2c
...
...
@@ -81,6 +81,12 @@ class SkuService
}
}
}
$standardBrandId
=
array_get
(
$spu
,
's_brand_id'
);
if
(
$standardBrandId
)
{
$standardBrand
=
$redis
->
hget
(
'standard_brand'
,
$standardBrandId
);
$standardBrand
=
json_decode
(
$standardBrand
,
true
);
$sku
[
'standard_brand_name'
]
=
$standardBrand
[
'brand_name'
];
}
//获取价格
$moqPrice
=
[];
...
...
app/Http/Transformers/SupplierTransformer.php
View file @
3a69fa2c
...
...
@@ -66,9 +66,13 @@ class SupplierTransformer
$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'
,
$supplier
[
'last_upload_sku_time'
]
=
array_get
(
$lastUploadSkuTimes
,
$supplier
[
'supplier_code'
])
?
date
(
'Y-m-d H:i:s'
,
$lastUploadSkuTimes
[
$supplier
[
'supplier_code'
]])
:
''
;
//创建时间和最后上传时间互相补充
$supplier
[
'last_upload_sku_time'
]
=
$supplier
[
'last_upload_sku_time'
]
?:
$supplier
[
'sku_create_time'
];
$supplier
[
'sku_create_time'
]
=
$supplier
[
'sku_create_time'
]
?:
$supplier
[
'last_upload_sku_time'
];
//获取最新修改人以及下级审核员
$log
=
LogModel
::
getLastLog
(
$supplier
[
'supplier_id'
]);
$supplier
[
'last_update_name'
]
=
$log
?
$log
[
'admin_name'
]
:
''
;
...
...
resources/views/script/SkuListScript.blade.php
View file @
3a69fa2c
...
...
@@ -71,6 +71,9 @@
{
field
:
'brand_name'
,
title
:
'品牌'
,
align
:
'center'
,
width
:
120
},
{
field
:
'standard_brand_name'
,
title
:
'标准品牌'
,
align
:
'center'
,
width
:
120
},
{
field
:
'stock'
,
title
:
'库存数量'
,
align
:
'center'
,
width
:
80
},
{
field
:
'cn_price'
,
title
:
'人民币成本价(¥)'
,
align
:
'left'
,
width
:
150
,
templet
:
function
(
data
)
{
...
...
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