汇报单保存
<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_ProcessReport</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<pre><code>工序汇报:
{
&quot;IsDeleteEntry&quot;: &quot;false&quot;,
&quot;IsAutoSubmitAndAudit&quot;:&quot;true&quot;, //自动提交审核
&quot;Model&quot;: {
&quot;FID&quot;: 116452, //单据id
&quot;FDepId&quot;: { //部门
&quot;FNUMBER&quot;: &quot;BM000006&quot; //传登陆人的部门编码
},
&quot;FCompletionModel&quot;: &quot;完工规格&quot;, //规格
&quot;FModelSupplement&quot;: &quot;长宽度&quot;, //长宽度
&quot;FCompletionTime&quot;: &quot;2024-11-28 10:56:16&quot;, //完工时间 取当前时间
&quot;FCompleterId&quot;: { //完工人
&quot;FNUMBER&quot;: &quot;谈涛&quot; //取empNumber
},
&quot;FWeight&quot;: 0, //完工重量
&quot;FSurplusModel&quot;: &quot;/&quot;, //余料规格 默认填/
&quot;FSurplusWeight&quot;: 0, //余料重量
&quot;F_WasteWeight&quot;: 0 //残废料重量
}
}
检验汇报:
{
&quot;IsDeleteEntry&quot;: &quot;false&quot;,
&quot;IsAutoSubmitAndAudit&quot;:&quot;true&quot;,
&quot;Model&quot;: {
&quot;FID&quot;: 116454,
&quot;FDepId&quot;: {
&quot;FNUMBER&quot;: &quot;BM000006&quot;
},
&quot;FCompletionModel&quot;: &quot;完工规格&quot;, //规格
&quot;FModelSupplement&quot;: &quot;长宽度&quot;, //长宽度
&quot;FCompletionTime&quot;: &quot;2024-11-28 10:56:16&quot;, //检验时间 取当前时间
&quot;FCompleterId&quot;: { //检验人
&quot;FNUMBER&quot;: &quot;谈涛&quot;//取empNumber
},
&quot;FWeight&quot;: 13, //合格重量
&quot;FUnqualifiedWeight&quot;: 0, //不合格重量
&quot;FProcessReportParaEntity&quot;: [
{
&quot;FEntryID&quot;: 121640,
&quot;FInspectionResult&quot;: &quot;合格2&quot; //检测结果
},
{
&quot;FEntryID&quot;: 121641,
&quot;FInspectionResult&quot;: &quot;合格3&quot; //检测结果
},
{
&quot;FEntryID&quot;: 121642,
&quot;FInspectionResult&quot;: &quot;合格4&quot; //检测结果
},
{
&quot;FEntryID&quot;: 121643,
&quot;FInspectionResult&quot;: &quot;合格5&quot; //检测结果
}
]
}
}
外协汇报:
{
&quot;IsDeleteEntry&quot;: &quot;false&quot;,
&quot;IsAutoSubmitAndAudit&quot;: &quot;true&quot;,
&quot;Model&quot;: {
&quot;FID&quot;: 116455,
&quot;FDepId&quot;: {
&quot;FNUMBER&quot;: &quot;BM000006&quot;
},
&quot;FCompletionModel&quot;: &quot;完工规格&quot;,
&quot;FModelSupplement&quot;: &quot;长宽度&quot;,
&quot;FCompletionTime&quot;: &quot;2024-11-28 10:56:16&quot;,
&quot;FCompleterId&quot;: {
&quot;FNUMBER&quot;: &quot;谈涛&quot;
},
&quot;FWeight&quot;: 23,
&quot;FUnqualifiedWeight&quot;: 0,
&quot;FSurplusModel&quot;: &quot;/&quot;,
&quot;FSurplusWeight&quot;: 0,
&quot;F_WasteWeight&quot;: 0,
&quot;FTaxRate&quot;: 13, //税率 默认13
&quot;FAmount&quot;: 100, //不含税金额 自动计算
&quot;FTaxAmount&quot;: 13, //税额 自动计算
&quot;FAllAmount&quot;: 113 //加工费
}
}</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;: 116452,
&quot;Number&quot;: &quot;GXHB2411000402&quot;,
&quot;DIndex&quot;: 0
}
],
&quot;SuccessMessages&quot;: [],
&quot;MsgCode&quot;: 0
},
&quot;Id&quot;: 116452,
&quot;Number&quot;: &quot;GXHB2411000402&quot;,
&quot;NeedReturnData&quot;: [
{}
]
}
}</code></pre>