接口文档

WCS-ERP数据交互


单据出库

<h5>简要描述</h5> <p>&gt; 用户在ERP系统创建单据后,ERP将单据中的涉及的桶号,产线等相关信息调用接口进行下发,成功后WCS将进行后续的出库流程。</p> <h5>请求URL</h5> <p>&gt; <code>http://{IP}:9527/api/delivery</code></p> <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;">containerNo</td> <td style="text-align: left;">是</td> <td style="text-align: left;">stiring</td> <td>桶号</td> </tr> <tr> <td style="text-align: left;">toPos</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>产线</td> </tr> </tbody> </table> <h5>请求示例</h5> <pre><code class="language-json">{     &amp;quot;data&amp;quot;: [         {             &amp;quot;containerNo&amp;quot;: &amp;quot;6001&amp;quot;,             &amp;quot;toPos&amp;quot;: &amp;quot;A&amp;quot;         },         {             &amp;quot;containerNo&amp;quot;: &amp;quot;6002&amp;quot;,             &amp;quot;toPos&amp;quot;: &amp;quot;B&amp;quot;         }     ] }</code></pre> <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;">containerNo</td> <td style="text-align: left;">是</td> <td style="text-align: left;">stiring</td> <td>桶号</td> </tr> <tr> <td style="text-align: left;">toPos</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>产线</td> </tr> <tr> <td style="text-align: left;">isSuccess</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>是否成功</td> </tr> <tr> <td style="text-align: left;">message</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>失败会返回原因</td> </tr> </tbody> </table> <h5>响应示例</h5> <pre><code class="language-json">{ {     &amp;quot;data&amp;quot;: [         {             &amp;quot;containerNo&amp;quot;: &amp;quot;6001&amp;quot;,             &amp;quot;toPos&amp;quot;: &amp;quot;A&amp;quot;, &amp;quot;isSuccess&amp;quot;: false, &amp;quot;message&amp;quot;:&amp;quot;未找到对应的桶号&amp;quot;         },         {             &amp;quot;containerNo&amp;quot;: &amp;quot;6002&amp;quot;,             &amp;quot;toPos&amp;quot;: &amp;quot;B&amp;quot;, &amp;quot;isSuccess&amp;quot;: true         }     ],     &amp;quot;isSuccess&amp;quot;: true,     &amp;quot;message&amp;quot;: &amp;quot;成功&amp;quot; }</code></pre>

页面列表

ITEM_HTML