# 接口说明
- 1.该接口是查询企业的审批单详情,目前仅开放差旅、用餐、对公付款审批单。
- 2.审批单详情查询需要新版审批流才能使用。
- 3.分贝通申请单id和三方申请单id至少必填其一
| 名称 | 描述 |
|---|---|
| HTTP方法 | POST |
| Content-Type | application/x-www-form-urlencoded |
| method | /openapi/func/apply/common/detail |
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| access_token | token | string | Y | 登录 token |
| sign | 签名 | string | Y | oihfnlyeofdh98 |
| timestamp | 时间戳 | long | Y | 13位时间戳 1241243250000 |
| data | 请求数据 | jsonobject | Y | 请求数据 |
| data.apply_id | 分贝通申请单ID | string | N | 分贝通申请单ID |
| data.third_apply_id | 三方申请单ID | string | N | 三方申请单ID |
请求示例:
"access_token":"5747fbc10f0e60e0709d8d722",
"timestamp":1635820323000,
"sign":"oihfnlyeofdh98",
"employee_id":"59b74c1323445f2d54dd07922",
"data":{
"apply_id": "xxxx"
}
1
2
3
4
5
6
7
2
3
4
5
6
7
# 响应数据:
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| code | 响应码 | integer | Y | 0:成功;1:失败 |
| msg | 响应信息 | string | N | success |
| data | 响应数据 | jsonObject | N | |
| data.apply | 申请单内容 | jsonobject | Y | 申请单详细内容 |
| data.trip_list | 行程列表 | jsonarray | Y | 行程列表 |
| data.guest_list | 出行联系人信息 | jsonarray | N | 出行联系人信息 |
| data.saas_info | 管控信息 | jsonObject | N | 管控信息 |
| data.dinner_info | 用餐信息 | jsonObject | N | 用餐信息 |
# 申请单内容apply:
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| type | 申请单业务类型 | integer | Y | 1.差旅 11.用餐 18.对公付款 |
| apply_id | 分贝通申请单ID | string | Y | 分贝通申请单ID |
| third_id | 第三申请单id | string | N | 第三方审批单id |
| third_remark | 第三方备注 | string | N | 详细备注信息 |
| employee_id | 申请人分贝通ID | string | Y | 申请人分贝通ID |
| third_employee_id | 申请人第三方ID | string | N | 申请人第三方ID |
| employee_name | 申请人姓名 | string | Y | 申请人姓名 |
| department_name | 员工所在部门名称 | string | Y | 员工所在部门名称 |
| department_id | 员工所在部门id | string | Y | 员工所在部门id |
| third_department_id | 员工所在部门三方系统id | string | N | 员工所在部门三方系统id |
| create_time | 申请单创建时间 | string | Y | 申请单创建时间 |
| budget | 申请单预算 | integer | N | 预算总额 |
| apply_reason | 申请事由 | string | N | 申请事由 |
| apply_reason_desc | 申请事由补充说明 | string | N | 补充事由说明 |
| state | 申请单状态 | integer | Y | 申请单状态 2.待审核 4.已同意 16.已拒绝 8.已作废 128.已过期 1024.变更中 2048.已变更 512.已完成 |
| payment_name | 名称 | string | N | 名称 |
| bank_account_acct_name | 付款账户名称 | string | N | 付款账户名称 |
| payment_time | 付款时间 | string | N | 付款时间 |
| payment_use | 付款用途 | string | N | 付款用途 |
# 出行联系人信息guest_list:
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| employee_id | 出行联系人id | string | N | 员工ID,非企业员工不返回 |
| is_employee | 是否是企业员工 | boolean | N | true,false |
| name | 出行联系人姓名 | string | N | 张三 |
| phone_num | 出行联系人手机号 | string | N | 17080151667 |
| third_employee_id | 出行人三方ID | jsonarray | N | 出行人三方ID,非企业员工不返回 |
# 行程列表trip_list:
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| type | 业务类型 | integer | Y | 行程类型 7.机票 11.酒店 15.火车 40.国际机票 |
| multitrip_type | 非行程差旅行程类型枚举值 | List | Y | 7:国内机票11:酒店15:火车40:国际机票135:汽车非行程中类型为多个,需可为多个类型 |
| start_city_id | 出发城市ID | string | N | 出发城市ID |
| start_city_name | 出发城市名称 | string | N | 出发城市名称 |
| start_time | 出发时间 | string | N | 行程开始日期 2017-12-13 |
| arrival_city_id | 目的地城市ID | string | N | 行程到达城市ID,酒店时不返回,使用出发城市信息 |
| arrival_city_name | 目的地城市名称 | string | N | 行程到达城市名称,酒店时不返回,使用出发城市信息 |
| end_time | 结束时间 | string | N | 行程结束日期 2017-12-29 |
| estimated_amount | 预估价格 | integer | N | 100,单位分 |
| multitrip_cities | 城市列表,非行程差旅、用车、用餐 | jsonObject | N | 城市列表,非行程差旅、用车、用餐 |
| multitrip_cities.id | 城市ID | string | N | 城市ID |
| multitrip_cities.name | 城市名称 | string | N | 城市名称 |
# 管控信息saas_info:
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| cost_category | 费用类别 | JsonObject | N | 费用类别 |
| cost_category.id | 费用类别id | string | N | 费用类别id |
| cost_category.name | 费用类别名称 | string | N | 费用类别名称 |
| cost_attribution_group_list | 费用归属信息 | JsonArray | N | 费用归属信息 |
| cost_attribution_group_list.category | 费用归属类别 | Integer | N | 费用归属类别 |
| cost_attribution_group_list.record_id | 费用归属记录 | string | N | 费用归属记录 |
| cost_attribution_group_list.category_name | 费用归属名称 | string | N | 费用归属名称 |
| cost_attribution_group_list.cost_attribution_list | 费用归属集合 | JsonArray | N | 费用归属集合 |
| cost_attribution_group_list.cost_attribution_list.id | 费用归属id | string | N | 费用归属id |
| cost_attribution_group_list.cost_attribution_list.name | 费用归属名称 | string | N | 费用归属名称 |
| cost_attribution_group_list.cost_attribution_list.weight | 费用归属权重 | integer | N | 费用归属权重 |
# 合同信息contract_info:
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| create_time | 创建时间 | string | N | 创建时间 |
| contract_addition_list | 合同附件信息 | JsonArray | N | 合同附件信息 |
| contract_addition_list.addition_id | 合同附件id | string | N | 合同附件id |
| contract_addition_list.addition_url | 合同附件地址 | string | N | 合同附件地址 |
| applicants_name | 申请人姓名 | string | N | 申请人姓名 |
| contract_name | 合同名称 | string | N | 合同名称 |
| created_by_name | 创建人名称 | string | N | 创建人名称 |
| contract_price | 合同金额 | bigDecimal | N | 合同金额 |
| contract_end_date | 合同截止日期 | string | N | 合同截止日期 |
| bank_account_name | 收款账户名称 | string | N | 收款账户名称 |
| party_a_full_name | 甲方全称 | string | N | 甲方全称 |
| contract_code | 合同编码 | string | N | 合同编码 |
| contract_begin_date | 合同起始日期 | string | N | 合同起始日期 |
| sub_branch | 支行 | string | N | 支行 |
| bank_name | 开户行 | string | N | 开户行 |
| party_c_full_name | 丙方全称 | string | N | 丙方全称 |
| created_by_id | 创建人分贝通id | string | N | 创建人id |
| applicants_id | 申请人分贝通id | string | N | 申请人id |
| applicants_dept | 申请人部门 | string | N | 申请人部门 |
| party_b_full_name | 乙方全称 | string | N | 乙方全称 |
| bank_account | 收款账号 | string | N | 收款账号 |
# 供应商信息supplier_info:
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| bank_account_name | 收款账户名称 | string | N | 收款账户名称 |
| create_time | 添加时间 | string | N | 添加时间 |
| sub_branch | 支行 | string | N | 支行 |
| bank_name | 开户行 | string | N | 开户行 |
| created_by_name | 添加人 | string | N | 添加人 |
| company_supplier_name | 供应商名称 | string | N | 供应商名称 |
| bank_account | 供应商银行账户 | string | N | 收款账号 |
# 凭证信息proof_info:
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| proof_dsec | 凭证说明 | string | N | 凭证说明 |
| attachment_list | 附件 | JsonArray | N | 附件 |
| attachment_list.entity_type | 数据类型 | integer | N | 数据类型 1-付款单凭证 |
| attachment_list.entity_id | 数据ID | integer | N | 数据ID |
| attachment_list.id | 附件主键 | integer | N | 附件主键 |
| attachment_list.attachment_url | 附件地址URl | string | N | 附件地址URl |
# 用餐信息dinner_info:
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| start_time | 用餐开始时间 | string | N | 2022-02-28 |
| end_time | 用餐结束时间 | string | N | 2022-02-28 |
| time_range | 用餐可用时间段 | string | N | 07:00~20:00 |
| useable_budget | 用餐剩余可用额度 | bigDecimal | N | 100.09 |
| person_count | 用餐人数 | int | N | 10 |
| city | 用餐城市 | jsonObject | N | 用餐城市 |
| city.key | 用餐城市编码 | string | N | 用餐城市编码 |
| city.value | 用餐城市名称 | string | N | 用餐城市名称 |
{
"code": 0,
"msg": "success",
"data": {
"apply": {
"third_employee_id": "ceshi01",
"payment_time": "2022-01-05",
"third_remark": "",
"apply_reason_desc": "12345",
"employee_name": "强 叭叭 Echo-Q",
"type": 18,
"apply_reason": "项目第三方测试",
"employee_id": "657678687687",
"apply_id": "76788889890898",
"payment_name": "名称1",
"payment_use": "用途2",
"state": 2,
"bank_account_acct_name": "测试有限公司",
"budget": 2300,
"create_time": "2022-03-10 14:13:43",
"department_id": "601fb4c8aa422780b31210be",
"department_name": "钉钉测试",
"third_department_id": "dingac6e0b9ce4935bd5ffe93478753d9884"
},
"trip_list": [{
"multitrip_type":[],
"start_time": "2022-01-05",
"estimated_amount": 2300,
"start_city_id": "0",
"type": 128,
"multitrip_cities":{
"id":"",
"name":""
}
}],
"guest_list": [],
"contract_info": {
"create_time": "2022-01-05 16:12:19",
"contract_addition_list": [{
"addition_id": 16,
"addition_url": "https://xxxxxx.pdf"
}],
"applicants_name": "宋有",
"contract_name": "合同子",
"created_by_name": "强叭叭Echo-Q",
"contract_price": 36.0,
"contract_end_date": "2022-03-17 16:10:47",
"bank_account_name": "guolei111",
"party_a_full_name": "甲方2222",
"contract_code": "68474747",
"contract_begin_date": "2022-01-01 16:10:47",
"sub_branch": "中国建设银行股份有限公司吉县支行",
"bank_name": "中国建设银行",
"party_c_full_name": "冰冰5555",
"created_by_id": "576786788798798",
"applicants_id": "5765786788798",
"applicants_dept": "强嘞嘞测试",
"party_b_full_name": "一一77777",
"bank_account": "62276767877789"
},
"supplier_info": {
"bank_account_name": "测试结果显示",
"create_time": "2021-07-15 15:35:35",
"sub_branch": "中国银行股份有限公司盐池支行",
"bank_name": "中国银行",
"created_by_name": "强叭叭",
"company_supplier_name": "这里是一个",
"bank_account": "2255842508989"
},
"proof_info": {
"proof_dsec": "凭证证明",
"attachment_list": [{
"entity_type": 1,
"id": 70,
"entity_id": "6",
"attachment_url": "https://xxxxxxxxx.jpg"
},
{
"entity_type": 1,
"id": 71,
"entity_id": "6",
"attachment_url": "https://xxxxxxxxx.jpg"
}
],
"proof_price": 56.0,
"proof_name": "凭证名"
},
"saas_info": {
"cost_category": {
"id": "10010",
"name": "交通费"
},
"cost_attribution_group_list": [{
"category": 1,
"record_id": "",
"category_name": "部门",
"cost_attribution_list": [{
"id": "678678789978979898",
"name": "四级部门",
"weight": 100
}]
},
{
"category": 2,
"record_id": "",
"category_name": "项目",
"cost_attribution_list": [{
"id": "45567576786788",
"name": "Qs测试项目",
"weight": 100
}]
}
]
},
"dinner_info": {
"start_time": "2022-02-28",
"time_range": "07:00~20:00",
"city": {
"value": "北京市",
"key": "1000001"
},
"useable_budget": 100.99,
"end_time": "2022-02-28",
"person_count": "9"
}
},
"request_id": "EUoWVBsHO8pmT8uL"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129