~~~[api:needAuth]
post:/index/Orders/submit
*int:product_id#方案ID
*int:warehouse_id#仓库ID
*int:funds#垫付方式:0代理商,1个人
*string:alipay_account#支付宝账号
*string:alipay_name#支付宝姓名
array:file#附件ID数组集合(使用 上传报单附件 接口返回的 ID)
*array:express#物流公司、物流单号和订单号的数组集合
<<<
success
{
"code": 0,
"msg": "报单成功"
}
<<<
error
{
"code": 1,
"msg": "支付宝账号不能为空"
}
~~~
### 请求示例
```
POST https://spike.xtow.net/index/Orders/submit
User-Token: 2@19a82b3eb88c653cd5f306bbc50dec48
Content-Type: application/x-www-form-urlencoded
product_id=1&warehouse_id=1&funds=1&alipay_account=&alipay_name=张三&file[]=1&file[]=2&express[0][orders_number]=订单编号&express[0][express_number]=物流单号&express[0][company]=物流公司
```
### html表单示例
~~~
<!doctype html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>测试报单</title>
</head>
<body>
<form action="https://spike.xtow.net/index/Orders/submit" method="post">
<div>
<label>方案ID</label>
<input type="text" name="product_id" value="1" placeholder="从方案列表接口获得方案ID">
</div>
<div>
<label>仓库ID</label>
<input type="text" name="warehouse_id" value="1" placeholder="从仓库列表接口获得仓库ID">
</div>
<div>
<label>垫付方式</label>
<input type="radio" name="funds" value="0">代理商垫付
<input type="radio" name="funds" value="1">个人垫付
</div>
<div>
<label>支付宝账号</label>
<input type="text" name="alipay_account" value="13888888888" placeholder="支付宝账号">
</div>
<div>
<label>支付宝姓名</label>
<input type="text" name="alipay_name" value="张三" placeholder="支付宝姓名">
</div>
<div>
<label>附件</label>
<input type="text" name="file[]" value="1" placeholder="使用上传保单附件后获得附件ID">
<input type="text" name="file[]" value="2" placeholder="多个附件如此类推">
</div>
<div>
<label>物流及订单①</label>
<input type="text" name="express[0][orders_number]" value="901613058922544120" placeholder="订单编号">
<input type="text" name="express[0][express_number]" value="77111290331451" placeholder="物流单号">
<input type="text" name="express[0][company]" value="中通快递" placeholder="物流公司">
</div>
<div>
<label>物流及订单②</label>
<input type="text" name="express[1][orders_number]" value="10815777604544120" placeholder="订单编号">
<input type="text" name="express[1][express_number]" value="77111459852472" placeholder="物流单号">
<input type="text" name="express[1][company]" value="中通快递" placeholder="物流公司">
</div>
<div>
<label>物流及订单③</label>
<input type="text" name="express[2][orders_number]" value="1223476813086544120" placeholder="多个物流及订单">
<input type="text" name="express[2][express_number]" value="SF1980473757898" placeholder="如此类推">
<input type="text" name="express[2][company]" value="顺丰速运" placeholder="来填写">
</div>
<button type="submit">提交</button>
</form>
</body>
</html>
~~~