Commit a8338a3d by 杨树贤

优化

parent 0662443f
Showing with 5 additions and 5 deletions
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment