| 1 | orderReturnListGets | 退单信息 | array | orderReturnListGets | 可选 | 退单信息 |
| 1.1 | return_order_sn | 退单编号 | string | {{orderReturnListGets. return_order_sn}} | 可选 | 退单编号 |
| 1.2 | refund_code | 平台退单编号 | string | {{orderReturnListGets. refund_code}} | 可选 | 平台退单编号 |
| 1.3 | relating_order_sn | 关联订单号 | string | {{orderReturnListGets. relating_order_sn}} | 可选 | 关联订单号 |
| 1.4 | deal_code | 退单交易号 | string | {{orderReturnListGets. deal_code}} | 可选 | 退单交易号 |
| 1.5 | pay_status | 付款状态 | string | {{orderReturnListGets. pay_status}} | 可选 | 付款状态:0未结算、1已结算、2待结算 |
| 1.6 | return_order_type | 退单类型 | string | {{orderReturnListGets. return_order_type}} | 可选 | 退单类型 1退货、2追件 |
| 1.7 | lylx | 来源类型 | string | {{orderReturnListGets. lylx}} | 可选 | 来源类型 |
| 1.8 | lylx_name | 来源类型名称 | string | {{orderReturnListGets. lylx_name}} | 可选 | 来源类型名称 |
| 1.9 | return_shipping_code | 退货快递公司代码 | string | {{orderReturnListGets. return_shipping_code}} | 可选 | 退货快递公司代码 |
| 1.10 | return_shipping_sn | 退货快递物流单号 | string | {{orderReturnListGets. return_shipping_sn}} | 可选 | 退货快递物流单号 |
| 1.11 | return_shipping_name | 退货快递公司名称 | string | {{orderReturnListGets. return_shipping_name}} | 可选 | 退货快递公司名称 |
| 1.12 | return_shipping_fee | 快递费 | string | {{orderReturnListGets. return_shipping_fee}} | 可选 | 快递费 |
| 1.13 | sd_code | 店铺代码 | string | {{orderReturnListGets. sd_code}} | 可选 | 店铺代码 |
| 1.14 | sd_name | 店铺名称 | string | {{orderReturnListGets. sd_name}} | 可选 | 店铺名称 |
| 1.15 | last_update | 最后更新时间 | date | {{orderReturnListGets. last_update}} | 可选 | 最后更新时间 |
| 1.16 | fhck | 发货仓库代码 | string | {{orderReturnListGets. fhck}} | 可选 | 发货仓库代码 |
| 1.17 | fhck_name | 发货仓库名称 | string | {{orderReturnListGets. fhck_name}} | 可选 | 发货仓库名称 |
| 1.18 | qd_code | 渠道代码 | string | {{orderReturnListGets. qd_code}} | 可选 | 渠道代码 |
| 1.19 | qd_name | 渠道名称 | string | {{orderReturnListGets. qd_name}} | 可选 | 渠道名称 |
| 1.20 | add_time | 退单生成时间 | datetime | {{orderReturnListGets. add_time}} | 可选 | 退单生成时间 |
| 1.21 | return_shipping_time_rk | 退单入库时间 | datetime | {{orderReturnListGets. return_shipping_time_rk}} | 可选 | 退单入库时间 |
| 1.22 | tbfx_id | 淘宝分销交易号 | string | {{orderReturnListGets. tbfx_id}} | 可选 | 淘宝分销交易号 |
| 1.23 | return_user_name | 会员名称 | string | {{orderReturnListGets. return_user_name}} | 可选 | 会员名称 |
| 1.24 | receiver_name | 退货人姓名 | string | {{orderReturnListGets. receiver_name}} | 可选 | 退货人姓名 |
| 1.25 | receiver_address | 退货人地址 | string | {{orderReturnListGets. receiver_address}} | 可选 | 退货人地址 |
| 1.26 | receiver_tel | 退货人电话 | string | {{orderReturnListGets. receiver_tel}} | 可选 | 退货人电话 |
| 1.27 | receiver_mobile | 退货人手机 | string | {{orderReturnListGets. receiver_mobile}} | 可选 | 退货人手机 |
| 1.28 | return_total_amount | 订单总金额 | string | {{orderReturnListGets. return_total_amount}} | 可选 | 订单总金额[商品总金额goods_amount+运费shipping_fee+手续费cod_fee] |
| 1.29 | return_order_amount | 买家应付金额 | string | {{orderReturnListGets. return_order_amount}} | 可选 | 买家应付金额 |
| 1.30 | return_payment | 已付金额 | string | {{orderReturnListGets. return_payment}} | 可选 | 已付金额 |
| 1.31 | return_order_status | 退单状态 | string | {{orderReturnListGets. return_order_status}} | 可选 | 退单状态:0未确定、1已确认、3无效、10已完成 |
| 1.32 | return_shipping_status | 物流状态 | string | {{orderReturnListGets. return_shipping_status}} | 可选 | 物流状态:0未收货、1已收货,未入库、2已入库、3可入库、4已退回给客户 |
| 1.33 | js_money | 财务结算金额 | string | {{orderReturnListGets. js_money}} | 可选 | 财务结算金额 |
| 1.34 | return_market_goods_amount | 商品金额(市场价之和) | string | {{orderReturnListGets. return_market_goods_amount}} | 可选 | 商品金额(市场价之和) |
| 1.35 | return_shop_goods_amount | 实际应付商品总金额 | string | {{orderReturnListGets. return_shop_goods_amount}} | 可选 | 实际应付商品总金额 |
| 1.36 | return_other_discount_fee | 订单其他折让(整单折让) | string | {{orderReturnListGets. return_other_discount_fee}} | 可选 | 订单其他折让(整单折让) |
| 1.37 | pos_code | ipos终端代码 | string | {{orderReturnListGets. pos_code}} | 可选 | ipos终端代码 |
| 1.38 | is_o2o | O2O流程订单标识 | string | {{orderReturnListGets. is_o2o}} | 可选 | O2O流程订单标识 |
| 1.39 | o2o | O2O交易来源 | string | {{orderReturnListGets. o2o}} | 可选 | O2O交易来源 |
| 1.40 | sync_status | 0-未同步 1-已同步 2-处理中 10-已同步到erp | string | {{orderReturnListGets. sync_status}} | 可选 | 0-未同步 1-已同步 2-处理中 10-已同步到erp |
| 1.41 | receiver_province_name | 退货人省份 | string | {{orderReturnListGets. receiver_province_name}} | 可选 | 退货人省份 |
| 1.42 | receiver_city_name | 退货人市 | string | {{orderReturnListGets. receiver_city_name}} | 可选 | 退货人市 |
| 1.43 | receiver_district_name | 退货人区 | string | {{orderReturnListGets. receiver_district_name}} | 可选 | 退货人区 |
| 1.44 | lastchanged | 最后更新时间 | datetime | {{orderReturnListGets. lastchanged}} | 可选 | 最后更新时间 |
| 1.45 | orderReturnDetailGets | 退单商品信息列表 | array | orderReturnListGets.orderReturnDetailGets | 可选 | 退单商品信息列表 |
| 1.45.1 | orderReturnDetailGet | 退单商品信息 | array | orderReturnDetailGets.orderReturnDetailGet | 可选 | 退单商品信息 |
| 1.45.1.1 | goods_sn | 商品货号 | string | {{orderReturnDetailGet.goods_sn}} | 可选 | 商品货号 |
| 1.45.1.2 | goods_name | 商品名称 | string | {{orderReturnDetailGet.goods_name}} | 可选 | 商品名称 |
| 1.45.1.3 | goods_id | 商品id | string | {{orderReturnDetailGet.goods_id}} | 可选 | 商品id |
| 1.45.1.4 | payment | 实付金额 | string | {{orderReturnDetailGet.payment}} | 可选 | 实付金额 |
| 1.45.1.5 | market_price | 市场价 | string | {{orderReturnDetailGet.market_price}} | 可选 | 市场价 |
| 1.45.1.6 | share_price | 均摊价格 | string | {{orderReturnDetailGet.share_price}} | 可选 | 均摊价格 |
| 1.45.1.7 | goods_price | 商品单价 | string | {{orderReturnDetailGet.goods_price}} | 可选 | 商品单价 |
| 1.45.1.8 | share_payment | 均摊实付金额 | string | {{orderReturnDetailGet.share_payment}} | 可选 | 均摊实付金额 |
| 1.45.1.9 | shop_price | 当前售价 | string | {{orderReturnDetailGet.shop_price}} | 可选 | 当前售价 |
| 1.45.1.10 | discount | 折扣 | string | {{orderReturnDetailGet.discount}} | 可选 | 折扣 |
| 1.45.1.11 | goods_number | 商品数量 | string | {{orderReturnDetailGet.goods_number}} | 可选 | 商品数量 |
| 1.45.1.12 | goods_number_return_sj | 商品入库数量 | string | {{orderReturnDetailGet.goods_number_return_sj}} | 可选 | 商品入库数量 |
| 1.45.1.13 | goods_number_return | 商品实退数量 | string | {{orderReturnDetailGet.goods_number_return}} | 可选 | 商品实退数量 |
| 1.45.1.14 | return_reason | 退货原因 | string | {{orderReturnDetailGet.return_reason}} | 可选 | 退货原因 |
| 1.45.1.15 | return_reason_ex | 二级退货原因 | string | {{orderReturnDetailGet.return_reason_ex}} | 可选 | 二级退货原因 |
| 1.45.1.16 | barcode | 商品条码 | string | {{orderReturnDetailGet.barcode}} | 可选 | 商品条码 |
| 1.45.1.17 | color_code | 颜色代码 | string | {{orderReturnDetailGet.color_code}} | 可选 | 颜色代码 |
| 1.45.1.18 | color_name | 颜色名称 | string | {{orderReturnDetailGet.color_name}} | 可选 | 颜色名称 |
| 1.45.1.19 | size_code | 尺码代码 | string | {{orderReturnDetailGet.size_code}} | 可选 | 尺码代码 |
| 1.45.1.20 | brand_name | 品牌名称 | string | {{orderReturnDetailGet.brand_name}} | 可选 | 品牌名称 |
| 1.45.1.21 | brand_code | 品牌代码 | string | {{orderReturnDetailGet.brand_code}} | 可选 | 品牌代码 |
| 1.45.1.22 | sku | 商品SKU | string | {{orderReturnDetailGet.sku}} | 可选 | 商品SKU |
| 1.45.1.23 | scan_detail | 扫描信息 | array | orderReturnDetailGet.scan_detail | 可选 | 扫描信息 |
| 1.45.1.23.1 | record_barcode | 原始扫描条码 | string | {{scan_detail.record_barcode}} | 可选 | 原始扫描条码 |
| 1.45.1.23.2 | add_time | 扫描时间 | string | {{scan_detail.add_time}} | 可选 | 扫描时间 |
| 1.45.1.23.3 | smr | 扫描人 | string | {{scan_detail.smr}} | 可选 | 扫描人 |
| 1.45.1.23.4 | sl | 扫描数 | string | {{scan_detail.sl}} | 可选 | 扫描数 |
| 1.45.1.23.5 | remark | 备注 | string | {{scan_detail.remark}} | 可选 | 备注 |
| 2 | {{return_shipping_time_rk}} | 出库日期 | string | {{return_shipping_time_rk}} | 可选 | 出库日期,格式:2019-01-01 |
| 3 | {{orderReturnListGet.sd_code}} | 客户 | string | {{orderReturnListGet.sd_code}} | 可选 | 客户 |
| 4 | {{orderReturnListGet.return_order_sn}} | 单据编码 | string | {{orderReturnListGet.return_order_sn}} | 可选 | 单据编码 |
| 5 | audit | 操作类型 | string | audit | 可选 | 操作类型,审核audit、提交submit |
| 6 | orderReturnDetailGets | 商品分录 | array | orderReturnDetailGets | 可选 | 商品分录 |
| 6.1 | {{orderReturnDetailGets.goods_sn}} | 商品编码 | string | {{orderReturnDetailGets.goods_sn}} | 可选 | 商品编码 |
| 6.2 | _function round(({{orderReturnDetailGets.share_payment}}/{{orderReturnDetailGets.goods_number}}),4) | 含税单价 | int | _function round(({{orderReturnDetailGets.share_payment}}/{{orderReturnDetailGets.goods_number}}),4) | 可选 | 含税单价 |
| 6.3 | _function case '{{orderReturnDetailGets.share_payment}}' when '0.00' then true else false end | 是否赠品 | bool | _function case '{{orderReturnDetailGets.share_payment}}' when '0.00' then true else false end | 可选 | 是否赠品 |
| 6.4 | {{orderReturnDetailGets.goods_number}} | 数量 | int | {{orderReturnDetailGets.goods_number}} | 可选 | 数量 |
| 6.5 | {{orderReturnListGet.fhck}} | 仓库编码 | string | {{orderReturnListGet.fhck}} | 可选 | 仓库编码 |
| 6.6 | _findCollection find base_unit_id from 1be42e4a-5207-3c1d-8d49-1c7e49f90732 where number={{orderReturnDetailGets.goods_sn}} | 单位id | string | _findCollection find base_unit_id from 1be42e4a-5207-3c1d-8d49-1c7e49f90732 where number={{orderReturnDetailGets.goods_sn}} | 可选 | 单位id |