Răsfoiți Sursa

[智价云] 增加低价&违规商品( 库存销量快照)信息导出

tangyuanwang 2 săptămâni în urmă
părinte
comite
d20466cade

+ 38 - 32
app/Http/Controllers/Manager/Process/LowPriceGoods.php

@@ -382,22 +382,25 @@ class LowPriceGoods extends Controller
         $sheet->setCellValue('C2', '平台');
         $sheet->setCellValue('D2', '商品分类');
         $sheet->setCellValue('E2', '商品名称');
-        $sheet->setCellValue('F2', '商品规格');
-        $sheet->setCellValue('G2', '监控价格');
-        $sheet->setCellValue('H2', '挂网价格');
-        $sheet->setCellValue('I2', '累计挂网次数');
-        $sheet->setCellValue('J2', '连续挂网次数');
-        $sheet->setCellValue('K2', '链接地址');
-        $sheet->setCellValue('L2', '店铺名称');
-        $sheet->setCellValue('M2', '公司名称');
-        $sheet->setCellValue('N2', '公司分类');
-        $sheet->setCellValue('O2', '信用代码');
-        $sheet->setCellValue('P2', '省份');
-        $sheet->setCellValue('Q2', '城市');
-        $sheet->setCellValue('R2', '溯源责任人');
-        $sheet->setCellValue('S2', '处理状态');
-        $sheet->setCellValue('T2', '任务状态');
-        $sheet->setCellValue('U2', '记录时间');
+        $sheet->setCellValue('F2', '库存');
+        $sheet->setCellValue('G2', '销量');
+        $sheet->setCellValue('H2', '快照URL');
+        $sheet->setCellValue('I2', '商品规格');
+        $sheet->setCellValue('J2', '监控价格');
+        $sheet->setCellValue('K2', '挂网价格');
+        $sheet->setCellValue('L2', '累计挂网次数');
+        $sheet->setCellValue('M2', '连续挂网次数');
+        $sheet->setCellValue('N2', '链接地址');
+        $sheet->setCellValue('O2', '店铺名称');
+        $sheet->setCellValue('P2', '公司名称');
+        $sheet->setCellValue('Q2', '公司分类');
+        $sheet->setCellValue('R2', '信用代码');
+        $sheet->setCellValue('S2', '省份');
+        $sheet->setCellValue('T2', '城市');
+        $sheet->setCellValue('U2', '溯源责任人');
+        $sheet->setCellValue('V2', '处理状态');
+        $sheet->setCellValue('W2', '任务状态');
+        $sheet->setCellValue('X2', '记录时间');
 
         $platform_data = [
             '0' => '全部',
@@ -427,22 +430,25 @@ class LowPriceGoods extends Controller
             $sheet->setCellValue('C' . $row, isset($platform_data[$item['platform']]) ? $platform_data[$item['platform']] : '');
             $sheet->setCellValue('D' . $row, $item['category_name']);
             $sheet->setCellValue('E' . $row, $item['product_name']);
-            $sheet->setCellValue('F' . $row, $item['product_specs']);
-            $sheet->setCellValue('G' . $row, $item['suggested_price']);
-            $sheet->setCellValue('H' . $row, $item['online_posting_price']);
-            $sheet->setCellValue('I' . $row, $item['online_posting_count']);
-            $sheet->setCellValue('J' . $row, $item['continuous_listing_count']);
-            $sheet->setCellValue('k' . $row, $item['link_url']);
-            $sheet->setCellValue('L' . $row, $item['store_name']);
-            $sheet->setCellValue('M' . $row, $item['company_name']);
-            $sheet->setCellValue('N' . $row, $item['company_category_name']);
-            $sheet->setCellValue('O' . $row, $item['social_credit_code']);
-            $sheet->setCellValue('P' . $row, $item['province_name']);
-            $sheet->setCellValue('Q' . $row, $item['city_name']);
-            $sheet->setCellValue('R' . $row, $source_responsible_person_name);
-            $sheet->setCellValue('S' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
-            $sheet->setCellValue('T' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
-            $sheet->setCellValue('U' . $row, date('Y-m-d H:i:s', $item['insert_time']));
+            $sheet->setCellValue('F' . $row, $item['inventory']);
+            $sheet->setCellValue('G' . $row, $item['sales']);
+            $sheet->setCellValue('H' . $row, $item['snapshot_url']);
+            $sheet->setCellValue('I' . $row, $item['product_specs']);
+            $sheet->setCellValue('J' . $row, $item['suggested_price']);
+            $sheet->setCellValue('K' . $row, $item['online_posting_price']);
+            $sheet->setCellValue('L' . $row, $item['online_posting_count']);
+            $sheet->setCellValue('M' . $row, $item['continuous_listing_count']);
+            $sheet->setCellValue('N' . $row, $item['link_url']);
+            $sheet->setCellValue('O' . $row, $item['store_name']);
+            $sheet->setCellValue('P' . $row, $item['company_name']);
+            $sheet->setCellValue('Q' . $row, $item['company_category_name']);
+            $sheet->setCellValue('R' . $row, $item['social_credit_code']);
+            $sheet->setCellValue('S' . $row, $item['province_name']);
+            $sheet->setCellValue('T' . $row, $item['city_name']);
+            $sheet->setCellValue('U' . $row, $source_responsible_person_name);
+            $sheet->setCellValue('V' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
+            $sheet->setCellValue('W' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
+            $sheet->setCellValue('X' . $row, date('Y-m-d H:i:s', $item['insert_time']));
             $row++;
         }
         // 生成 Excel 文件

+ 34 - 28
app/Http/Controllers/Manager/Process/ViolationProduct.php

@@ -382,20 +382,23 @@ class ViolationProduct extends Controller
         $sheet->setCellValue('C2', '平台');
         $sheet->setCellValue('D2', '商品分类');
         $sheet->setCellValue('E2', '商品名称');
-        $sheet->setCellValue('F2', '商品规格');
-        $sheet->setCellValue('G2', '累计挂网次数');
-        $sheet->setCellValue('H2', '连续挂网次数');
-        $sheet->setCellValue('I2', '链接地址');
-        $sheet->setCellValue('J2', '店铺名称');
-        $sheet->setCellValue('K2', '公司名称');
-        $sheet->setCellValue('L2', '公司分类');
-        $sheet->setCellValue('M2', '信用代码');
-        $sheet->setCellValue('N2', '省份');
-        $sheet->setCellValue('O2', '城市');
-        $sheet->setCellValue('P2', '溯源责任人');
-        $sheet->setCellValue('Q2', '处理状态');
-        $sheet->setCellValue('R2', '任务状态');
-        $sheet->setCellValue('S2', '记录时间');
+        $sheet->setCellValue('F2', '库存');
+        $sheet->setCellValue('G2', '销量');
+        $sheet->setCellValue('H2', '快照URL');
+        $sheet->setCellValue('I2', '商品规格');
+        $sheet->setCellValue('J2', '累计挂网次数');
+        $sheet->setCellValue('K2', '连续挂网次数');
+        $sheet->setCellValue('L2', '链接地址');
+        $sheet->setCellValue('M2', '店铺名称');
+        $sheet->setCellValue('N2', '公司名称');
+        $sheet->setCellValue('O2', '公司分类');
+        $sheet->setCellValue('P2', '信用代码');
+        $sheet->setCellValue('Q2', '省份');
+        $sheet->setCellValue('R2', '城市');
+        $sheet->setCellValue('S2', '溯源责任人');
+        $sheet->setCellValue('T2', '处理状态');
+        $sheet->setCellValue('U2', '任务状态');
+        $sheet->setCellValue('V2', '记录时间');
 
         $platform_data = [
             '0' => '全部',
@@ -425,20 +428,23 @@ class ViolationProduct extends Controller
             $sheet->setCellValue('C' . $row, isset($platform_data[$item['platform']]) ? $platform_data[$item['platform']] : '');
             $sheet->setCellValue('D' . $row, $item['category_name']);
             $sheet->setCellValue('E' . $row, $item['product_name']);
-            $sheet->setCellValue('F' . $row, $item['product_specs']);
-            $sheet->setCellValue('G' . $row, $item['online_posting_count']);
-            $sheet->setCellValue('H' . $row, $item['continuous_listing_count']);
-            $sheet->setCellValue('I' . $row, $item['link_url']);
-            $sheet->setCellValue('J' . $row, $item['store_name']);
-            $sheet->setCellValue('K' . $row, $item['company_name']);
-            $sheet->setCellValue('L' . $row, $item['company_category_name']);
-            $sheet->setCellValue('M' . $row, $item['social_credit_code']);
-            $sheet->setCellValue('N' . $row, $item['province_name']);
-            $sheet->setCellValue('O' . $row, $item['city_name']);
-            $sheet->setCellValue('P' . $row, $source_responsible_person_name);
-            $sheet->setCellValue('Q' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
-            $sheet->setCellValue('R' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
-            $sheet->setCellValue('S' . $row, date('Y-m-d H:i:s', $item['insert_time']));
+            $sheet->setCellValue('F' . $row, $item['inventory']);
+            $sheet->setCellValue('G' . $row, $item['sales']);
+            $sheet->setCellValue('H' . $row, $item['snapshot_url']);
+            $sheet->setCellValue('I' . $row, $item['product_specs']);
+            $sheet->setCellValue('J' . $row, $item['online_posting_count']);
+            $sheet->setCellValue('K' . $row, $item['continuous_listing_count']);
+            $sheet->setCellValue('L' . $row, $item['link_url']);
+            $sheet->setCellValue('M' . $row, $item['store_name']);
+            $sheet->setCellValue('N' . $row, $item['company_name']);
+            $sheet->setCellValue('O' . $row, $item['company_category_name']);
+            $sheet->setCellValue('P' . $row, $item['social_credit_code']);
+            $sheet->setCellValue('Q' . $row, $item['province_name']);
+            $sheet->setCellValue('R' . $row, $item['city_name']);
+            $sheet->setCellValue('S' . $row, $source_responsible_person_name);
+            $sheet->setCellValue('T' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
+            $sheet->setCellValue('U' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
+            $sheet->setCellValue('V' . $row, date('Y-m-d H:i:s', $item['insert_time']));
             $row++;
         }
         foreach (range('A', 'P') as $column) {