采购记录列表
<p><strong>简要描述:</strong> </p>
<ul>
<li>采购记录列表接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/dms/sales-order-app/buy-list</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<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>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"errCode": 1000,
"errMsg": "请求成功",
"data": {
"list": [
{
"id": "83638",
"order_sn": "SO20022600083638",
"buy_customer_id": "60786",
"buy_customer_name": "iOS返回客户列表",
"customer_area_id": "1413",
"kind": "1",
"final_count": 1,
"final_total_amount": "15.00",
"distribution_method": "0",
"pay_status": "2",
"pay_time": "1582766770",
"sales_remark": "",
"status": "3",
"created_at": "1582721773",
"buy_short_name": "iOS返回客户列表",
"customer_area_idTxt": "商业务区域",
"statusTxt": "已发货",
"created_atTime": "2020-02-26 20:56:13",
"parts_info": [
{
"id": "227517",
"parts_name": "冷媒",
"parts_code": "134A210G-KTK",
"parts_factory_code": "134A210G-KTK",
"parts_specifications": "",
"minimum_package_count": "30.00",
"parts_category_name": "冷媒",
"parts_unit_name": "罐",
"parts_brand_name": "卡泰克",
"final_count": "1.00",
"sales_price": "15.00",
"parts_top": "冷媒|罐",
"parts_bottom": "134A210G-KTK|134A210G-KTK|卡泰克"
}
]
},
{
"id": "83637",
"order_sn": "SO20022600083637",
"buy_customer_id": "60786",
"buy_customer_name": "iOS返回客户列表",
"customer_area_id": "1413",
"kind": "1",
"final_count": 1,
"final_total_amount": "20.00",
"distribution_method": "0",
"pay_status": "2",
"pay_time": "1582721735",
"sales_remark": "",
"status": "3",
"created_at": "1582721735",
"buy_short_name": "iOS返回客户列表",
"customer_area_idTxt": "商业务区域",
"statusTxt": "已发货",
"created_atTime": "2020-02-26 20:55:35",
"parts_info": [
{
"id": "227516",
"parts_name": "空气滤清器",
"parts_code": "NA-6112",
"parts_factory_code": "NA-6112",
"parts_specifications": "",
"minimum_package_count": "1.00",
"parts_category_name": "空气滤清器",
"parts_unit_name": "个",
"parts_brand_name": "耐诺思",
"final_count": "1.00",
"sales_price": "20.00",
"parts_top": "空气滤清器|个",
"parts_bottom": "NA-6112|NA-6112|耐诺思"
}
]
}
],
"count": {
"total": "3"
}
}
}</code></pre>
<p><strong>请求返回参数说明</strong> </p>
<p><strong>---订单基本信息---</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">created_atTime</td>
<td style="text-align: left;">string</td>
<td>创建时间</td>
</tr>
<tr>
<td style="text-align: left;">order_sn</td>
<td style="text-align: left;">string</td>
<td>销售单号</td>
</tr>
<tr>
<td style="text-align: left;">final_count</td>
<td style="text-align: left;">string</td>
<td>销售单总数量</td>
</tr>
<tr>
<td style="text-align: left;">final_total_amount</td>
<td style="text-align: left;">string</td>
<td>销售总金额</td>
</tr>
</tbody>
</table>
<p><strong>---配件信息---</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">parts_top</td>
<td style="text-align: left;">string</td>
<td>商品头部第一</td>
</tr>
<tr>
<td style="text-align: left;">parts_bottom</td>
<td style="text-align: left;">string</td>
<td>商品头部第二</td>
</tr>
<tr>
<td style="text-align: left;">sales_price</td>
<td style="text-align: left;">string</td>
<td>销售价格</td>
</tr>
<tr>
<td style="text-align: left;">final_count</td>
<td style="text-align: left;">string</td>
<td>数量</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>