Commit 3492b7ba by 杨树贤

修改导出

parent a452e1f3
Showing with 9 additions and 8 deletions
......@@ -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;
}
......
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