149 lines
7.4 KiB
PHP
149 lines
7.4 KiB
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 订单售后费用明细(聚水潭「订单售后费用数据」导出)
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| 聚水潭导出文件是中文表头,这里把表头映射成页面字段键,导入时按这个映射入库。
|
|
| 未列出的表头会忽略;新增表头时补在这里即可。
|
|
*/
|
|
|
|
return [
|
|
// 聚水潭「商品利润 → 订单售后费用数据」原表可靠覆盖的起始日期:
|
|
// 更早月份在原表里不完整(例如 6 月订单只有费用行、没有组件/成本),走导入文件。
|
|
'goods_profit_from' => '2026-07-01',
|
|
|
|
'headers' => [
|
|
'内部订单号' => 'internal_order_no',
|
|
'线上订单号' => 'online_order_no',
|
|
'子订单号' => 'sub_order_no',
|
|
'售后单号' => 'after_sales_no',
|
|
'支付时间' => 'pay_time',
|
|
'订单完成时间' => 'order_complete_time',
|
|
'发货时间' => 'send_time',
|
|
'订单时间' => 'order_time',
|
|
'店铺名称' => 'shop_name',
|
|
'店铺编码' => 'shop_code',
|
|
'商品编码' => 'product_code',
|
|
'款式编码' => 'style_code',
|
|
'款式编码(参考)' => 'style_code',
|
|
'店铺商品编码' => 'shop_product_code',
|
|
'店铺款式编码' => 'shop_style_code',
|
|
'链接' => 'product_link',
|
|
"链接\u{3000}" => 'product_link',
|
|
'品牌' => 'brand',
|
|
'分类' => 'category',
|
|
'虚拟分类' => 'virtual_category',
|
|
'颜色及规格' => 'color_spec',
|
|
'商品名称' => 'product_name',
|
|
'唯一码' => 'unique_code',
|
|
'商品数量' => 'product_quantity',
|
|
'商品金额' => 'product_amount',
|
|
'商品成本' => 'product_cost',
|
|
'成本来源' => 'cost_source',
|
|
'其中:红冲订单成本' => 'reversal_order_cost',
|
|
'手动调整收入' => 'manual_adjust_income',
|
|
'手动调整成本' => 'manual_adjust_cost',
|
|
'商家优惠' => 'merchant_discount',
|
|
'运费收入' => 'freight_income',
|
|
'付款金额' => 'payment_amount',
|
|
'其中:平台优惠' => 'platform_discount',
|
|
'其中:红冲订单金额' => 'reversal_order_amount',
|
|
'实发金额' => 'actual_shipped_amount',
|
|
'实发数量' => 'actual_shipped_quantity',
|
|
'实发成本' => 'actual_shipped_cost',
|
|
'订单类型' => 'order_type',
|
|
'登记时间' => 'registration_time',
|
|
'确认时间' => 'confirmation_time',
|
|
'进仓时间' => 'warehouse_entry_time',
|
|
'线上商品名称' => 'online_product_name',
|
|
'发货前申请数量' => 'pre_application_quantity',
|
|
'发货前申请金额' => 'pre_application_amount',
|
|
'发货前申请成本' => 'pre_application_cost',
|
|
'发货前退回数量' => 'pre_return_quantity',
|
|
'发货前退回金额' => 'pre_return_amount',
|
|
'发货前退回成本' => 'pre_return_cost',
|
|
'发货前退款金额' => 'pre_refund_amount',
|
|
'发货前退款成本' => 'pre_refund_cost',
|
|
'发货前退平台补贴' => 'pre_platform_subsidy',
|
|
'发货后申请数量' => 'post_application_quantity',
|
|
'发货后申请金额' => 'post_application_amount',
|
|
'发货后申请成本' => 'post_application_cost',
|
|
'发货后退回数量' => 'post_return_quantity',
|
|
'发货后退回金额' => 'post_return_amount',
|
|
'发货后退回成本' => 'post_return_cost',
|
|
'发货后退款金额' => 'post_refund_amount',
|
|
'发货后退款成本' => 'post_refund_cost',
|
|
'发货后退平台补贴' => 'post_platform_subsidy',
|
|
'其中:次品商品数量' => 'defective_quantity',
|
|
'退款类型' => 'refund_type',
|
|
'问题类型' => 'question_type',
|
|
'明细退货类型' => 'detail_return_type',
|
|
'分类单' => 'classification_order',
|
|
'赠品' => 'is_gift',
|
|
'组合装' => 'combine_type',
|
|
'订单标签' => 'order_tags',
|
|
'售后单标签' => 'after_sales_tags',
|
|
'商品标签' => 'item_tags',
|
|
'发货仓编号' => 'shipping_warehouse_code',
|
|
'发货仓库' => 'shipping_warehouse',
|
|
'运营云仓' => 'operation_cloud_warehouse',
|
|
'收货仓编号' => 'receiving_warehouse_code',
|
|
'收货仓' => 'receiving_warehouse',
|
|
'供销商编号' => 'supplier_code',
|
|
'供销商' => 'supplier_name',
|
|
'快递单号' => 'express_no',
|
|
'快递公司' => 'express_company',
|
|
'省' => 'province',
|
|
'市' => 'city',
|
|
'业务员' => 'salesperson',
|
|
'线下客户编号' => 'offline_customer_code',
|
|
'线下客户编码' => 'offline_customer_code',
|
|
'线下客户名称' => 'offline_customer_name',
|
|
'500112冲减收入' => 'account_500112',
|
|
'60031erp快递费' => 'account_60031',
|
|
'800101其他服务费' => 'account_800101',
|
|
'800103其他活动费用' => 'account_800103',
|
|
'800104违约赔付' => 'account_800104',
|
|
'800105平台佣金' => 'account_800105',
|
|
'800105佣金' => 'account_800105',
|
|
'800106保证金' => 'account_800106',
|
|
'800107推广充值' => 'account_800107',
|
|
'800108品牌新享' => 'account_800108',
|
|
'800109淘宝客/多多进宝' => 'account_800109',
|
|
'800110运费险' => 'account_800110',
|
|
'800114公益宝贝' => 'account_800114',
|
|
'8001201直通车/钻展/快车等' => 'account_8001201',
|
|
'8001202推广红包冲减' => 'account_8001202',
|
|
'800122售后补偿' => 'account_800122',
|
|
'800125红包' => 'account_800125',
|
|
'800127退货运费' => 'account_800127',
|
|
'800129退款' => 'account_800129',
|
|
'800130订单' => 'account_800130',
|
|
'800132其他费用' => 'account_800132',
|
|
'800133品牌新享-收入' => 'account_800133',
|
|
'800134消费券-收入' => 'account_800134',
|
|
'800304售后补偿-聚工单' => 'account_800304',
|
|
'800501种菜佣金' => 'account_800501',
|
|
'800503发空包/赠品费用' => 'account_800503',
|
|
],
|
|
|
|
'number_keys' => [
|
|
'product_quantity', 'product_amount', 'product_cost', 'reversal_order_cost',
|
|
'manual_adjust_income', 'manual_adjust_cost', 'merchant_discount', 'freight_income',
|
|
'payment_amount', 'platform_discount', 'reversal_order_amount', 'actual_shipped_amount',
|
|
'actual_shipped_quantity', 'actual_shipped_cost', 'pre_application_quantity',
|
|
'pre_application_amount', 'pre_application_cost', 'pre_return_quantity', 'pre_return_amount',
|
|
'pre_return_cost', 'pre_refund_amount', 'pre_refund_cost', 'pre_platform_subsidy',
|
|
'post_application_quantity', 'post_application_amount', 'post_application_cost',
|
|
'post_return_quantity', 'post_return_amount', 'post_return_cost', 'post_refund_amount',
|
|
'post_refund_cost', 'post_platform_subsidy', 'defective_quantity',
|
|
'account_500112', 'account_60031', 'account_800101', 'account_800103', 'account_800104',
|
|
'account_800105', 'account_800106', 'account_800107', 'account_800108', 'account_800109',
|
|
'account_800110', 'account_800114', 'account_8001201', 'account_8001202', 'account_800122',
|
|
'account_800125', 'account_800127', 'account_800129', 'account_800130', 'account_800132',
|
|
'account_800133', 'account_800134', 'account_800304', 'account_800501', 'account_800503',
|
|
],
|
|
];
|