(新增时)获取审批流
<p><strong>简要描述:</strong> </p>
<ul>
<li>(新增时)获取审批流接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/vocatschool/preview_approve.html</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">JSON字符串</td>
<td>编辑页面字段对象 只传审批条件设置的即可</td>
</tr>
</tbody>
</table>
<pre><code>包含以下属性:(用车类型,司机,车牌号,同行人数)
{"type":"0","driver_name":"司机名","vehicle_num":"浙A3232","peer_num":"2"}</code></pre>
<p><strong>返回示例</strong></p>
<pre><code>{
"data": {
"message": "审批未启用",
"code": "103"
},
"message": "审批未启用",
"code": "103",
"msg": "审批未启用",
"serialno": "yrBr2Slvc7tTwwky"
}</code></pre>
<pre><code> {
"msg": "成功",
"code": "0",
"message": "成功",
"data": {
"code": "0",
"message": "成功",
"itemList": [
{
"personList": [
{
"stage_person_id": "1369405847850975232",
"node_person_code": "copy_person",
"stage_id": "1365375502516224000",
"scheme_id": "1365375293996400640",
"emp_name": "洪月琴",
"corp_id": "ding6f34e443f18c3ecc",
"logourl": "https://static-legacy.dingtalk.com/media/lADPDg7mRClmJFfNAe7NAe4_494_494.jpg",
"emp_id": "01092003003427703510"
},
{
"stage_person_id": "1370100605481123840",
"node_person_code": "copy_person",
"stage_id": "1365375502516224000",
"scheme_id": "1365375293996400640",
"emp_name": "乔鹏(乔鹏辉)",
"corp_id": "ding6f34e443f18c3ecc",
"logourl": "https://qsedupro.oss-cn-hangzhou.aliyuncs.com/studenthead/grid_icon7.png",
"emp_id": "1954123168-705413688"
},
{
"stage_person_id": "1370191116497846272",
"node_person_code": "copy_person",
"stage_id": "1365375502516224000",
"scheme_id": "1365375293996400640",
"emp_name": "李业芳",
"corp_id": "ding6f34e443f18c3ecc",
"logourl": "https://static-legacy.dingtalk.com/media/lADPDgQ9rVlpaF3NBCXNBCU_1061_1061.jpg",
"emp_id": "1538676826067879"
}
],
"stage_type": "1",
"stage_id": "1365375502516224000",
"item_type": "1",
"sub_node": "0",
"title": "审批人",
"condition_group_id": "0",
"dept_level": "",
"role_name": "",
"sequence": "1",
"approve_person_type": "0",
"skip_node": "0",
"role_id": "",
"scheme_id": "1365375293996400640",
"grade": "1",
"parent_node": "0",
"form_element_id": "",
"is_use": "1",
"sign_type": "0",
"corp_id": "ding6f34e443f18c3ecc",
"sup_node": "0"
}
]
},
"serialno": "hto5dHTQnbzSmJP6"
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">errcode</td>
<td style="text-align: left;">String</td>
<td>错误码</td>
</tr>
<tr>
<td style="text-align: left;">errmsg</td>
<td style="text-align: left;">String</td>
<td>错误信息</td>
</tr>
<tr>
<td style="text-align: left;">personList</td>
<td style="text-align: left;">String</td>
<td>命中分支后的审批人</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!欢迎使用ShowDoc!</p>