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
a8338a3d
authored
Apr 19, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
0662443f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
app/Http/Services/DataService.php
app/Http/Services/DataService.php
View file @
a8338a3d
...
...
@@ -489,16 +489,17 @@ class DataService
foreach
(
$suppliers
as
$supplier
)
{
$mainBrands
=
(
new
SupplierTransformer
())
->
getMainBrandNames
(
$supplier
[
'main_brands'
]);
$attachmentsField
=
SupplierAttachmentsModel
::
where
(
'supplier_id'
,
$supplier
[
'supplier_id'
])
->
pluck
(
'field_name'
)
->
toArray
();
$hasPinzhi
=
$hasHezuo
=
'
无
'
;
$hasPinzhi
=
$hasHezuo
=
'
否
'
;
if
(
in_array
(
'quality_assurance_agreement'
,
$attachmentsField
))
{
$hasPinzhi
=
'
有
'
;
$hasPinzhi
=
'
是
'
;
}
if
(
in_array
(
'cooperation_agreement'
,
$attachmentsField
))
{
$hasHezuo
=
'
有
'
;
$hasHezuo
=
'
是
'
;
}
$isYunxin
=
'否'
;
if
(
$supplier
[
'stockup_type'
])
{
if
(
strpos
(
"5"
,
$supplier
[
'stockup_type'
])
!==
false
)
{
if
(
strpos
(
$supplier
[
'stockup_type'
],
"5"
)
!==
false
)
{
dump
(
"是云芯"
);
$isYunxin
=
'是'
;
}
}
...
...
@@ -537,7 +538,6 @@ class DataService
$skuUserName
,
$skuUserDepartment
];
dump
(
$itemData
);
$excelData
[]
=
$itemData
;
}
array_unshift
(
$excelData
,
$header
);
...
...
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