修改活动专区商品列表导出

This commit is contained in:
lewis 2024-12-24 16:54:00 +08:00
parent a316fe15cc
commit f265a07cd5
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ class ActivityZoneFormLogic extends BaseLogic
$unit = reset_index($unit, 'id');
foreach ($products as &$item) {
$item['unit_name'] = $unit[$item['unit']]['name'] ?? '';
unset($item['unit'], $item['product_id']);
unset($item['unit'], $item['id']);
}
$data = ConfigLogic::getDictByType('activity_zone');
foreach ($data['activity_zone'] as $value) {

View File

@ -68,7 +68,7 @@ class ActivityZoneService
foreach ($data as $k => $v) {
$column = $k + 7;
$sheet->mergeCells("B{$column}:C{$column}");
$sheet->setCellValue('A' . ($k + 7), $v['id']);
$sheet->setCellValue('A' . ($k + 7), $v['product_id']);
$sheet->setCellValue("B{$column}", $v['store_name']);
$sheet->setCellValue("D{$column}", $v['unit_name']);
}