发票选单明细
<p>[TOC]</p>
<h5>发票选单</h5>
<ul>
<li>选发票明细</li>
</ul>
<h5>请求URL</h5>
<ul>
<li>
<p><code>/cloud/bill-v2/stocks-parts?page=1&amp;count=50</code></p>
</li>
<li><code>?start_date=2024-11-01&amp;end_date=2024-11-21&amp;page=1&amp;count=50&amp;parts_bill_status[]=0&amp;parts_bill_status[]=2&amp;other_org_id=63351&amp;relate_sn=关联单号&amp;parts_name=商品名称&amp;parts_order_code=订货编码&amp;parts_factory_code=出厂编码&amp;parts_code=规格型号&amp;order_sn=出入库单号</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </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;">start_date</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>出入库日期</td>
</tr>
<tr>
<td style="text-align: left;">end_date</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>出入库日期</td>
</tr>
<tr>
<td style="text-align: left;">parts_bill_status</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">array</td>
<td>0未开票,2部分开票</td>
</tr>
<tr>
<td style="text-align: left;">other_org_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>客户ID</td>
</tr>
<tr>
<td style="text-align: left;">relate_sn</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>关联单号</td>
</tr>
<tr>
<td style="text-align: left;">parts_name</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>商品名称</td>
</tr>
<tr>
<td style="text-align: left;">parts_order_code</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>订货编码</td>
</tr>
<tr>
<td style="text-align: left;">parts_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;">parts_code</td>
<td style="text-align: left;">否</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;">否</td>
<td style="text-align: left;">string</td>
<td>出入库单号</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<ul>
<li>提交参数取值
<pre><code>// 明细示例
{&quot;_type&quot;:&quot;list.stock_type&quot;,&quot;_id&quot;:&quot;list.relate_stock_order_parts_id&quot;,&quot;count&quot;:1,&quot;_sn&quot;:&quot;&quot;}
// 整单示例
{&quot;_type&quot;:&quot;&quot;,&quot;_id&quot;:&quot;0&quot;,&quot;count&quot;:0,&quot;_sn&quot;:&quot;list.order_sn&quot;}</code></pre></li>
</ul>
<pre><code>{
&quot;errCode&quot;: 1000,
&quot;errMsg&quot;: &quot;请求成功&quot;,
&quot;data&quot;: {
&quot;count&quot;: {
&quot;total&quot;: &quot;2&quot;,
&quot;parts_bill_amount&quot;: &quot;0.000000&quot;,
&quot;total_amount&quot;: &quot;359.0000&quot;
},
&quot;list&quot;: [
{
&quot;id&quot;: &quot;25349&quot;,
&quot;out_org_id&quot;: &quot;1&quot;,
&quot;org_id&quot;: &quot;1&quot;,
&quot;org_name&quot;: &quot;测试优配车联&quot;,
&quot;org_type&quot;: &quot;1&quot;,
&quot;other_org_id&quot;: &quot;63351&quot;,
&quot;other_org_name&quot;: &quot;ZC测试&quot;,
&quot;other_org_type&quot;: &quot;4&quot;,
&quot;business_type&quot;: &quot;2&quot;,
&quot;order_sn&quot;: &quot;WO21091500121041&quot;, // 出入库单号
&quot;relate_sn&quot;: &quot;&quot;,
&quot;relate_business_sn&quot;: &quot;SO21091500093015&quot;, // 关联单号
&quot;stock_type&quot;: &quot;113&quot;,
&quot;origin_stock_type&quot;: &quot;113&quot;,
&quot;relate_stock_order_parts_id&quot;: &quot;344592&quot;,
&quot;stock_at&quot;: &quot;1631698902&quot;,
&quot;created_at&quot;: &quot;1631698881&quot;,
&quot;parts_id&quot;: &quot;10&quot;,
&quot;parts_name&quot;: &quot;SUSTINA 全进口系列&quot;, // 商品名称
&quot;parts_unit_name&quot;: &quot;桶&quot;,
&quot;parts_code&quot;: &quot;SUSTINA SN/GF-5 5W30 4L&quot;, // 规格型号
&quot;parts_order_code&quot;: &quot;04647904&quot;, // 订货编码
&quot;parts_factory_code&quot;: &quot;04647904&quot;, // 出厂编码
&quot;first_category_id&quot;: &quot;2&quot;,
&quot;first_category_name&quot;: &quot;油品&quot;,
&quot;second_category_name&quot;: &quot;发动机机油&quot;,
&quot;third_category_name&quot;: &quot;汽机油&quot;,
&quot;brand_name&quot;: &quot;引能仕&quot;,
&quot;parts_final_count&quot;: 1, // 出入库数量
&quot;price&quot;: &quot;359.0000&quot;, // 商品单价
&quot;discount_rate&quot;: &quot;100.00&quot;, // 折扣
&quot;total_price&quot;: 359, // 出入库金额
&quot;bill_count&quot;: 0,
&quot;bill_count_red&quot;: -0,
&quot;bill_status&quot;: &quot;0&quot;,
&quot;bill_status_name&quot;: &quot;未开票&quot;, // 开票装
&quot;stock_time&quot;: &quot;2021-09-15 17:41:42&quot;, // 出入库时间
&quot;lading_number&quot;: &quot;&quot;,
&quot;contract_sn&quot;: &quot;&quot;,
&quot;billed_amount&quot;: &quot;0&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>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>