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
3492b7ba
authored
Jun 20, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改导出
parent
a452e1f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
app/Http/Services/DataService.php
app/Http/Services/DataService.php
View file @
3492b7ba
...
...
@@ -442,6 +442,7 @@ class DataService
public
function
exportSupplierForUnionData
()
{
$suppliers
=
SupplierChannelModel
::
select
([
'supplier_id'
,
'supplier_code'
,
'supplier_name'
,
'channel_uid'
,
...
...
@@ -450,13 +451,13 @@ class DataService
->
whereRaw
(
'supplier_name NOT LIKE "%-1"'
)
->
get
();
$excelData
=
[];
$header
=
[
'供应商编码'
,
'供应商名称'
,
'ID'
,
'原系统供应商名称'
,
'标准供应商名称'
,
'创建时间'
,
'对应采购员'
,
'采购组别'
,
'所有采购员'
,
'系统来源'
,
'采购'
,
'部门组别'
,
'所有采购'
,
];
foreach
(
$suppliers
as
$supplier
)
{
...
...
@@ -476,13 +477,13 @@ class DataService
}
$itemData
=
[
$supplier
[
'supplier_
code
'
],
$supplier
[
'supplier_
id
'
],
$supplier
[
'supplier_name'
],
''
,
$supplier
[
'create_time'
]
?
date
(
'Y-m-d H:i:s'
,
$supplier
[
'create_time'
])
:
''
,
$firstChannelUserName
,
$firstChannelUserDepartmentName
,
$allChannelUserName
,
'科技'
,
];
$excelData
[]
=
$itemData
;
}
...
...
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