CaiWuXiTong/config/kuka_posting.php
chenxi c34175c3d1 fix: 发货明细型号表头改为物料描述 (#1115)
物料描述作为型号字段的显示表头,数据来源与顺序保持不变。
2026-11-11 19:50:09 +08:00

218 lines
14 KiB
PHP

<?php
return [
'source_name' => '聚水潭销售主题分析(新版)/ 商品利润 / 明细(订单商品)',
'source_sheet' => '发货明细表',
'quotation_source_name' => '顾家报价单',
'quotation_source_sheet' => 'Sheet1',
'quotation_key_field' => 'MaterialNumber',
'quotation_status_field' => 'RecordStatus',
'quotation_fields' => [
['name' => 'fbk1', 'source' => 'Fbk1', 'label' => '物料'],
['name' => 'material_number', 'source' => 'MaterialNumber', 'label' => '物料编码'],
['name' => 'material_desc', 'source' => 'MaterialDesc', 'label' => '物料描述'],
['name' => 'supplier_account', 'source' => 'ToElsAccount', 'label' => '供应商SRM账号'],
['name' => 'supplier_name', 'source' => 'ToElsAccountName', 'label' => '供应商名称'],
['name' => 'order_unit', 'source' => 'OrderUnit', 'label' => '单位'],
['name' => 'currency', 'source' => 'Currency', 'label' => '币种'],
['name' => 'tax_rate', 'source' => 'TaxRate', 'label' => '税率', 'kind' => 'number'],
['name' => 'ladder_quantity', 'source' => 'LadderQuantity', 'label' => '阶梯数量', 'kind' => 'number'],
['name' => 'ladder_grade', 'source' => 'LadderGrade', 'label' => '阶梯价格', 'kind' => 'number'],
['name' => 'price_including_tax', 'source' => 'PriceIncludingTax', 'label' => '含税价', 'kind' => 'number'],
['name' => 'price_excluding_tax', 'source' => 'PriceExcludingTax', 'label' => '不含税价', 'kind' => 'number'],
['name' => 'purchase_organization', 'source' => 'PurchaseOrganization', 'label' => '采购组织'],
['name' => 'factory', 'source' => 'Factory', 'label' => '工厂'],
['name' => 'purchase_group', 'source' => 'PurchaseGroup', 'label' => '采购组'],
['name' => 'purchase_group_desc', 'source' => 'PurchaseGroupDesc', 'label' => '采购组名称'],
['name' => 'price_valid_date', 'source' => 'PriceValidDate', 'label' => '价格开始时间', 'kind' => 'date'],
['name' => 'price_expiry_date', 'source' => 'PriceExpiryDate', 'label' => '价格结束时间', 'kind' => 'date'],
['name' => 'create_date', 'source' => 'CreateDate', 'label' => '创建时间', 'kind' => 'date'],
['name' => 'source_type', 'source' => 'SourceType', 'label' => '价格来源'],
['name' => 'over_tolerance', 'source' => 'OverTolerance', 'label' => '超量容差率', 'kind' => 'number'],
['name' => 'lack_tolerance', 'source' => 'LackTolerance', 'label' => '不足容差率', 'kind' => 'number'],
['name' => 'record_type', 'source' => 'RecordType', 'label' => '价格记录类型'],
['name' => 'remark', 'source' => 'Remark', 'label' => '备注'],
['name' => 'confirm_control', 'source' => 'Fbk6', 'label' => '确认控制'],
['name' => 'quota', 'source' => 'Quota', 'label' => '配额'],
['name' => 'supply_source', 'source' => 'Fbk5', 'label' => '货源'],
['name' => 'price_unit', 'source' => 'Fbk14', 'label' => '价格单位'],
[
'name' => 'record_status',
'source' => 'RecordStatus',
'label' => '状态',
'kind' => 'badge',
'tones' => ['生效' => 'success', '有效' => 'success'],
],
['name' => 'material_form', 'source' => 'Fbk3', 'label' => '物料形态'],
['name' => 'create_user', 'source' => 'CreateUser', 'label' => '创建人'],
['name' => 'last_update_user', 'source' => 'LastUpdateUser', 'label' => '最后修改人'],
['name' => 'last_update_date', 'source' => 'LastUpdateDate', 'label' => '最后修改时间', 'kind' => 'date'],
],
'stores' => [
'天猫-HX旗舰店101',
'京东-HX旗舰店101',
'京东-HX旗舰店102',
'京东-HX旗舰店103',
'京东-HX旗舰店104',
'拼多多-HX旗舰店101',
'拼多多-HX旗舰店102',
'拼多多-HX旗舰店103',
'拼多多-HX旗舰店105',
'拼多多-HX旗舰店106',
'拼多多-HX旗舰店107',
'抖音-HX旗舰店101',
],
'fields' => [
['name' => 'internal_order_no', 'source' => '内部订单号', 'label' => '内部订单号'],
['name' => 'marked_labels', 'source' => '标记多标签', 'label' => '标记多标签'],
['name' => 'after_sales_order_no', 'source' => '售后单号', 'label' => '售后单号'],
['name' => 'order_type', 'source' => '订单类型', 'label' => '订单类型'],
['name' => 'online_order_no', 'source' => '线上订单号', 'label' => '线上订单号'],
['name' => 'order_status', 'source' => '订单状态', 'label' => '订单状态', 'kind' => 'badge'],
['name' => 'shipping_warehouse', 'source' => '发货仓', 'label' => '发货仓'],
['name' => 'operations_cloud_warehouse', 'source' => '运营云仓', 'label' => '运营云仓'],
['name' => 'distributor', 'source' => '分销商', 'label' => '分销商'],
['name' => 'owner_distribution', 'source' => '货主分销', 'label' => '货主分销'],
['name' => 'store_name', 'source' => '店铺', 'label' => '店铺'],
['name' => 'buyer_account', 'source' => '买家账号', 'label' => '买家账号'],
['name' => 'seller_remark', 'source' => '卖家备注', 'label' => '卖家备注'],
['name' => 'order_date', 'source' => '订单日期', 'label' => '订单日期', 'kind' => 'date'],
['name' => 'shipping_date', 'source' => '发货日期', 'label' => '发货日期', 'kind' => 'date'],
['name' => 'payment_date', 'source' => '付款日期', 'label' => '付款日期', 'kind' => 'date'],
['name' => 'receipt_confirm_date', 'source' => '确认收货日期', 'label' => '确认收货日期', 'kind' => 'date'],
['name' => 'province', 'source' => '省', 'label' => '省'],
['name' => 'city', 'source' => '市', 'label' => '市'],
['name' => 'district', 'source' => '区县', 'label' => '区县'],
['name' => 'shipping_company', 'source' => '订单快递公司', 'label' => '订单快递公司'],
['name' => 'shipping_tracking_no', 'source' => '订单快递单号', 'label' => '订单快递单号'],
['name' => 'after_sales_company', 'source' => '售后快递公司', 'label' => '售后快递公司'],
['name' => 'after_sales_tracking_no', 'source' => '售后快递单号', 'label' => '售后快递单号'],
['name' => 'receiver_name', 'source' => '收货人', 'label' => '收货人'],
['name' => 'after_sales_registered_at', 'source' => '售后登记日期', 'label' => '售后登记日期', 'kind' => 'date'],
['name' => 'after_sales_confirmed_at', 'source' => '售后确认日期', 'label' => '售后确认日期', 'kind' => 'date'],
['name' => 'receiving_warehouse', 'source' => '收货仓', 'label' => '收货仓'],
['name' => 'after_sales_category', 'source' => '售后分类', 'label' => '售后分类'],
['name' => 'problem_type', 'source' => '问题类型', 'label' => '问题类型'],
['name' => 'product_code', 'source' => '商品编码', 'label' => '商品编码'],
['name' => 'original_online_order_no', 'source' => '原始线上订单号', 'label' => '原始线上订单号'],
['name' => 'style_code', 'source' => '款式编码', 'label' => '款式编码'],
['name' => 'item_number', 'source' => '货号', 'label' => '货号'],
['name' => 'material_number', 'source' => '物料编号', 'label' => '物料编号', 'optional' => true],
['name' => 'model', 'source' => '型号', 'label' => '物料描述', 'optional' => true],
['name' => 'cost', 'source' => '成本', 'label' => '成本', 'kind' => 'number', 'optional' => true],
['name' => 'product_material', 'source' => '产品材质', 'label' => '产品材质', 'optional' => true],
['name' => 'shipped_quantity', 'source' => '实发数量', 'label' => '实发数量', 'kind' => 'number'],
['name' => 'shipping_amount', 'source' => '发货金额', 'label' => '发货金额', 'kind' => 'number', 'optional' => true],
['name' => 'posting_label', 'source' => '过账标签', 'label' => '过账标签', 'optional' => true],
['name' => 'product_category', 'source' => '产品分类', 'label' => '产品分类'],
['name' => 'product_short_name', 'source' => '商品简称', 'label' => '商品简称'],
['name' => 'color_spec', 'source' => '颜色规格', 'label' => '颜色规格'],
['name' => 'brand', 'source' => '品牌', 'label' => '品牌'],
['name' => 'cost_source', 'source' => '成本价来源', 'label' => '成本价来源'],
['name' => 'sales_quantity', 'source' => '销售数量', 'label' => '销售数量', 'kind' => 'number'],
['name' => 'actual_shipping_amount', 'source' => '实发金额', 'label' => '实发金额', 'kind' => 'number'],
['name' => 'sales_amount', 'source' => '销售金额', 'label' => '销售金额', 'kind' => 'number'],
['name' => 'paid_amount', 'source' => '已付金额', 'label' => '已付金额', 'kind' => 'number'],
['name' => 'payable_amount', 'source' => '应付金额', 'label' => '应付金额', 'kind' => 'number'],
['name' => 'sale_price', 'source' => '售价', 'label' => '售价', 'kind' => 'number'],
['name' => 'current_return_quantity', 'source' => '当期退货数量', 'label' => '当期退货数量', 'kind' => 'number'],
['name' => 'current_actual_return_quantity', 'source' => '当期实退数量', 'label' => '当期实退数量', 'kind' => 'number'],
['name' => 'current_return_amount', 'source' => '当期退货金额', 'label' => '当期退货金额', 'kind' => 'number'],
['name' => 'current_actual_return_amount', 'source' => '当期实退金额', 'label' => '当期实退金额', 'kind' => 'number'],
['name' => 'freight_income', 'source' => '运费收入', 'label' => '运费收入', 'kind' => 'number'],
['name' => 'freight_income_allocated', 'source' => '运费收入分摊', 'label' => '运费收入分摊', 'kind' => 'number'],
['name' => 'whole_order_freight_expense', 'source' => '整单运费支出', 'label' => '整单运费支出', 'kind' => 'number'],
['name' => 'freight_expense', 'source' => '运费支出', 'label' => '运费支出', 'kind' => 'number'],
['name' => 'discount_amount', 'source' => '优惠金额', 'label' => '优惠金额', 'kind' => 'number'],
['name' => 'order_weight', 'source' => '订单重量', 'label' => '订单重量', 'kind' => 'number'],
['name' => 'supplier', 'source' => '供销商', 'label' => '供销商'],
['name' => 'salesperson', 'source' => '业务员', 'label' => '业务员'],
['name' => 'product_status', 'source' => '商品状态', 'label' => '商品状态', 'kind' => 'badge'],
['name' => 'refund_status', 'source' => '退款状态', 'label' => '退款状态', 'kind' => 'badge'],
['name' => 'buyer_paid', 'source' => '买家实付', 'label' => '买家实付', 'kind' => 'number'],
['name' => 'merchant_received', 'source' => '商家实收', 'label' => '商家实收', 'kind' => 'number'],
['name' => 'flag', 'source' => '小旗', 'label' => '小旗'],
['name' => 'platform_subsidy_amount', 'source' => '平台补贴金额', 'label' => '平台补贴金额', 'kind' => 'number'],
['name' => 'product_name', 'source' => '商品名称', 'label' => '商品名称'],
['name' => 'supplier_product_code', 'source' => '供应商商品编码', 'label' => '供应商商品编码'],
['name' => 'specification_model', 'source' => '规格型号', 'label' => '规格型号'],
['name' => 'material', 'source' => '材质', 'label' => '材质'],
],
'field_widths' => [
'internal_order_no' => 120,
'marked_labels' => 340,
'after_sales_order_no' => 120,
'order_type' => 100,
'online_order_no' => 190,
'order_status' => 105,
'shipping_warehouse' => 150,
'operations_cloud_warehouse' => 140,
'distributor' => 130,
'owner_distribution' => 130,
'store_name' => 170,
'buyer_account' => 190,
'seller_remark' => 260,
'order_date' => 165,
'shipping_date' => 165,
'payment_date' => 165,
'receipt_confirm_date' => 165,
'province' => 90,
'city' => 100,
'district' => 100,
'shipping_company' => 130,
'shipping_tracking_no' => 190,
'after_sales_company' => 130,
'after_sales_tracking_no' => 190,
'receiver_name' => 110,
'after_sales_registered_at' => 165,
'after_sales_confirmed_at' => 165,
'receiving_warehouse' => 150,
'after_sales_category' => 120,
'problem_type' => 130,
'product_code' => 200,
'original_online_order_no' => 190,
'style_code' => 150,
'item_number' => 150,
'material_number' => 150,
'model' => 150,
'cost' => 110,
'product_material' => 170,
'shipped_quantity' => 100,
'shipping_amount' => 120,
'posting_label' => 150,
'product_category' => 160,
'product_short_name' => 280,
'color_spec' => 170,
'brand' => 140,
'cost_source' => 140,
'sales_quantity' => 100,
'actual_shipping_amount' => 120,
'sales_amount' => 120,
'paid_amount' => 120,
'payable_amount' => 120,
'sale_price' => 110,
'current_return_quantity' => 120,
'current_actual_return_quantity' => 120,
'current_return_amount' => 130,
'current_actual_return_amount' => 130,
'freight_income' => 110,
'freight_income_allocated' => 130,
'whole_order_freight_expense' => 140,
'freight_expense' => 110,
'discount_amount' => 110,
'order_weight' => 110,
'supplier' => 130,
'salesperson' => 110,
'product_status' => 110,
'refund_status' => 110,
'buyer_paid' => 120,
'merchant_received' => 120,
'flag' => 80,
'platform_subsidy_amount' => 130,
'product_name' => 280,
'supplier_product_code' => 170,
'specification_model' => 190,
'material' => 210,
],
];