简要描述:
- 员工审批-员工审批页面
请求域名:
- http://xx.com
请求URL:
POST/route=plugin.staff-audit.frontend.audit.index
请求类型
POST
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
staff_identity | 否 | int | 按钮类型 1-申请者,2-审批者,3-管理员(默认1) |
audit_status | 是 | int | 审批状态:0-待确认,1-待审核,2-审核通过,-1驳回(默认0) |
返回示例:
正确时返回:
{
"result": 1,
"msg": "success",
"data": {
"button_arr": {
"apply": true,//申请人安妮
"audit": true,//审核人按钮
"admin": true//管理员按钮
},
"list": {
"current_page": 1,
"data": [
{
"id": 1,
"uniacid": 25,
"business_id": 11,
"uid": 163951,
"apply_name": "申请人1",//申请人
"apply_time": 1669003985,
"department_id": 46,
"reason": "mei li you",//事由
"reward_point": "9.96",//奖励积分
"status": 0,
"created_at": "2022-11-21 12:13:05",//时间
"updated_at": "2022-11-21 12:13:05",
"deleted_at": null,
"audit_staff_id": 38,
"admin_staff_id": 0,
"can_edit_reviewedby": false,
"can_audit": false,
"audit_status_str": "待确认",//状态
"apply_time_ymd_str": "2022-11-21",//申请时间
"department_name": "子部门2"//所在部门
},
{
"id": 3,
"uniacid": 25,
"business_id": 11,
"uid": 163951,
"apply_name": "申请人3",
"apply_time": 1637220874,
"department_id": 46,
"reason": "没理由",
"reward_point": "9.80",
"status": 2,
"created_at": "2022-11-21 14:38:31",
"updated_at": "2022-11-21 14:54:30",
"deleted_at": null,
"audit_staff_id": 39,
"admin_staff_id": 0,
"can_edit_reviewedby": false,
"can_audit": false,
"audit_status_str": "审核通过",
"apply_time_ymd_str": "2021-11-18",
"department_name": "子部门2"
},
{
"id": 4,
"uniacid": 25,
"business_id": 11,
"uid": 163951,
"apply_name": "申请人3",
"apply_time": 1637220874,
"department_id": 46,
"reason": "没理由",
"reward_point": "9.80",
"status": 0,
"created_at": "2022-11-21 15:59:47",
"updated_at": "2022-11-21 16:05:43",
"deleted_at": null,
"audit_staff_id": 39,
"admin_staff_id": 0,
"can_edit_reviewedby": false,
"can_audit": false,
"audit_status_str": "待确认",
"apply_time_ymd_str": "2021-11-18",
"department_name": "子部门2"
}
],
"first_page_url": "http://dev.yz/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://dev.yz/addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://dev.yz/addons/yun_shop/api.php",
"per_page": 15,
"prev_page_url": null,
"to": 3,
"total": 3
}
}
}