客户已完成订单采购历史信息接口(66智修)
<h5>简要描述</h5>
<ul>
<li>客户已完成订单采购历史信息接口(66智修)</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/app/app-order-pay/customer-purchase-detail</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">buy_customer_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>客户id</td>
</tr>
<tr>
<td style="text-align: left;">page</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>页数</td>
</tr>
<tr>
<td style="text-align: left;">count</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>每页条数</td>
</tr>
<tr>
<td style="text-align: left;">query</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>单号、供应商</td>
</tr>
<tr>
<td style="text-align: left;">stime</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">日期</td>
<td>开始时间,例如:2021-02-03</td>
</tr>
<tr>
<td style="text-align: left;">etime</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">日期</td>
<td>结束时间,例如:2021-02-03</td>
</tr>
<tr>
<td style="text-align: left;">name_cn</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>商品名称</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>规格型号</td>
</tr>
<tr>
<td style="text-align: left;">factory_code</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>出厂编码</td>
</tr>
<tr>
<td style="text-align: left;">brand_id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>品牌id</td>
</tr>
<tr>
<td style="text-align: left;">sort</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>排序 sort=2时,倒序,sort=1,正序</td>
</tr>
<tr>
<td style="text-align: left;">download</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>导出是download=1,必传</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
"errCode": 1000,
"errMsg": "请求成功",
"data": {
"count": {
"total": 65,//总条数
"total_count": 56013,//采购数量合计
"total_discount_price": "153757.2794"//采购金额合计
},
"list": [
{
"id": "188776",
"org_id": "1",
"org_name": "测试优配车联",//供应商
"other_org_id": "62860",
"warehouse_name": "优配车联仓库",//发货仓库
"parts_id": "39643",//商品id
"order_id": "88652",//单号id
"order_sn": "SO20102000088652",//单号
"end_at": "1603176472",
"final_parts_count": 10,//采购数量
"price": "1200.0000",
"discount_rate": "100.00",
"agency_price": "100.0000",
"business_type": "1",
"is_gift": "2",//是否赠品 1是 2否
"created_name": "陈鸿鑫",
"parts_name": "附件套装",//商品名称
"unit": "套",//单位
"parts_code": "K056PK1795",//商品编码
"parts_factory_code": "8500-1266",//供货编码
"parts_specifications": "555555",//规格型号说明
"order_code": "8500-1266",//订货编码
"adaptable_vehicle": "凯越 1.5 2013.02-2016.12",//适用车型
"brand_name": "chx",//品牌名称
"discount_price": "1200.00",//采购单价
"discount_price_final": "1200.00",//采购折后单价
"total_discount_price": "12000.00",//采购金额
"end_time": "2020-10-20 14:47:52",//采购日期
"business_type_name": "总部销售"//订单类型
},
{
"id": "188778",
"org_id": "1",
"org_name": "测试优配车联",
"other_org_id": "62860",
"warehouse_name": "优配车联仓库",
"parts_id": "39377",
"order_id": "88654",
"order_sn": "SO20102000088654",
"end_at": "1603183905",
"final_parts_count": 1,
"price": "10.0000",
"discount_rate": "100.00",
"agency_price": "3.9000",
"business_type": "2",
"is_gift": "2",
"created_name": "管理员",
"parts_name": "X系列",
"unit": "只",
"parts_code": "H1 12V 55W P14.5S",
"parts_factory_code": "64150XL",
"order_code": "AA4193112DC",
"adaptable_vehicle": "通用",
"brand_name": "欧司朗",
"discount_price": "10.00",
"discount_price_final": "10.00",
"total_discount_price": "10.00",
"end_time": "2020-10-20 16:51:45",
"business_type_name": "在店销售"
}
]
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!</p>