{
    "method": "erp.purchreturn.get",
    "summary": "采购退货查询",
    "description": "开放平台采购退货查询",
    "request": {
        "contentType": "application/json",
        "schema": {
            "type": "object",
            "properties": {
                "endModifyTime": {
                    "type": "string",
                    "example": "2025-01-01",
                    "description": "修改时间止"
                },
                "endProvDate": {
                    "type": "string",
                    "example": "2025-01-01",
                    "description": "审核时间止"
                },
                "endDate": {
                    "type": "string",
                    "example": "2025-01-01",
                    "description": "创建时间止"
                },
                "startReturnTime": {
                    "type": "string",
                    "example": "2025-01-01",
                    "description": "退货时间起"
                },
                "pageSize": {
                    "type": "integer",
                    "example": 1,
                    "description": "每页页数（默认50）"
                },
                "orderNum": {
                    "type": "string",
                    "example": "CGT2024123456789",
                    "description": "退货单编号"
                },
                "warehouseCode": {
                    "type": "string",
                    "example": "",
                    "description": "仓库编号支持批量例:123,456"
                },
                "outSkuCode": {
                    "type": "string",
                    "example": "123,321",
                    "description": "外部条码支持批量例:123,456"
                },
                "startModifyTime": {
                    "type": "string",
                    "example": "2025-01-01",
                    "description": "修改时间起"
                },
                "pageIndex": {
                    "type": "integer",
                    "example": 0,
                    "description": "页码（默认0）"
                },
                "endReturnTime": {
                    "type": "string",
                    "example": "2025-01-01",
                    "description": "退货时间止"
                },
                "startDate": {
                    "type": "string",
                    "example": "2025-01-01",
                    "description": "创建时间起"
                },
                "startProvDate": {
                    "type": "string",
                    "example": "2025-01-01",
                    "description": "审核时间起"
                }
            }
        },
        "example": {
            "endModifyTime": "2025-01-01",
            "endProvDate": "2025-01-01",
            "endDate": "2025-01-01",
            "startReturnTime": "2025-01-01",
            "pageSize": 1,
            "orderNum": "CGT2024123456789",
            "warehouseCode": "",
            "outSkuCode": "123,321",
            "startModifyTime": "2025-01-01",
            "pageIndex": 0,
            "endReturnTime": "2025-01-01",
            "startDate": "2025-01-01",
            "startProvDate": "2025-01-01"
        }
    },
    "response": {
        "contentType": "application/json",
        "schema": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer",
                    "description": "返回码，200 成功"
                },
                "msg": {
                    "type": "string"
                },
                "subCode": {
                    "type": "string"
                },
                "result": {
                    "type": "object",
                    "properties": {
                        "data": {
                            "type": "object",
                            "properties": {
                                "purchOrderReturn": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "orderType": {
                                                "type": "string",
                                                "example": "2",
                                                "description": "订单类型1-采购订单2-退货订单"
                                            },
                                            "deptName": {
                                                "type": "string",
                                                "example": "",
                                                "description": "部门名字"
                                            },
                                            "busiName": {
                                                "type": "string",
                                                "example": "",
                                                "description": "业务员名字"
                                            },
                                            "orderId": {
                                                "type": "string",
                                                "example": "1",
                                                "description": "退货单ID"
                                            },
                                            "companyName": {
                                                "type": "string",
                                                "example": "",
                                                "description": "公司名字"
                                            },
                                            "crtName": {
                                                "type": "string",
                                                "example": "",
                                                "description": "创建人名字"
                                            },
                                            "purchCode": {
                                                "type": "string",
                                                "example": "",
                                                "description": "采购退货类型编号201-普通退货202-资产退回203-委外退料"
                                            },
                                            "text": {
                                                "type": "string",
                                                "example": "",
                                                "description": "备注"
                                            },
                                            "flagData": {
                                                "type": "string",
                                                "example": "",
                                                "description": "标记"
                                            },
                                            "logisticCode": {
                                                "type": "string",
                                                "example": "",
                                                "description": "物流公司编码"
                                            },
                                            "deptId": {
                                                "type": "string",
                                                "example": "1",
                                                "description": "部门ID"
                                            },
                                            "vendName": {
                                                "type": "string",
                                                "example": "",
                                                "description": "供应商名字"
                                            },
                                            "list": {
                                                "type": "array",
                                                "items": {
                                                    "type": "object",
                                                    "properties": {
                                                        "outQuantity": {
                                                            "type": "integer",
                                                            "example": 1,
                                                            "description": "出库数量"
                                                        },
                                                        "outSkuCode": {
                                                            "type": "string",
                                                            "example": "",
                                                            "description": "外部货品主键"
                                                        },
                                                        "price": {
                                                            "type": "number",
                                                            "example": 1.0,
                                                            "description": "价格"
                                                        },
                                                        "id": {
                                                            "type": "string",
                                                            "example": "1",
                                                            "description": "订单详情id"
                                                        },
                                                        "goodsName": {
                                                            "type": "string",
                                                            "example": "",
                                                            "description": "商品名称"
                                                        },
                                                        "skuId": {
                                                            "type": "string",
                                                            "example": "1",
                                                            "description": "规格ID"
                                                        },
                                                        "taxrate": {
                                                            "type": "number",
                                                            "example": 1.0,
                                                            "description": "税率"
                                                        },
                                                        "unitName": {
                                                            "type": "string",
                                                            "example": "",
                                                            "description": "单位名字"
                                                        },
                                                        "isCertified": {
                                                            "type": "integer",
                                                            "example": 1,
                                                            "description": "是否正品0-否1-是"
                                                        },
                                                        "rowRemark": {
                                                            "type": "string",
                                                            "example": "",
                                                            "description": "行级备注长度不能大于255"
                                                        },
                                                        "recDate": {
                                                            "type": "string",
                                                            "example": "2024-10-12",
                                                            "description": "预计出库时间"
                                                        },
                                                        "skuProperitesName": {
                                                            "type": "string",
                                                            "example": "",
                                                            "description": "规格名字"
                                                        },
                                                        "headId": {
                                                            "type": "string",
                                                            "example": "1",
                                                            "description": "订单ID"
                                                        },
                                                        "applyOutStatus": {
                                                            "type": "integer",
                                                            "example": 1,
                                                            "description": "申请入库状态"
                                                        },
                                                        "goodsId": {
                                                            "type": "string",
                                                            "example": "1",
                                                            "description": "商品ID"
                                                        },
                                                        "applyOutQuantity": {
                                                            "type": "number",
                                                            "example": 1.0,
                                                            "description": "申请入库数量"
                                                        },
                                                        "goodsNo": {
                                                            "type": "string",
                                                            "example": "",
                                                            "description": "商品编码"
                                                        },
                                                        "relId": {
                                                            "type": "string",
                                                            "example": "1",
                                                            "description": "关联采购退货订单单据详情ID"
                                                        },
                                                        "amount": {
                                                            "type": "number",
                                                            "example": 1.0,
                                                            "description": "总金额"
                                                        },
                                                        "assistUnit": {
                                                            "type": "string",
                                                            "example": "",
                                                            "description": "辅助单位"
                                                        },
                                                        "quantity": {
                                                            "type": "integer",
                                                            "example": 1,
                                                            "description": "退货数量"
                                                        },
                                                        "settQuantity": {
                                                            "type": "number",
                                                            "example": 1.0,
                                                            "description": "结算数量"
                                                        },
                                                        "settStatus": {
                                                            "type": "integer",
                                                            "example": 1,
                                                            "description": "结算状态"
                                                        },
                                                        "outStatus": {
                                                            "type": "integer",
                                                            "example": 1,
                                                            "description": "出库状态"
                                                        },
                                                        "skuBarcode": {
                                                            "type": "string",
                                                            "example": "",
                                                            "description": "规格编号"
                                                        }
                                                    }
                                                }
                                            },
                                            "companyId": {
                                                "type": "string",
                                                "example": "1",
                                                "description": "公司ID"
                                            },
                                            "warehouseId": {
                                                "type": "string",
                                                "example": "1",
                                                "description": "退货仓库ID"
                                            },
                                            "purchType": {
                                                "type": "string",
                                                "example": "001",
                                                "description": "退货类型"
                                            },
                                            "vendId": {
                                                "type": "string",
                                                "example": "1",
                                                "description": "供应商ID"
                                            },
                                            "returnType": {
                                                "type": "string",
                                                "example": "1",
                                                "description": "采购退货方式 1-退货 10-退换货"
                                            },
                                            "logisticType": {
                                                "type": "string",
                                                "example": "",
                                                "description": "物流类型"
                                            },
                                            "logisticNo": {
                                                "type": "string",
                                                "example": "",
                                                "description": "物流单号"
                                            },
                                            "orderNum": {
                                                "type": "string",
                                                "example": "",
                                                "description": "退货单编号"
                                            },
                                            "pruchExpressInfo": {
                                                "type": "object",
                                                "properties": {
                                                    "relDataNo": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "关联采购退货单据编号(后台生成)"
                                                    },
                                                    "sendProvinceId": {
                                                        "type": "integer",
                                                        "example": 1,
                                                        "description": "发件人省id"
                                                    },
                                                    "sendCityId": {
                                                        "type": "integer",
                                                        "example": 1,
                                                        "description": "发件人省"
                                                    },
                                                    "receiveCountryName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "收件人国家"
                                                    },
                                                    "sendStreetName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "发件人街道"
                                                    },
                                                    "id": {
                                                        "type": "string",
                                                        "example": "1",
                                                        "description": "收发货人信息表ID后台生成"
                                                    },
                                                    "receiveProvinceName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "收件人省"
                                                    },
                                                    "receiveCityName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "收件人市"
                                                    },
                                                    "receiveAddress": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "收件人详细地址"
                                                    },
                                                    "receiveTownId": {
                                                        "type": "integer",
                                                        "example": 1,
                                                        "description": "收件人区id"
                                                    },
                                                    "sendTownId": {
                                                        "type": "integer",
                                                        "example": 1,
                                                        "description": "发件人区id"
                                                    },
                                                    "sendTownName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "发件人镇，区"
                                                    },
                                                    "sendAddress": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "发件人详细地址"
                                                    },
                                                    "receiveStreetId": {
                                                        "type": "integer",
                                                        "example": 1,
                                                        "description": "收件人街道id"
                                                    },
                                                    "send": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "发件人"
                                                    },
                                                    "sendProvinceName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "发件人省名字"
                                                    },
                                                    "sendCountryName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "发件人国家"
                                                    },
                                                    "receiveTel": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "收件人电话"
                                                    },
                                                    "receiveCompanyName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "收件公司名称"
                                                    },
                                                    "receiveStreetName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "收件人街道"
                                                    },
                                                    "sendStreetId": {
                                                        "type": "integer",
                                                        "example": 1,
                                                        "description": "发件人街道id"
                                                    },
                                                    "sendCountryId": {
                                                        "type": "integer",
                                                        "example": 1,
                                                        "description": "发件人国家id"
                                                    },
                                                    "receiveProvinceId": {
                                                        "type": "integer",
                                                        "example": 1,
                                                        "description": "收件人省id"
                                                    },
                                                    "sendCityName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "发件人市"
                                                    },
                                                    "sendEmail": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "发件人邮箱"
                                                    },
                                                    "receiveTownName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "收件人镇，区"
                                                    },
                                                    "sendCompanyName": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "发货公司名字"
                                                    },
                                                    "receive": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "收件人"
                                                    },
                                                    "receiveCountryId": {
                                                        "type": "integer",
                                                        "example": 1,
                                                        "description": "收件人国家id"
                                                    },
                                                    "receivePhone": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "收件人手机号"
                                                    },
                                                    "receiveEmail": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "收件人邮箱"
                                                    },
                                                    "sendTel": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "发件人电话"
                                                    },
                                                    "receiveCityId": {
                                                        "type": "integer",
                                                        "example": 1,
                                                        "description": "收件人市id"
                                                    },
                                                    "sendPhone": {
                                                        "type": "string",
                                                        "example": "",
                                                        "description": "发件人手机号"
                                                    }
                                                },
                                                "required": [
                                                    "sendProvinceId",
                                                    "sendCityId",
                                                    "receiveAddress",
                                                    "sendAddress",
                                                    "send",
                                                    "sendProvinceName",
                                                    "sendCountryName",
                                                    "receiveTel",
                                                    "receiveCompanyName",
                                                    "sendCountryId",
                                                    "sendCityName",
                                                    "sendCompanyName",
                                                    "receiveCountryId",
                                                    "receivePhone",
                                                    "sendTel",
                                                    "sendPhone"
                                                ]
                                            },
                                            "warehouseName": {
                                                "type": "string",
                                                "example": "",
                                                "description": "出库名字"
                                            },
                                            "warehouseCode": {
                                                "type": "string",
                                                "example": "",
                                                "description": "出库编号"
                                            },
                                            "currencyName": {
                                                "type": "string",
                                                "example": "",
                                                "description": "币种名字"
                                            },
                                            "provCreate": {
                                                "type": "string",
                                                "example": "2024-10-12",
                                                "description": "审核时间"
                                            },
                                            "busiUserid": {
                                                "type": "string",
                                                "example": "1",
                                                "description": "业务员ID"
                                            },
                                            "gmtCreate": {
                                                "type": "string",
                                                "example": "2024-10-12",
                                                "description": "创建时间"
                                            },
                                            "settStatus": {
                                                "type": "integer",
                                                "example": 1,
                                                "description": "结算状态"
                                            },
                                            "revwStatus": {
                                                "type": "integer",
                                                "example": 1,
                                                "description": "审核状态"
                                            },
                                            "logisticName": {
                                                "type": "string",
                                                "example": "",
                                                "description": "物流公司名称"
                                            },
                                            "crtUserid": {
                                                "type": "string",
                                                "example": "1",
                                                "description": "创建人ID"
                                            },
                                            "currencyRate": {
                                                "type": "number",
                                                "example": 1.0,
                                                "description": "汇率"
                                            },
                                            "outStatus": {
                                                "type": "integer",
                                                "example": 1,
                                                "description": "出库状态"
                                            },
                                            "currencyCode": {
                                                "type": "string",
                                                "example": "",
                                                "description": "币种编码"
                                            }
                                        },
                                        "required": [
                                            "list",
                                            "warehouseId",
                                            "returnType",
                                            "warehouseName",
                                            "warehouseCode"
                                        ]
                                    },
                                    "description": "采购退货信息"
                                }
                            },
                            "required": [
                                "purchOrderReturn"
                            ]
                        },
                        "contextId": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "example": {
            "code": 200,
            "msg": "",
            "result": {
                "data": {
                    "purchOrderReturn": [
                        {
                            "orderType": "2",
                            "deptName": "",
                            "busiName": "",
                            "orderId": "1",
                            "companyName": "",
                            "crtName": "",
                            "purchCode": "",
                            "text": "",
                            "flagData": "",
                            "logisticCode": "",
                            "deptId": "1",
                            "vendName": "",
                            "list": [
                                {
                                    "outQuantity": 1,
                                    "outSkuCode": "",
                                    "price": 1.0,
                                    "id": "1",
                                    "goodsName": "",
                                    "skuId": "1",
                                    "taxrate": 1.0,
                                    "unitName": "",
                                    "isCertified": 1,
                                    "rowRemark": "",
                                    "recDate": "2024-10-12",
                                    "skuProperitesName": "",
                                    "headId": "1",
                                    "applyOutStatus": 1,
                                    "goodsId": "1",
                                    "applyOutQuantity": 1.0,
                                    "goodsNo": "",
                                    "relId": "1",
                                    "amount": 1.0,
                                    "assistUnit": "",
                                    "quantity": 1,
                                    "settQuantity": 1.0,
                                    "settStatus": 1,
                                    "outStatus": 1,
                                    "skuBarcode": ""
                                }
                            ],
                            "companyId": "1",
                            "warehouseId": "1",
                            "purchType": "001",
                            "vendId": "1",
                            "returnType": "1",
                            "logisticType": "",
                            "logisticNo": "",
                            "orderNum": "",
                            "pruchExpressInfo": {
                                "relDataNo": "",
                                "sendProvinceId": 1,
                                "sendCityId": 1,
                                "receiveCountryName": "",
                                "sendStreetName": "",
                                "id": "1",
                                "receiveProvinceName": "",
                                "receiveCityName": "",
                                "receiveAddress": "",
                                "receiveTownId": 1,
                                "sendTownId": 1,
                                "sendTownName": "",
                                "sendAddress": "",
                                "receiveStreetId": 1,
                                "send": "",
                                "sendProvinceName": "",
                                "sendCountryName": "",
                                "receiveTel": "",
                                "receiveCompanyName": "",
                                "receiveStreetName": "",
                                "sendStreetId": 1,
                                "sendCountryId": 1,
                                "receiveProvinceId": 1,
                                "sendCityName": "",
                                "sendEmail": "",
                                "receiveTownName": "",
                                "sendCompanyName": "",
                                "receive": "",
                                "receiveCountryId": 1,
                                "receivePhone": "",
                                "receiveEmail": "",
                                "sendTel": "",
                                "receiveCityId": 1,
                                "sendPhone": ""
                            },
                            "warehouseName": "",
                            "warehouseCode": "",
                            "currencyName": "",
                            "provCreate": "2024-10-12",
                            "busiUserid": "1",
                            "gmtCreate": "2024-10-12",
                            "settStatus": 1,
                            "revwStatus": 1,
                            "logisticName": "",
                            "crtUserid": "1",
                            "currencyRate": 1.0,
                            "outStatus": 1,
                            "currencyCode": ""
                        }
                    ]
                },
                "contextId": "2182634376910701312"
            },
            "subCode": ""
        }
    }
}