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
d8d89b94
authored
Sep 03, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
页面修改
parent
cd0534ed
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletions
app/Http/Services/SkuService.php
config/field.php
resources/views/script/SkuListScript.blade.php
resources/views/web/sku/SkuListFilter.blade.php
app/Http/Services/SkuService.php
View file @
d8d89b94
...
@@ -136,10 +136,11 @@ class SkuService
...
@@ -136,10 +136,11 @@ class SkuService
$dbInfo
=
getSpuSkuDb
(
$item
[
'goods_id'
]);
$dbInfo
=
getSpuSkuDb
(
$item
[
'goods_id'
]);
$connection
=
DB
::
connection
(
$dbInfo
[
"db"
]);
$connection
=
DB
::
connection
(
$dbInfo
[
"db"
]);
$table
=
$dbInfo
[
'table'
];
$table
=
$dbInfo
[
'table'
];
$selectFields
=
[
'goods_id'
,
'create_time'
,
'eccn'
,
'source'
,
'encoded'
];
$selectFields
=
[
'goods_id'
,
'create_time'
,
'eccn'
,
'source'
,
'encoded'
,
'org_id'
];
$skuDBData
=
$connection
->
table
(
$table
)
->
select
(
$selectFields
)
->
where
(
'goods_id'
,
$item
[
'goods_id'
])
->
first
();
$skuDBData
=
$connection
->
table
(
$table
)
->
select
(
$selectFields
)
->
where
(
'goods_id'
,
$item
[
'goods_id'
])
->
first
();
$skuDBData
=
$skuDBData
?
$skuDBData
:
[];
$skuDBData
=
$skuDBData
?
$skuDBData
:
[];
$item
[
'source_name'
]
=
array_get
(
config
(
'field.SkuSource'
),
@
$skuDBData
[
'source'
],
''
);
$item
[
'source_name'
]
=
array_get
(
config
(
'field.SkuSource'
),
@
$skuDBData
[
'source'
],
''
);
$item
[
'org_name'
]
=
array_get
(
config
(
'field.SkuOrgList'
),
@
$skuDBData
[
'org_id'
],
''
);
return
$item
;
return
$item
;
},
$list
);
},
$list
);
$list
=
$this
->
transformInvalidSkuTag
(
$list
);
$list
=
$this
->
transformInvalidSkuTag
(
$list
);
...
...
config/field.php
View file @
d8d89b94
...
@@ -75,6 +75,13 @@ return [
...
@@ -75,6 +75,13 @@ return [
1
=>
'芯链商家'
1
=>
'芯链商家'
],
],
'SkuOrgList'
=>
[
1
=>
'猎芯'
,
2
=>
'深贸'
,
3
=>
'华云'
,
6
=>
'华云香港'
],
'AttachmentFields'
=>
[
'AttachmentFields'
=>
[
'business_license'
,
'business_license'
,
'billing_information'
,
'billing_information'
,
...
...
resources/views/script/SkuListScript.blade.php
View file @
d8d89b94
...
@@ -137,6 +137,7 @@
...
@@ -137,6 +137,7 @@
{
{
field
:
'source_name'
,
title
:
'接入方式'
,
align
:
'center'
,
width
:
150
field
:
'source_name'
,
title
:
'接入方式'
,
align
:
'center'
,
width
:
150
},
},
{
field
:
'org_name'
,
title
:
'所属组织'
,
align
:
'center'
,
width
:
100
},
{
field
:
'audit_user'
,
title
:
'审核人'
,
align
:
'center'
,
width
:
100
},
{
field
:
'audit_user'
,
title
:
'审核人'
,
align
:
'center'
,
width
:
100
},
{
field
:
'update_time'
,
title
:
'最近修改时间'
,
align
:
'center'
,
width
:
150
},
{
field
:
'update_time'
,
title
:
'最近修改时间'
,
align
:
'center'
,
width
:
150
},
{
field
:
'audit_time'
,
title
:
'上传时间'
,
align
:
'center'
,
width
:
150
},
{
field
:
'audit_time'
,
title
:
'上传时间'
,
align
:
'center'
,
width
:
150
},
...
...
resources/views/web/sku/SkuListFilter.blade.php
View file @
d8d89b94
...
@@ -146,6 +146,10 @@
...
@@ -146,6 +146,10 @@
@inject('statusPresenter','App\Presenters\StatusPresenter')
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('has_price','有无价格',request()->get('has_price'),['1'=> '有','-1'=> '无']) !!}
{!! $statusPresenter->render('has_price','有无价格',request()->get('has_price'),['1'=> '有','-1'=> '无']) !!}
</div>
</div>
<div
class=
"layui-inline"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('org_id/eq','所属组织',request()->get('org_id/eq'),config('field.SkuOrgList')) !!}
</div>
<div
class=
"layui-inline"
style=
"width: 600px"
>
<div
class=
"layui-inline"
style=
"width: 600px"
>
@inject('transformableTimeIntervalPresenter','App\Presenters\Filter\TransformableTimeIntervalPresenter')
@inject('transformableTimeIntervalPresenter','App\Presenters\Filter\TransformableTimeIntervalPresenter')
{!! $transformableTimeIntervalPresenter->render(['update_time'=>'更新时间','create_time'=>'上传时间']) !!}
{!! $transformableTimeIntervalPresenter->render(['update_time'=>'更新时间','create_time'=>'上传时间']) !!}
...
...
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