a订单导出
This commit is contained in:
parent
985d4c8b59
commit
bec14778a3
@ -37,22 +37,24 @@ class BusinessAfterOrderExport implements FromCollection, ShouldAutoSize
|
||||
'用户申请退运费金额',
|
||||
'退款原因',
|
||||
'描述',
|
||||
'图片链接',
|
||||
'申请类型',
|
||||
'售后单状态',
|
||||
'售后单创建时间',
|
||||
'图片链接',
|
||||
];
|
||||
$bodyData = [];
|
||||
foreach ($orders as $order) {
|
||||
$bodyData[] = [
|
||||
$order['order_sn'],
|
||||
$order['shop']['name'],
|
||||
bcdiv($order['refund_amount'],100,2),
|
||||
bcdiv($order['refund_shipping_amount'],100,2),
|
||||
bcdiv($order['refund_amount'], 100, 2),
|
||||
bcdiv($order['refund_shipping_amount'], 100, 2),
|
||||
$order['reason'],
|
||||
$order['description'],
|
||||
implode(",",$order['image_list']),
|
||||
empty($order['apply_type']) ? "仅退款" : "退货退款",
|
||||
AfterSaleOrderStatusEnum::getData($order['after_sales_status']),
|
||||
$order['after_sale_created_at']
|
||||
$order['after_sale_created_at'],
|
||||
implode(",", $order['image_list'])
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user