领料单保存
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>用户注册接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://ip/webapi/api/Base/Execute?opeartion=save&amp;formId=TWOE_OutStock</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<pre><code>{
&quot;IsDeleteEntry&quot;: &quot;false&quot;,
&quot;Model&quot;: {
&quot;FID&quot;: 103697, //单据id
&quot;FPickerId&quot;: { //领料人
&quot;FNUMBER&quot;: &quot;谈涛&quot; //传登录的empNumber
},
&quot;FEntity&quot;: [
{
&quot;FEntryID&quot;: 107067, //分录id
&quot;FPlanOutStockWeight&quot;: 1, //申请重量
&quot;FOutStockWeight&quot;: 1 //实际重量
}
]
}
}</code></pre>
<h5>返回示例</h5>
<pre><code>成功:
{
&quot;Result&quot;: {
&quot;ResponseStatus&quot;: {
&quot;IsSuccess&quot;: true,
&quot;Errors&quot;: [],
&quot;SuccessEntitys&quot;: [
{
&quot;Id&quot;: 103697,
&quot;Number&quot;: &quot;SCLL24112614&quot;,
&quot;DIndex&quot;: 0
}
],
&quot;SuccessMessages&quot;: [],
&quot;MsgCode&quot;: 0
},
&quot;Id&quot;: 103697,
&quot;Number&quot;: &quot;SCLL24112614&quot;,
&quot;NeedReturnData&quot;: [
{}
]
}
}
失败:
{
&quot;Result&quot;: {
&quot;ResponseStatus&quot;: {
&quot;ErrorCode&quot;: 500,
&quot;IsSuccess&quot;: false,
&quot;Errors&quot;: [
{
&quot;FieldName&quot;: &quot;&quot;,
&quot;Message&quot;: &quot;单据编号为“SCLL24112614”的出库单,第1行分录,申请出库重量不能大于库存重量!&quot;,
&quot;DIndex&quot;: 0
}
],
&quot;SuccessEntitys&quot;: [],
&quot;SuccessMessages&quot;: [],
&quot;MsgCode&quot;: 11
},
&quot;Id&quot;: &quot;&quot;,
&quot;Number&quot;: &quot;&quot;,
&quot;NeedReturnData&quot;: [
{}
]
}
}</code></pre>