新增+修改
<h5>简要描述</h5>
<ul>
<li>新增、编辑通用接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:8000/scm/sale/dispatch/insertandupdate</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>请求参数示例</h5>
<pre><code>{
"billNo": "di003",
"bizDate": "2021-07-31",
"fBillStatus": "1",
"bizType": "1",
"address": "陕西省咸阳市杨陵区",
"customerNumber": "1.001",
"saleOrgCode": "1.03.03.11",
"driverName": "周迅1号",
"plateNumber": "陕Awlhl123",
"orderId": "40c404aa52247a0cb53d630cf41d9176",
"realPickDate": "2021-08-01",
"dispatchEntryJa": [
{
"materialId": "07f0f5025adfb312843ba522dae4aa29",
"baseUnitId": "ed591435d7fdb73dbe002a30254f3d1d",
"actualPrice": "1.23",
"qty": "6",
"taxRate": "6",
"taxPrice": "1.34",
"payAmount": "7.38",
"taxAmount": "1.1",
"totalPriceTax": "8.48",
"deliveryType": "1",
"deliveryDate": "2021-08-01",
"sendDate": "2021-08-01",
"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",
"deliveryType": "1",
"deliveryDate": "2021-08-01",
"sendDate": "2021-08-01",
"isgift": true
}
]
}
</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;">address</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>送货地址</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;">driverName</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>司机名称</td>
</tr>
<tr>
<td style="text-align: left;">plateNumber</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>司机车牌号</td>
</tr>
<tr>
<td style="text-align: left;">orderId</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>订单id</td>
</tr>
<tr>
<td style="text-align: left;">realPickDate</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>实际提货日期</td>
</tr>
<tr>
<td style="text-align: left;">dispatchEntryJa</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;">deliveryType</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>交货方式 1自提 2送货</td>
</tr>
<tr>
<td style="text-align: left;">deliveryDate</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>发货日期</td>
</tr>
<tr>
<td style="text-align: left;">sendDate</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>送货日期</td>
</tr>
<tr>
<td style="text-align: left;">isgift</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>是否赠品</td>
</tr>
</tbody>
</table>