Commit 3492b7ba by 杨树贤

修改导出

parent a452e1f3
Showing with 9 additions and 8 deletions
...@@ -442,6 +442,7 @@ class DataService ...@@ -442,6 +442,7 @@ class DataService
public function exportSupplierForUnionData() public function exportSupplierForUnionData()
{ {
$suppliers = SupplierChannelModel::select([ $suppliers = SupplierChannelModel::select([
'supplier_id',
'supplier_code', 'supplier_code',
'supplier_name', 'supplier_name',
'channel_uid', 'channel_uid',
...@@ -450,13 +451,13 @@ class DataService ...@@ -450,13 +451,13 @@ class DataService
->whereRaw('supplier_name NOT LIKE "%-1"')->get(); ->whereRaw('supplier_name NOT LIKE "%-1"')->get();
$excelData = []; $excelData = [];
$header = [ $header = [
'供应商编码', 'ID',
'供应商名称', '原系统供应商名称',
'标准供应商名称',
'创建时间', '创建时间',
'对应采购员', '采购',
'采购组别', '部门组别',
'所有采购员', '所有采购',
'系统来源',
]; ];
foreach ($suppliers as $supplier) { foreach ($suppliers as $supplier) {
...@@ -476,13 +477,13 @@ class DataService ...@@ -476,13 +477,13 @@ class DataService
} }
$itemData = [ $itemData = [
$supplier['supplier_code'], $supplier['supplier_id'],
$supplier['supplier_name'], $supplier['supplier_name'],
'',
$supplier['create_time'] ? date('Y-m-d H:i:s', $supplier['create_time']) : '', $supplier['create_time'] ? date('Y-m-d H:i:s', $supplier['create_time']) : '',
$firstChannelUserName, $firstChannelUserName,
$firstChannelUserDepartmentName, $firstChannelUserDepartmentName,
$allChannelUserName, $allChannelUserName,
'科技',
]; ];
$excelData[] = $itemData; $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