详情
<p>[TOC]</p>
<h5>详情</h5>
<ul>
<li>开票详情</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/cloud/bill-v2/bill-view?bill_id=31&amp;_view_type=app</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;">bill_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;">_view_type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>写死app</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;errCode&quot;: 1000,
&quot;errMsg&quot;: &quot;请求成功&quot;,
&quot;data&quot;: {
&quot;id&quot;: &quot;31&quot;,
&quot;associated_id&quot;: &quot;33&quot;,
&quot;sn&quot;: &quot;NS24112100000031&quot;,
&quot;i_no&quot;: &quot;&quot;,
&quot;i_type&quot;: &quot;2&quot;,
&quot;status&quot;: &quot;1&quot;,
&quot;is_oil&quot;: &quot;0&quot;,
&quot;amount&quot;: 89,
&quot;final_amount&quot;: -0,
&quot;tax_rate&quot;: &quot;13&quot;,
&quot;title&quot;: &quot;12312&quot;,
&quot;inv_code&quot;: &quot;213&quot;,
&quot;mailbox&quot;: &quot;maibox&quot;,
&quot;party_type&quot;: &quot;2&quot;,
&quot;party_id&quot;: &quot;63351&quot;,
&quot;party_name&quot;: &quot;ZC测试&quot;,
&quot;opened_at&quot;: &quot;&quot;,
&quot;confirmed_at&quot;: &quot;&quot;,
&quot;confirmed_id&quot;: &quot;0&quot;,
&quot;details_view&quot;: &quot;0&quot;,
&quot;tax_no&quot;: &quot;&quot;,
&quot;enterprise_address&quot;: &quot;&quot;,
&quot;enterprise_tel&quot;: &quot;&quot;,
&quot;invoice_content&quot;: &quot;&quot;,
&quot;red_ticket_type&quot;: &quot;0&quot;,
&quot;red_id&quot;: &quot;0&quot;,
&quot;red_amount&quot;: &quot;0.00&quot;,
&quot;reduser_id&quot;: &quot;0&quot;,
&quot;red_at&quot;: &quot;&quot;,
&quot;details_count&quot;: &quot;0&quot;,
&quot;invoice_no&quot;: &quot;&quot;,
&quot;red_notice_sn&quot;: &quot;&quot;,
&quot;is_urgent&quot;: &quot;0&quot;,
&quot;annex&quot;: &quot;&quot;,
&quot;remark&quot;: &quot;发票内容&quot;,
&quot;created_at&quot;: &quot;2024-11-21 10:40:49&quot;,
&quot;created_id&quot;: &quot;948&quot;,
&quot;created_org_id&quot;: &quot;1&quot;,
&quot;updated_at&quot;: &quot;2024-11-21 11:37:31&quot;,
&quot;updated_id&quot;: &quot;948&quot;,
&quot;updated_org_id&quot;: &quot;1&quot;,
&quot;cancelled_at&quot;: &quot;&quot;,
&quot;deleted&quot;: &quot;0&quot;,
&quot;way_type&quot;: &quot;1&quot;,
&quot;is_discount&quot;: &quot;2&quot;,
&quot;discount_content&quot;: &quot;&quot;,
&quot;require_number&quot;: &quot;1&quot;,
&quot;require_money&quot;: &quot;100.00&quot;,
&quot;created_user&quot;: &quot;丁仕坤测试&quot;,
&quot;updated_user&quot;: &quot;丁仕坤测试&quot;,
&quot;confirmed_user&quot;: &quot;&quot;,
&quot;reduser_user&quot;: &quot;&quot;,
&quot;associated_name&quot;: &quot;张庄-济南老屯汽配城店&quot;,
&quot;created_org_name&quot;: &quot;测试_优配车联测试&quot;,
&quot;red_ticket_type_name&quot;: &quot;返利红票&quot;,
&quot;is_urgent_name&quot;: &quot;否&quot;,
&quot;part_orders&quot;: [
{
&quot;order_sn&quot;: &quot;WO21091500121041&quot;, // 出入库单号
&quot;stock_time&quot;: &quot;2021-09-15 17:41:42&quot;, // 出入库时间
&quot;relate_business_sn&quot;: &quot;SO21091500093015&quot;, // 关联单号
&quot;total_price&quot;: 89, // 出入库金额
&quot;bill_amount&quot;: &quot;89.0000&quot;, // 已开票金额,含本单金额
&quot;cur_bill_amount&quot;: &quot;89.0000&quot;, // 本次开票金额
&quot;parts_final_count&quot;: 1, // 出入库商品数量
&quot;bill_count&quot;: 1, // 已开票商品数量
&quot;_cate_count&quot;: {
&quot;164&quot;: 1
},
&quot;cate_count&quot;: 1, // 出入库种类
&quot;bill_status&quot;: 1,
&quot;bill_status_name&quot;: &quot;已开票&quot; // 开票状态
}
],
&quot;parts_details&quot;: [
{
&quot;id&quot;: &quot;30&quot;,
&quot;bill_id&quot;: &quot;31&quot;,
&quot;cur_bill_count&quot;: 1,
&quot;red_count&quot;: -0,
&quot;dw_id&quot;: &quot;25350&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;purchase_department_id&quot;: &quot;1396&quot;,
&quot;business_type&quot;: &quot;2&quot;,
&quot;order_sn&quot;: &quot;WO21091500121041&quot;,// _sn 取值 {&quot;_sn&quot;:&quot;出入库单号&quot;}
&quot;relate_sn&quot;: &quot;&quot;,
&quot;relate_business_sn&quot;: &quot;SO21091500093015&quot;,
&quot;stock_type&quot;: &quot;113&quot;,// _type 取值 {&quot;_type&quot;:&quot;出入库类型&quot;,&quot;_id&quot;:&quot;#erp_stock_order_parts.id&quot;,&quot;count&quot;:&quot;个数&quot;,&quot;_sn&quot;:&quot;出入库单号&quot;}
&quot;origin_stock_type&quot;: &quot;113&quot;,
&quot;relate_stock_order_parts_id&quot;: &quot;344591&quot;, // _id 取值 {&quot;_type&quot;:&quot;出入库类型&quot;,&quot;_id&quot;:&quot;#erp_stock_order_parts.id&quot;,&quot;count&quot;:&quot;个数&quot;,&quot;_sn&quot;:&quot;出入库单号&quot;}
&quot;stock_at&quot;: &quot;1631698902&quot;,
&quot;parts_id&quot;: &quot;11&quot;,
&quot;parts_name&quot;: &quot;MOTOR&quot;,
&quot;parts_unit_name&quot;: &quot;桶&quot;,
&quot;parts_code&quot;: &quot;MOTOR SL/CF 10W30 4L&quot;,
&quot;parts_order_code&quot;: &quot;0Z409104&quot;,
&quot;parts_factory_code&quot;: &quot;0Z409104&quot;,
&quot;first_category_id&quot;: &quot;1&quot;,
&quot;first_category_name&quot;: &quot;油品&quot;,
&quot;second_category_name&quot;: &quot;发动机机油&quot;,
&quot;third_category_name&quot;: &quot;汽机油&quot;,
&quot;third_category_id&quot;: &quot;164&quot;,
&quot;brand_name&quot;: &quot;引能仕&quot;,
&quot;parts_final_count&quot;: 1,
&quot;price&quot;: &quot;89.0000&quot;,
&quot;discount_rate&quot;: &quot;100.00&quot;,
&quot;total_price&quot;: 89,
&quot;bill_count&quot;: 1,
&quot;bill_count_red&quot;: -0,
&quot;bill_status&quot;: &quot;1&quot;,
&quot;bill_name&quot;: &quot;&quot;,
&quot;cur_bill_amount&quot;: &quot;89.0000&quot;,
&quot;parts_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;department_name&quot;: &quot;&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;">groupid</td>
<td style="text-align: left;">int</td>
<td>用户组id,1:超级管理员;2:普通用户</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>