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
6c981f17
authored
May 11, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
接入方式显示问题
parent
f3b9996b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
app/Http/Services/DataService.php
app/Http/Services/SkuService.php
app/Http/routes.php
resources/views/script/SkuListScript.blade.php
app/Http/Services/DataService.php
View file @
6c981f17
...
...
@@ -1012,7 +1012,7 @@ class DataService
'purchase_amount'
,
'exchange_rate'
,
'currency'
])
->
get
()
->
toArray
();
])
->
where
(
'status'
,
'!='
,
-
3
)
->
get
()
->
toArray
();
//计算出采购金额
$totalAmount
=
0
;
foreach
(
$purchaseOrders
as
$purchaseOrder
)
{
...
...
app/Http/Services/SkuService.php
View file @
6c981f17
...
...
@@ -106,6 +106,7 @@ class SkuService
$goodsTag
=
$redis
->
hget
(
'goods_tag'
,
$item
[
'goods_id'
]);
$goodsTag
=
$goodsTag
?
json_decode
(
$goodsTag
,
true
)
:
''
;
$item
[
'sku_tags'
]
=
$goodsTag
?
array_get
(
$goodsTag
,
'customer_tag'
)
:
''
;
$item
[
'source_name'
]
=
array_get
(
config
(
'field.SkuSource'
),
$item
[
'source'
],
''
);
return
$item
;
},
$list
);
$list
=
$this
->
transformInvalidSkuTag
(
$list
);
...
...
app/Http/routes.php
View file @
6c981f17
...
...
@@ -67,5 +67,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
(
new
\App\Http\Services\DataService
())
->
exportNotUploadSkuSupplier
();
//
(new \App\Http\Services\DataService())->exportNotUploadSkuSupplier();
});
resources/views/script/SkuListScript.blade.php
View file @
6c981f17
...
...
@@ -105,9 +105,7 @@
}
},
{
field
:
' access_way'
,
title
:
'接入方式'
,
align
:
'center'
,
width
:
150
,
templet
:
function
(
d
)
{
return
"人工上传"
;
}
field
:
' source_name'
,
title
:
'接入方式'
,
align
:
'center'
,
width
:
150
},
{
field
:
'audit_user'
,
title
:
'审核人'
,
align
:
'center'
,
width
:
100
},
{
field
:
'update_time'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
150
},
...
...
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