token: ********************
{
"project_id": 1, // 项目id
"type": 1, // 付款类型: 1=直接费有合同, 2=直接费无合同 3=其他直接费有合同, 4=其他直接费无合同, 5=间接管理费有合同,6=间接管理费无合同
"code": "FK20250506001", // 单据编号
"remark": null, // 备注
"handler_id": 3, // 经办人
"handler_group_id": 8, // 经办部门
"handle_date": 1746460800, // 经办日期
"item_list": [
{
"plan_id": 1, // 资金支付计划id
"supplier_id": null, // 供方id
"supplier_name": "一个供应商", // 供方名称
"payment_type": 1, // 付款类型,和上面的付款类型是同一个
"contract_id": 1, // 合同id
"applicant_date": 1746460800, // 申请日期
"applicant_amount": 1000, // 申请金额
"invoice_amount": 0, // 开票金额,没有填0
"pay_amount": 1000, // 本次付款金额
"unpaid_amount": 0, // 申请未付金额
"pay_date": 1746460800, // 付款日期
"pay_method": 1, // 付款方式, 和对公转账那些付款方式一样
"remark": null // 备注
}
],
"file_list": [
{
"name": "一个附件", // 附件名称
"md5": null, //
"origin_name": "一个附件.pdf", // 源文件名
"path": "contract/aabbcc.pdf", // 云端存储路径
"ext": "pdf", // 文件后缀
"size": 2345, // 文件大小,单位为B
"duration": null, //
"width": null, //
"height": null, //
}
]
}
curl --location --request POST 'http://cmi-api.gleg.site/api/payment-managements' \
--header 'Content-Type: application/json' \
--header 'token;' \
--data-raw '{
"project_id": 1, // 项目id
"type": 1, // 付款类型: 1=直接费有合同, 2=直接费无合同 3=其他直接费有合同, 4=其他直接费无合同, 5=间接管理费有合同,6=间接管理费无合同
"code": "FK20250506001", // 单据编号
"remark": null, // 备注
"handler_id": 3, // 经办人
"handler_group_id": 8, // 经办部门
"handle_date": 1746460800, // 经办日期
"item_list": [
{
"plan_id": 1, // 资金支付计划id
"supplier_id": null, // 供方id
"supplier_name": "一个供应商", // 供方名称
"payment_type": 1, // 付款类型,和上面的付款类型是同一个
"contract_id": 1, // 合同id
"applicant_date": 1746460800, // 申请日期
"applicant_amount": 1000, // 申请金额
"invoice_amount": 0, // 开票金额,没有填0
"pay_amount": 1000, // 本次付款金额
"unpaid_amount": 0, // 申请未付金额
"pay_date": 1746460800, // 付款日期
"pay_method": 1, // 付款方式, 和对公转账那些付款方式一样
"remark": null // 备注
}
],
"file_list": [
{
"name": "一个附件", // 附件名称
"md5": null, //
"origin_name": "一个附件.pdf", // 源文件名
"path": "contract/aabbcc.pdf", // 云端存储路径
"ext": "pdf", // 文件后缀
"size": 2345, // 文件大小,单位为B
"duration": null, //
"width": null, //
"height": null, //
}
]
}'
{}