获取库存统计图数据
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取库存统计图数据
<h5>请求URL</h5></li>
<li><code>http://119.136.27.201:3200/compound/inventory/summary</code>
<h5>请求方式</h5></li>
<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>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
'data': {
'compound_distribute': [{
'item': 'SF',
'number': 930,
'tags': []
}, {
'item': 'SZ',
'number': 5893,
'tags': []
}],
'batch_distribute': [{
'item': 'SF Powder',
'number': 934,
'tags': []
}, {
'item': 'SZ Powder',
'number': 5960,
'tags': []
}, {
'item': 'SZ Solution',
'number': 1,
'tags': []
}],
'powder_distribute': [{
'item': 'SZ',
'number': 202498.85,
'tags': []
}, {
'item': 'SF',
'number': 4199.18,
'tags': []
}],
'solution_distribute': [{
'item': 'SZ',
'number': 4.4,
'tags': []
}],
'inflow': [{
'x': '2022_11',
'y': {
'SZ_batch': 66,
'SZ_molecule': 66
}
},{
'x': '2023_10',
'y': {
'SF_batch': 621,
'SF_molecule': 621,
'SZ_batch': 256,
'SZ_molecule': 256
}
}],
'outflow': [{
'x': '2024_2',
'y': {
'SF_batch': 1,
'SF_molecule': 1,
'SZ_batch': 2,
'SZ_molecule': 1
}
}],
&quot;inventory_transaction&quot;: {
&quot;options&quot;: [
&quot;2022-11&quot;,
&quot;2022-12&quot;,
&quot;2023-01&quot;,
],
&quot;table&quot;: {
&quot;2022-11&quot;: {
&quot;in&quot;: {
&quot;compound_id&quot;: 66,
&quot;batch_id&quot;: 66
},
&quot;out&quot;: {
&quot;compound_id&quot;: 0,
&quot;batch_id&quot;: 0
}
},
&quot;2022-12&quot;: {
&quot;in&quot;: {
&quot;compound_id&quot;: 54,
&quot;batch_id&quot;: 54
},
&quot;out&quot;: {
&quot;compound_id&quot;: 0,
&quot;batch_id&quot;: 0
}
}
}
}
},
'code': 200,
'message': 'success'
}</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;">compound_distribute</td>
<td style="text-align: left;">list</td>
<td>Compound Distribution accross sites(by compound id)饼图数据</td>
</tr>
<tr>
<td style="text-align: left;">batch_distribute</td>
<td style="text-align: left;">list</td>
<td>Compound Distribution accross sites (by batch id)饼图数据</td>
</tr>
<tr>
<td style="text-align: left;">powder_distribute</td>
<td style="text-align: left;">list</td>
<td>Compound Distribution accross sites (by Powder)饼图数据</td>
</tr>
<tr>
<td style="text-align: left;">solution_distribute</td>
<td style="text-align: left;">list</td>
<td>Compound Distribution accross sites (by solution)饼图数据</td>
</tr>
<tr>
<td style="text-align: left;">inflow</td>
<td style="text-align: left;">list</td>
<td>Monthly Compound Inflow 柱状图数据</td>
</tr>
<tr>
<td style="text-align: left;">outflow</td>
<td style="text-align: left;">list</td>
<td>Monthly Compound Outflow 柱状图数据</td>
</tr>
<tr>
<td style="text-align: left;">inventory_transaction</td>
<td style="text-align: left;">json</td>
<td>Monthly Compound Inventory Transactions 模块数据,(展开详情在单独接口)</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<p>v3.2.3增加Monthly Compound Inventory Transactions 模块xuan'xiang选项和表单数据</p>