新增+修改
<h5>简要描述</h5>
<ul>
<li>新增、编辑通用接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:8000/scm/sale/outbound/insertandupdate</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>请求参数示例</h5>
<pre><code>{
"billNo": "ou003",
"bizDate": "2021-07-31",
"fBillStatus": "1",
"bizType": "1",
"customerNumber": "1.001",
"saleOrgCode": "1.03.03.11",
"dispatchId": "6c3fbf56943666ea5e23990bf6e1cb61",
"address": "陕西省咸阳市杨陵区",
"outboundEntryJa": [
{
"materialId": "07f0f5025adfb312843ba522dae4aa29",
"baseUnitId": "ed591435d7fdb73dbe002a30254f3d1d",
"actualPrice": "1.23",
"qty": "6",
"taxRate": "6",
"taxPrice": "1.34",
"payAmount": "7.38",
"taxAmount": "1.1",
"totalPriceTax": "8.48",
"warehouseId": "26a91bd7e350c5939c13164bf5248e1c",
"isgift": false
},
{
"materialId": "07f0f5025adfb312843ba522dae4aa29",
"baseUnitId": "ed591435d7fdb73dbe002a30254f3d1d",
"actualPrice": "1.23",
"qty": "6",
"taxRate": "6",
"taxPrice": "1.34",
"payAmount": "7.38",
"taxAmount": "1.1",
"totalPriceTax": "8.48",
"warehouseId": "26a91bd7e350c5939c13164bf5248e1c",
"isgift": false
}
]
}
</code></pre>
<h5>json字段说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">字段名</th>
<th style="text-align: left;">必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">billNo</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>编码</td>
</tr>
<tr>
<td style="text-align: left;">bizDate</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>业务日期</td>
</tr>
<tr>
<td style="text-align: left;">fBillStatus</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>单据状态 1保存 2提交 3审核</td>
</tr>
<tr>
<td style="text-align: left;">bizType</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>业务类型 1普通销售 2普通代销</td>
</tr>
<tr>
<td style="text-align: left;">customerNumber</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>客户编码</td>
</tr>
<tr>
<td style="text-align: left;">saleOrgCode</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>公司编码</td>
</tr>
<tr>
<td style="text-align: left;">dispatchId</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>派车单id</td>
</tr>
<tr>
<td style="text-align: left;">address</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>送货地址</td>
</tr>
<tr>
<td style="text-align: left;">outboundEntryJa</td>
<td style="text-align: left;">是</td>
<td>array</td>
<td>分录</td>
</tr>
<tr>
<td style="text-align: left;">materialId</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>物料id</td>
</tr>
<tr>
<td style="text-align: left;">baseUnitId</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>基本计量单位id</td>
</tr>
<tr>
<td style="text-align: left;">actualPrice</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>实际价格</td>
</tr>
<tr>
<td style="text-align: left;">qty</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>数量</td>
</tr>
<tr>
<td style="text-align: left;">taxRate</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>税率</td>
</tr>
<tr>
<td style="text-align: left;">taxPrice</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>含税单价</td>
</tr>
<tr>
<td style="text-align: left;">payAmount</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>金额</td>
</tr>
<tr>
<td style="text-align: left;">taxAmount</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>税额</td>
</tr>
<tr>
<td style="text-align: left;">totalPriceTax</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>价税合计</td>
</tr>
<tr>
<td style="text-align: left;">warehouseId</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>仓库id</td>
</tr>
<tr>
<td style="text-align: left;">isgift</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>是否赠品</td>
</tr>
</tbody>
</table>