修改活动专区商品列表导出
This commit is contained in:
parent
a316fe15cc
commit
f265a07cd5
@ -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) {
|
||||
|
@ -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']);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user