简要描述:
- 根据项目id获取该项目的预算表
接口版本:
版本号 | 制定人 | 制定日期 | 修订日期 |
---|---|---|---|
1.0.0 | 海浪 | 2023-08-06 | null |
请求URL:
- /ky-openapi/projects/{projectId}/budgets
请求方式:
- GET
请求示例:
GET /ky-openapi/projects/3643e421840a40feb4f13b428c3cc25e/budgets HTTP/1.1
Authorization: Bearer a34000ad9f1c456f942acc4ffb5423ae
Host: xxxx.com
请求头:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
Authorization | 是 | string | 请求签名 |
请求参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
projectId | 是 | string | 项目id |
返回示例:
正确时返回:
Http Status Code 返回 200
Http Response Body 返回:
[
{
"id": "c232b82a3ae55ced57416b957c234c4c",
"subjectId": "b10bcd5954932657a9e9efc0346fbd71",
"name": "设备购置费",
"subjectParentId": "0cfc583906cb3451ea60b82035bd3458",
"subjectParentName": "设备费用",
"categoryKey": "direct_expenses",
"categoryName": "直接费用",
"targets": [
{
"name": "预算金额(专项经费:万元)",
"category": "special-fund",
"amount": 100000
},
{
"name": "预算金额(配套经费:万元)",
"category": "supporting-fund",
"amount": 100000
}
]
},
{
"id": "f174e1f3e2059d02df961426b469be50",
"subjectId": "0a67ed7a636c08bf903506db7e2ca8a9",
"name": "材料费",
"subjectParentId": null,
"subjectParentName": null,
"categoryKey": "direct_expenses",
"categoryName": "直接费用",
"targets": [
{
"name": "预算金额(专项经费:万元)",
"category": "special-fund",
"amount": 50000
},
{
"name": "预算金额(配套经费:万元)",
"category": "supporting-fund",
"amount": 40000
}
]
},
{
"id": "ea32c46dd33f4090b49fbbdfbe9e8824",
"subjectId": "3a57515c70cd459193dcf22aa333c3f7,2c8572f3a2fb4ea69745b03849fa4d6e,2804ce54e1c5485da9d3dabefadbdedd",
"name": "会议/差旅/国际合作交流费",
"subjectParentId": null,
"subjectParentName": null,
"categoryKey": "direct_expenses",
"categoryName": "直接费用",
"targets": [
{
"name": "预算金额(专项经费:万元)",
"category": "special-fund",
"amount": 9999
},
{
"name": "预算金额(配套经费:万元)",
"category": "supporting-fund",
"amount": 8888
}
]
},
{
"id": "d820cc1f7da644bca99da01dc90ddf94",
"subjectId": "efc5dc20a6f7465d8e73a3984180e85b",
"name": "劳务费",
"subjectParentId": null,
"subjectParentName": null,
"categoryKey": "direct_expenses",
"categoryName": "直接费用",
"targets": [
{
"name": "预算金额(专项经费:万元)",
"category": "special-fund",
"amount": 4444
},
{
"name": "预算金额(配套经费:万元)",
"category": "supporting-fund",
"amount": 5555
}
]
},
{
"id": "c232b82a3ae55ced57416b957c234c4c",
"subjectId": "0cfc583906cb3451ea60b82035bd3458",
"name": "设备费用",
"subjectParentId": null,
"subjectParentName": null,
"categoryKey": "direct_expenses",
"categoryName": "直接费用",
"targets": [
{
"name": "预算金额(专项经费:万元)",
"category": "special-fund",
"amount": 100000
},
{
"name": "预算金额(配套经费:万元)",
"category": "supporting-fund",
"amount": 100000
}
]
},
{
"id": "fdf5bc844ac80602107e25ed1b1546f9",
"subjectId": "fe27e5d93d5c04865edd7fce0363012f",
"name": "间接费用",
"subjectParentId": null,
"subjectParentName": null,
"categoryKey": "indirect_expenses",
"categoryName": "间接费用",
"targets": [
{
"name": "预算金额(专项经费:万元)",
"category": "special-fund",
"amount": 10000
},
{
"name": "预算金额(配套经费:万元)",
"category": "supporting-fund",
"amount": 10000
}
]
}
]
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | string | 主键id |
subjectId | string | 科目ID |
subjectName | string | 科目名称 |
subjectParentId | string | 科目父级ID |
subjectParentName | string | 科目父级名称 |
categoryKey | string | 科目类别 |
categoryName | string | 科目类别名称 |
targets | array | 科目目标(专项经费、配套经费) |
targets.name | string | 目标名称(专项经费、配套经费) |
targets.category | string | 目标类别(专项经费、配套经费) |
targets.amount | decimal | 目标预算金额(单位:元) |
错误时返回:
查看公共相应
备注:
- 更多返回错误代码请看错误代码描述
作者:Lin 创建时间:2023-08-11 16:53
最后编辑:Lin 更新时间:2025-01-23 09:40
最后编辑:Lin 更新时间:2025-01-23 09:40