审批历史

获取单据审批历史(报销单、申请单、对公支付)

接口: https://{maycurhost}/api/web/report/approvals/history GET JSON

通过SSO接口获得authToken, 并将entCode与authToken放入http header中;
http.setHeader("entCode", {entCode})
http.setHeader("tokenId", {authToken})
请求参数
参数 类型 必须 默认值 主键 描述
startDate date (yyyy-MM-dd) N yesterday N 审批操作起始时间
endDate date (yyyy-MM-dd) N now N 审批操作结束时间

返回数据

参数 类型 描述
businessCode string 单据号
type string 对私报销, 消费申请,对公单据
name string 单据标题
assignee string 提单人code
assigneeEmployeeId string 提单人工号
assigneeEmployeeName string 提单人姓名
submittedAt long 提交时间
submitter string 填单人工号
submitterName string 填单人名称
reimUser string 报销人工号
reimUserName string 报销人名称
cover string 承担人工号
coverName string 承担人名称
approver string 审批人code
approverEmployeeId string 审批人工号
approverEmployeeName string 审批人姓名
departmentBizCode string 承担部门编码
departmentName string 承担部门名称
subsidiaryBizCode string 业务实体编码
subsidiaryName string 业务实体名称
amount decimal 申请金额
currency currency 货币单位
status enum 单据状态

返回数据(成功)

{  
  "code": "ACK",   
  "message": "",  
  "data": [  
    {  
      "businessCode": "MK116060011",
      "type": "对私报销",
      "name": "BOB支付测试",
      "submittedAt": 1111111111,
      "submitter": "UI160509YD62PKW",
      "submitterName": "张三",
      "reimUser": "UI160509YD62PKW",
      "reimUserName": "张三",
      "cover": "UI160509YD62PKW",
      "coverName": "张三",
      "coverEmployeeId": "0000",
      "departmentBizCode": "CWB",
      "departmentName", "财务部",
      "subsidiaryBizCode": "CS"
      "subsidiaryName": "测试用业务实体",
      "amount": 10000,
      "currency": "CNY",
      "assignee": "UI1604231GTXIXS0",    
      "assigneeEmployeeId": "0000",      
      "assigneeEmployeeName": "XXXX",
      "approver": "UI1604231GTXIXS0",    
      "approverEmployeeId": "0000",      
      "approverEmployeeName": "XXXX"
    }  
  ]  
}

results matching ""

    No results matching ""