采购历史列表接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>采购历史列表接口
-京猫虎, 广东快配, 江苏聚联, 海聚供应链, 首配</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/report/report/dw-warehouse-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;">parts_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;">business_type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>默认传值1</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;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>默认传值3</td>
</tr>
<tr>
<td style="text-align: left;">time_type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>1 本年 2 本月 3本周 4 今日</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;errCode&quot;: 1000,
&quot;errMsg&quot;: &quot;请求成功&quot;,
&quot;data&quot;: {
&quot;count&quot;: {
&quot;total&quot;: 5,
&quot;total_count&quot;: &quot;-10.00&quot;,
&quot;total_price&quot;: &quot;-3050.0000&quot;,
&quot;total_profit&quot;: &quot;-254.2000&quot;,
&quot;total_merit_profit&quot;: &quot;-3050.0000&quot;,
&quot;total_agency_price&quot;: &quot;-2795.800000&quot;,
&quot;total_agency_price_no&quot;: &quot;-2474.159000&quot;,
&quot;head_agency_price&quot;: &quot;-2795.800000&quot;,
&quot;head_agency_price_no&quot;: &quot;-2474.159000&quot;,
&quot;total_main_agency_price&quot;: &quot;-2795.800000&quot;,
&quot;total_discount_price&quot;: &quot;-3050.000000000000&quot;
},
&quot;list&quot;: [
{
&quot;realname&quot;: &quot;&quot;,
&quot;is_gift&quot;: &quot;2&quot;,
&quot;id&quot;: &quot;125797&quot;,
&quot;org_id&quot;: &quot;1016&quot;,
&quot;brand_id&quot;: &quot;16&quot;,
&quot;org_name&quot;: &quot;江苏聚联供应链总部&quot;,
&quot;org_type&quot;: &quot;3&quot;,
&quot;other_org_id&quot;: &quot;1005&quot;,
&quot;is_receipt&quot;: &quot;0&quot;,
&quot;other_org_name&quot;: &quot;鑫米汽配&quot;,
&quot;other_org_type&quot;: &quot;3&quot;,
&quot;company_org_id&quot;: &quot;1&quot;,
&quot;company_org_name&quot;: &quot;聚联供应链集团&quot;,
&quot;warehouse_name&quot;: &quot;聚联总仓&quot;,
&quot;relate_business_sn&quot;: &quot;SO24080400016115&quot;,
&quot;order_sn&quot;: &quot;WO24080400020347&quot;,
&quot;open_count&quot;: &quot;0.00&quot;,
&quot;close_count&quot;: &quot;0.00&quot;,
&quot;stock_at&quot;: &quot;1722745403&quot;,
&quot;stock_type&quot;: &quot;118&quot;,
&quot;parts_final_count&quot;: &quot;-1.00&quot;,
&quot;price&quot;: &quot;305.0000&quot;,
&quot;agency_price&quot;: &quot;279.5800&quot;,
&quot;agency_price_no&quot;: &quot;247.4159&quot;,
&quot;merit_price&quot;: &quot;0.0000&quot;,
&quot;total_price&quot;: &quot;-305.0000&quot;,
&quot;total_profit&quot;: &quot;-25.4200&quot;,
&quot;total_merit_profit&quot;: &quot;-305.0000&quot;,
&quot;discount_rate&quot;: &quot;100.00&quot;,
&quot;purchase_org_name&quot;: &quot;鑫米汽配&quot;,
&quot;sales_org_name&quot;: &quot;江苏聚联供应链总部&quot;,
&quot;head_agency_price&quot;: &quot;279.5800&quot;,
&quot;head_agency_price_no&quot;: &quot;247.4159&quot;,
&quot;parts_id&quot;: &quot;112478&quot;,
&quot;parts_name&quot;: &quot;车士电瓶&quot;,
&quot;brand_name&quot;: &quot;劲客车士&quot;,
&quot;first_category_name&quot;: &quot;蓄电池&quot;,
&quot;second_category_name&quot;: &quot;蓄电池&quot;,
&quot;third_category_name&quot;: &quot;EFB启停电瓶&quot;,
&quot;parts_code&quot;: &quot;EFB60(H5)&quot;,
&quot;parts_factory_code&quot;: &quot;EFB60(H5)&quot;,
&quot;unit&quot;: &quot;只&quot;,
&quot;adaptable_vehicle&quot;: &quot;新宝来、速腾、捷达、桑塔纳、朗&quot;,
&quot;stock_order_id&quot;: &quot;20347&quot;,
&quot;main_agency_price&quot;: &quot;279.5800&quot;,
&quot;other_warehouse_name&quot;: &quot;鑫米汽配&quot;,
&quot;parts_content&quot;: &quot;&quot;,
&quot;parts_gross_content&quot;: &quot;&quot;,
&quot;org_department_id&quot;: 0,
&quot;abc_type_1_name&quot;: null,
&quot;order_code&quot;: &quot;车士EFB60(H5)&quot;,
&quot;_custome_name&quot;: null,
&quot;area_name&quot;: &quot;&quot;,
&quot;sales_name&quot;: null,
&quot;channel_id&quot;: null,
&quot;company_name&quot;: &quot;聚联供应链集团&quot;,
&quot;updated_user&quot;: &quot;&quot;,
&quot;remark&quot;: &quot;&quot;,
&quot;org_department_name&quot;: &quot;&quot;,
&quot;dept_name&quot;: &quot;&quot;,
&quot;is_receipt_name&quot;: &quot;--&quot;,
&quot;stock_type_name&quot;: &quot;连锁销售出库&quot;,
&quot;stock_time&quot;: &quot;2024-08-04 12:23:23&quot;,
&quot;discount_price&quot;: 305,
&quot;total_discount_price&quot;: &quot;-305.00&quot;,
&quot;total_agency_price&quot;: &quot;-279.5800&quot;,
&quot;total_agency_price_no&quot;: &quot;-247.4159&quot;,
&quot;total_merit_price&quot;: &quot;0.0000&quot;,
&quot;total_head_agency_price&quot;: &quot;-279.5800&quot;,
&quot;total_head_agency_price_no&quot;: &quot;-247.4159&quot;,
&quot;channel_name&quot;: &quot;&quot;,
&quot;relate_business_id&quot;: 16115,
&quot;customer_whole_business&quot;: &quot;&quot;,
&quot;org_property_name&quot;: &quot;加盟门店&quot;
}
],
&quot;sql&quot;: &quot;SELECT s.realname,st.is_gift,a.id,a.org_id,a.brand_id,a.org_name,a.org_type,a.other_org_id,a.is_receipt,a.other_org_name,a.other_org_type,a.company_org_id,a.company_org_name,a.warehouse_name,a.relate_business_sn,a.order_sn,a.open_count,a.close_count,parts_id order by a.id desc LIMIT 0,50&quot;
}
}</code></pre>
<h5>返回参数说明</h5>
<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;">stock_time</td>
<td style="text-align: left;">string</td>
<td>日期</td>
</tr>
<tr>
<td style="text-align: left;">other_org_name</td>
<td style="text-align: left;">int</td>
<td>业务对方</td>
</tr>
<tr>
<td style="text-align: left;">price</td>
<td style="text-align: left;">int</td>
<td>单价</td>
</tr>
<tr>
<td style="text-align: left;">parts_final_count</td>
<td style="text-align: left;">int</td>
<td>数量</td>
</tr>
<tr>
<td style="text-align: left;">total_price</td>
<td style="text-align: left;">int</td>
<td>合计金额</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>