客户导出添加详情

This commit is contained in:
2025-10-10 09:21:20 +08:00
parent 8a0ef09927
commit 3a7449e2e9
+5 -3
View File
@@ -199,7 +199,8 @@ class CustomerService
'I1' => '描述',
'J1' => '所属人',
'K1' => '录入人',
'L1' => '录入时间',
'L1' => '详情',
'M1' => '录入时间',
];
// 设置表头样式
@@ -229,7 +230,7 @@ class CustomerService
],
];
$sheet->getStyle('A1:K1')->applyFromArray($headerStyle);
$sheet->getStyle('A1:M1')->applyFromArray($headerStyle);
// 填充数据
$row = 2;
@@ -249,7 +250,8 @@ class CustomerService
$sheet->setCellValue('I' . $row, $customerData['describe']);
$sheet->setCellValue('J' . $row, $customerData['user_name']); // 所属人姓名
$sheet->setCellValue('K' . $row, $customerData['enter_user_name']);
$sheet->setCellValue('L' . $row, $customerData['created_at']->toDateTimeString());
$sheet->setCellValue('L' . $row, strip_tags($customerData['desc_collect']));
$sheet->setCellValue('M' . $row, $customerData['created_at']->toDateTimeString());
$row++;
}