绩效统计报表
字段可选
M:must 必填
O:optional 选填
C: conditional 某些条件下必选
员工开单统计
接口名
/datacenter/kpi/receipt
Method
GET
请求
start_date M datetime 查询开始日期
end_date M datetime 查询截止日期
----- session -----
station_id M string 站点ID
响应
code M int 返回码,0表示成功,其他表示错误
msg M string 错误信息
data M string 返回json数据
[{
"employee_name" M string 员工名
"create_additional_task_num" M int 创建作业单数量
"create_stock_out_num" M int 创建出库单数量
"create_stock_in_num" M int 创建入库单数量
"employee_username" M string 员工账号
"employee_id" M int 员工ID
"create_transfer_num" M int 创建转户单数量
}]
示例
request
http://test.guanmai.cn:8888/datacenter/kpi/receipt?start_date=2016-10-02&end_date=2016-10-02
response
{
"data": [{
"employee_name": "superman",
"create_additional_task_num": 70,
"create_stock_out_num": 48,
"create_stock_in_num": 56,
"employee_username": "superman",
"employee_id": 1,
"create_transfer_num": 20
}],
"msg": "ok",
"code": 0
}
员工开单统计导出
接口名
/datacenter/kpi/receipt/export
Method
GET
请求
start_date M datetime 查询开始日期
end_date M datetime 查询截止日期
----- session -----
station_id M string 站点ID
响应
xlsx文件
示例
request
http://test.guanmai.cn:8888/datacenter/kpi/receipt/export?start_date=2016-10-02&end_date=2016-10-02
response
作业绩效统计
接口名
/datacenter/kpi/additional_task
Method
GET
请求
start_date M datetime 查询开始日期
end_date M datetime 查询截止日期
type M string 查询类型(gather汇总,detail明细)
----- session -----
station_id M string 站点ID
响应
code M int 返回码,0表示成功,其他表示错误
msg M string 错误信息
data M string 返回json数据
[{
"employee_id" M int 员工ID
"employee_name" M string 员工名
"additional_task_details": [{ M list 作业单明细
"date" O datetime 日期
"charge_count" M float 计费数
"id" O string 作业单号
"fee_id" O int 费用ID
"real_count" M float 实际数量
"unit_price" M float 单价
"price" M float 价格
"unit_name" M string 单位
"name" M string 作业类型
}]
}]
示例
request
http://test.guanmai.cn:8888/datacenter/kpi/additional_task?start_date=2016-10-02&end_date=2016-10-02&type=detail
response
{
"data": [{
"employee_id": 1
"employee_name": "superman",
"additional_task_details": [{
"date": "2016-09-01",
"charge_count": 1.0,
"id": "ZY00071",
"fee_id": 4,
"real_count": 0.03,
"unit_price": 3.0,
"price": 3.0,
"unit_name": "板",
"name": "兴奋作业费"
}]
}],
"msg": "ok",
"code": 0
}
作业绩效统计导出
接口名
/datacenter/kpi/additional_task/export
Method
GET
请求
start_date M datetime 查询开始日期
end_date M datetime 查询截止日期
----- session -----
station_id M string 站点ID
响应
xlsx文件
示例
request
http://test.guanmai.cn:8888/datacenter/kpi/additional_task/export?start_date=2016-10-02&end_date=2016-10-02
response