获取erp商品列表
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取erp商品列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/dms/sales-order-app/parts-data-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;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>1 变速箱 2正时系统/附件系统</td>
</tr>
<tr>
<td style="text-align: left;">groupIds</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>车型参数</td>
</tr>
<tr>
<td style="text-align: left;">userId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>就是缓存的userId 取值对比请求/matching/queryPartsListUnify</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>type = 1
{
&quot;errCode&quot;: 1000,
&quot;errMsg&quot;: &quot;请求成功&quot;,
&quot;data&quot;: [
{
&quot;id&quot;: 59,
&quot;name&quot;: &quot;用油&quot;,
&quot;componentCode&quot;: &quot;007005&quot;,
&quot;parts_list&quot;: [
{
&quot;id&quot;: &quot;327629&quot;,
&quot;parts_name&quot;: &quot;自动变速箱油&quot;,
&quot;name_en&quot;: &quot;&quot;,
&quot;parts_brand_id&quot;: &quot;14&quot;,
&quot;parts_brand_name&quot;: &quot;EUROREPAR&quot;,
&quot;parts_category_id&quot;: &quot;98&quot;,
&quot;parts_category_name&quot;: &quot;自动变速箱油&quot;,
&quot;parts_code&quot;: &quot;ATF 8/9 1L&quot;,
&quot;parts_factory_code&quot;: &quot;1687175880&quot;,
&quot;parts_unit_name&quot;: &quot;桶&quot;,
&quot;parts_specification&quot;: &quot;&quot;,
&quot;oe_code&quot;: &quot;&quot;,
&quot;parts_adaptable_vehicle&quot;: &quot;捷豹/路虎发现/揽胜/极光/JEEP/宝马 8/9AT&quot;,
&quot;minimum_package_count&quot;: &quot;12&quot;,
&quot;propose_price&quot;: &quot;0.00&quot;,
&quot;parts_e_code&quot;: &quot;&quot;,
&quot;tax_rate&quot;: &quot;13&quot;,
&quot;range_price&quot;: &quot;0.00&quot;,
&quot;sales_price&quot;: &quot;75.00&quot;,
&quot;sales_price_no&quot;: &quot;66.37&quot;,
&quot;sales_count&quot;: 12,
&quot;discount_rate&quot;: 100,
&quot;sales_price_sum&quot;: &quot;900.00&quot;,
&quot;sales_price_sum_no&quot;: &quot;796.44&quot;,
&quot;last_sales_price&quot;: &quot;0.00&quot;,
&quot;store_count&quot;: &quot;72.00&quot;,
&quot;repalce_num&quot;: &quot;3&quot;,
&quot;parts_top&quot;: &quot;EUROREPAR|自动变速箱油|桶&quot;,
&quot;parts_bottom&quot;: &quot;ATF 8/9 1L|1687175880&quot;,
&quot;picurl&quot;: &quot;http://img.db.66km.cn/part/D6E8581B-6CA8-4AC9-8605-A24350F21813.jpeg&quot;,
&quot;org_price&quot;: 0,
&quot;is_org_price&quot;: 0,
&quot;intell_store_count&quot;: &quot;0&quot;,
&quot;remark&quot;: &quot;&quot;,
&quot;partsInfo&quot;: {
&quot;imgs&quot;: &quot;http://img.db.66km.cn/part/D6E8581B-6CA8-4AC9-8605-A24350F21813.jpeg&quot;,
&quot;partsCode&quot;: &quot;ATF 8/9 1L&quot;,
&quot;partsId&quot;: &quot;d5d8d7d1-8472-46c4-98a0-dbf95782022d&quot;,
&quot;name&quot;: &quot;自动变速箱油&quot;,
&quot;erpId&quot;: &quot;327629&quot;,
&quot;brand&quot;: &quot;EUROREPAR&quot;
}
}
],
&quot;cate_list&quot;: &quot;&quot;,
&quot;parts_id&quot;: &quot;15889,327629,38375,8273,11667,327332,390261,29349&quot;
}
]
}</code></pre>
<pre><code>type = 2
{
&quot;errCode&quot;: 1000,
&quot;errMsg&quot;: &quot;请求成功&quot;,
&quot;data&quot;: [
{
&quot;id&quot;: 1,
&quot;name&quot;: &quot;正时系统&quot;,
&quot;componentCode&quot;: &quot;&quot;,
&quot;parts_list&quot;: &quot;&quot;,
&quot;cate_list&quot;: [
{
&quot;id&quot;: 62,
&quot;name&quot;: &quot;正时套包&quot;,
&quot;componentCode&quot;: &quot;008006&quot;,
&quot;parts_list&quot;: [
{
&quot;id&quot;: &quot;296593&quot;,
&quot;parts_name&quot;: &quot;正时链条&quot;,
&quot;name_en&quot;: &quot;&quot;,
&quot;parts_brand_id&quot;: &quot;128&quot;,
&quot;parts_brand_name&quot;: &quot;盖茨&quot;,
&quot;parts_category_id&quot;: &quot;107&quot;,
&quot;parts_category_name&quot;: &quot;正时皮带&quot;,
&quot;parts_code&quot;: &quot;LT8600-0051&quot;,
&quot;parts_factory_code&quot;: &quot;KC02RB148-04&quot;,
&quot;parts_unit_name&quot;: &quot;根&quot;,
&quot;parts_specification&quot;: &quot;&quot;,
&quot;oe_code&quot;: &quot;&quot;,
&quot;parts_adaptable_vehicle&quot;: &quot;宝马-525Li/520Li 2.0T 宝马-320Li 2.0T&quot;,
&quot;minimum_package_count&quot;: &quot;1&quot;,
&quot;propose_price&quot;: &quot;0.00&quot;,
&quot;parts_e_code&quot;: &quot;&quot;,
&quot;tax_rate&quot;: &quot;13&quot;,
&quot;range_price&quot;: &quot;0.00&quot;,
&quot;sales_price&quot;: &quot;370.00&quot;,
&quot;sales_price_no&quot;: &quot;327.43&quot;,
&quot;sales_count&quot;: 1,
&quot;discount_rate&quot;: 100,
&quot;sales_price_sum&quot;: &quot;370.00&quot;,
&quot;sales_price_sum_no&quot;: &quot;327.43&quot;,
&quot;last_sales_price&quot;: &quot;0.00&quot;,
&quot;store_count&quot;: &quot;5.00&quot;,
&quot;repalce_num&quot;: 0,
&quot;parts_top&quot;: &quot;盖茨|LT8600-0051&quot;,
&quot;parts_bottom&quot;: &quot;LT8600-0051|KC02RB148-04&quot;,
&quot;picurl&quot;: &quot;http://img.db.66km.cn/part/KC02RB148-04.jpg&quot;,
&quot;org_price&quot;: 0,
&quot;is_org_price&quot;: 0,
&quot;intell_store_count&quot;: &quot;0&quot;,
&quot;remark&quot;: &quot;位置:凸轮轴 链条套装&quot;,
&quot;partsInfo&quot;: {
&quot;imgs&quot;: &quot;http://img.db.66km.cn/part/KC02RB148-04.jpg&quot;,
&quot;partsCode&quot;: &quot;KC02RB148-04&quot;,
&quot;partsId&quot;: &quot;a69eff29-e8b1-48a2-b662-6618be5290cc&quot;,
&quot;name&quot;: &quot;正时链条套装&quot;,
&quot;erpId&quot;: &quot;296593&quot;,
&quot;brand&quot;: &quot;盖茨&quot;
}
}
],
&quot;cate_list&quot;: &quot;&quot;,
&quot;parts_id&quot;: &quot;296593&quot;
}
]
}
]
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<p><strong>type = 1商品parts_list信息展示</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;">name</td>
<td style="text-align: left;">string</td>
<td>配件分类名称</td>
</tr>
<tr>
<td style="text-align: left;">parts_list</td>
<td style="text-align: left;">array</td>
<td>商品列表</td>
</tr>
<tr>
<td style="text-align: left;">picurl</td>
<td style="text-align: left;">string</td>
<td>图片链接地址</td>
</tr>
<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;">store_count</td>
<td style="text-align: left;">int</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;">remark</td>
<td style="text-align: left;">string</td>
<td>位置</td>
</tr>
</tbody>
</table>
<p><strong>type = 2 商品cate_list->parts_list信息展示</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;">name</td>
<td style="text-align: left;">string</td>
<td>分类名称</td>
</tr>
<tr>
<td style="text-align: left;">cate_list</td>
<td style="text-align: left;">array</td>
<td>type=2的时候 会有值</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">string</td>
<td>配件分类名称</td>
</tr>
<tr>
<td style="text-align: left;">parts_list</td>
<td style="text-align: left;">array</td>
<td>商品列表</td>
</tr>
<tr>
<td style="text-align: left;">picurl</td>
<td style="text-align: left;">string</td>
<td>图片链接地址</td>
</tr>
<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;">store_count</td>
<td style="text-align: left;">int</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;">is_install</td>
<td style="text-align: left;">string</td>
<td>展示安装说明 1展示 2 不展示</td>
</tr>
<tr>
<td style="text-align: left;">installDoc</td>
<td style="text-align: left;">array</td>
<td>安装说明数组</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>