浏览代码

feat(order): 添加收货地址字段到订单导出功能

- 在 Excel 导出表头中添加收货地址列
- 将用户收货地址数据添加到订单导出列表中
- 更新商户订单控制器中的导出逻辑以包含地址信息
shichen 4 月之前
父节点
当前提交
bfcc1f8bcf
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 0
      app/controller/merchant/store/order/Order.php
  2. 2 1
      crmeb/services/ExcelService.php

+ 1 - 0
app/controller/merchant/store/order/Order.php

@@ -417,6 +417,7 @@ class Order extends BaseController
417 417
                 $item['create_time'] ,
418 418
                 $item['ylj'] ,
419 419
                 $item['is_red_ylj_text'] ,
420
+                $item['user_address']
420 421
             ];
421 422
             $i++;
422 423
         }

+ 2 - 1
crmeb/services/ExcelService.php

@@ -77,7 +77,7 @@ class ExcelService
77 77
 //        var_dump($list);die;
78 78
 
79 79
         $header =    [
80
-            '序号','订单编号','收货人','手机号','商品信息','价格*数量','实际支付', '支付类型','支付方式','订单状态','下单时间','养老金','养老金状态',
80
+            '序号','订单编号','收货人','手机号','商品信息','价格*数量','实际支付', '支付类型','支付方式','订单状态','下单时间','养老金','养老金状态','收货地址',
81 81
         ];
82 82
 
83 83
 //
@@ -154,6 +154,7 @@ class ExcelService
154 154
                 $item['create_time'] ,
155 155
                 $item['ylj'] ,
156 156
                 $item['is_red_ylj_text'] ,
157
+                $item['user_address']
157 158
             ];
158 159
             $i++;
159 160
         }