Kirin hai 1 ano
pai
achega
209b1eae9b
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      app/admin/model/order/StoreOrder.php

+ 4 - 1
app/admin/model/order/StoreOrder.php

@@ -293,6 +293,7 @@ HTML;
                     if (isset($v['productInfo']['attrInfo']['suk'])) {
                         $suk = '(' . $v['productInfo']['attrInfo']['suk'] . ')';
                     }
+                    $code = $v['productInfo']['attrInfo']['bar_code'];
                 }
 //                $goodsName[] = implode(
 //                    [$v['productInfo']['store_name'], $suk, "[{$v['cart_num']} * {$v['truePrice']}]"], ' ');
@@ -305,7 +306,9 @@ HTML;
                     $item['user_phone'],
                     $item['user_address'],
                     implode([$v['productInfo']['store_name'], $suk]),
+                    $code ?? '',
                     $v['cart_num'],
+                    $v['truePrice'],
                     $v['cart_num'] * $v['truePrice'],
                     $item['pay_price'] * ($v['cart_num'] * $v['truePrice'] / $item['total_price']),
                     $item['pay_postage'],
@@ -318,7 +321,7 @@ HTML;
                 ];
             }
         }
-        PHPExcelService::setExcelHeader(['订单号', '性别', '电话', '收货人姓名', '收货人电话', '收货地址', '商品信息', '商品总件数',
+        PHPExcelService::setExcelHeader(['订单号', '性别', '电话', '收货人姓名', '收货人电话', '收货地址', '商品信息', '条码', '商品总件数', '商品单价',
             '总价格', '实际支付', '邮费', '优惠金额', '支付状态', '支付时间', '订单状态', '下单时间', '用户备注'])
             ->setExcelTile('订单导出' . date('YmdHis', time()), '订单信息' . time(), ' 生成时间:' . date('Y-m-d H:i:s', time()))
             ->setExcelContent($export)