获取已提交的合同申请详情
接口: /report/contract/detail?contractId={contractId}&businessCode={businessCode} GET JSON
请求参数
参数 |
类型 |
必须 |
默认值 |
主键 |
描述 |
contractId |
string |
N |
|
Y |
合同编号 |
businessCode |
string |
N |
|
Y |
合同单据号 |
注:至少必填一个参数
返回数据
参数 |
类型 |
描述 |
contract_id |
string |
合同编号 |
contract_name |
string |
合同名称 |
amount |
number |
合同总金额 |
existAttachments |
boolean |
是否存在附件 |
paid_amount |
number |
已履行金额 |
paying_amount |
number |
支付中金额 |
applicant_employee_no |
string |
申请人工号 |
applicant_user_name |
string |
申请人名称 |
agent_employee_no |
string |
责任人工号 |
agent_user_name |
string |
责任人名称 |
supplier_code |
string |
供应商业务编码 |
supplierName |
string |
供应商业务名称 |
department_code |
string |
申请部门编码 |
departmentName |
string |
申请部门名称 |
subsidiary_code |
string |
业务实体编码 |
subsidiaryName |
string |
业务实体名称 |
bill_type |
string |
单据类型编码 |
formSubTypeName |
string |
单据类型名称 |
status |
string |
流程状态, 可选值:APPROVING,COMPLETED; 分别表示: 审批中,已完成 |
biz_status |
string |
业务状态, 可选值:DOING,ENDED,DONE; 分别表示: 进行中、已终止、已完成 |
attachments.fileName |
string |
附件文件名 |
attachments.fileUrl |
string |
附件下载地址 |
customFormValues |
List<CustomFormValue> |
自定义字段 |
businessCode |
string |
合同单据唯一编码 |
baseCcy |
string |
币种 |
approval_process.user_code |
string |
审批人编号 |
approval_process.user_name |
string |
审批人名字 |
approval_process.approval_time |
long |
审批时间 |
approval_process.taskName |
string |
审批节点名称 |
approval_process.approvalComment |
string |
审批意见 |
approval_process.taskCategory |
string |
审批节点类型, APPROVAL, FINANCE_AUDIT,CASHIER_SETTLE |
finance_codes |
string |
审核人编号 |
finance_codes |
string |
审核人编号 |
currency |
string |
合同币种 |
comments |
string |
合同备注 |
installmentRelationDtos |
List<ContractInstallmentCorpReimRelationDto> |
合同分期关联的对公支付据信息 |
corpReimRelationDtos |
List<CorpReimRelationDto> |
合同关联的对公支付据信息 |
externalLink |
string |
合同外部链接 |
contractDeadline |
Date |
合同到期日 |
appendContractBizCodes |
List |
主合同关联附加合同单据号 |
masterContractBizCode |
string |
附加合同关联主合同单据号 |
ContractInstallmentCorpReimRelationDto 结构
参数 |
类型 |
描述 |
customRowNo |
string |
用户自定义分期付款期数行ID |
componentDataCode |
string |
每刻分期付款期数行ID |
corpReimburseCode |
string |
当前分期关联的对公支付单,空值代表还未关联 |
installmentAmount |
string |
当前分期金额 |
installmentDate |
string |
当前分期付款日期 |
installmentDateStatus |
string |
当前分期状态,PAID-已支付,PAIDING-支付中,UNPAID-未支付 |
corpReimRelationDtos 结构
参数 |
类型 |
描述 |
corpReimburseCode |
string |
当前分期关联的对公支付单,空值代表还未关联 |
paymentAmount |
string |
当前分期金额 |
paymentDate |
string |
当前分期付款日期 |
参数 |
类型 |
描述 |
name |
string |
自定义字段名称 |
identifier |
string |
自定义字段占位符 |
type |
string |
自定义字段类型 |
value |
string |
自定义字段内容 |
optionBizCode |
string |
选项编码 |
detailFieldValues |
List<Map<String,String>> |
明细表格内容 |
detailFieldMapping |
Map<String,CustomFormValue> |
明细表格结构,key:identifier, value:type+name |
installmentFieldValues |
List<Map<String,String>> |
分期付款类型字段 |
detailFieldValues 里面多了一个结构
参数 |
类型 |
描述 |
optionInfo |
Map |
明细字段包含选项的信息 |
{
"detailFieldValues": [
{
"field21":"选项2,选项3",
"field22":"选项1,选项2",
"optionInfo":{
"field21":{
"value":"选项2,选项3",
"optionBizCode":"xuanxiang2,xuanxiang3"
},
"field22":{
"value":"选项1,选项2",
"optionBizCode":"xuanxiang1,xuanxiang2"
}
}
}
]
}
参数 |
类型 |
描述 |
installmentFieldValues |
List<Map<String,String>> |
分期付款类型字段 |
|
fieldXX-1 |
付款金额 |
|
fieldXX-2 |
支付状态(PAID-已支付)(UNPAID-未支付)(PAYING-支付中) |
|
fieldXX-3 |
付款日期 |
|
componentDataCode |
更新付款计划对应期数编码(不传表示新增) |
{
"installmentFieldValues":[
{
"field5-1":100,
"field5-3":"PAID",
"field5-2":"2021-03-29",
"componentDataCode":"CDC2207061NTN0V40",
"formDataCode":"PR2207111VJDH8U8"
},
{
"field5-1":700,
"field5-2":"2021-03-30",
"field5-3":"UNPAID",
"componentDataCode":"CDC2207061NTN17R4",
"formDataCode":null
}
]
}
示例:
请求数据
/report/contract/detail?businessCode=22032341
返回数据(成功)
{
"code":"ACK",
"message":"",
"data":[
{
"applicantUserCode":"UI211124211UZ0QO",
"supplierName":"华为",
"supplierType":"CORP",
"departmentName":"DEV-测试公司",
"subsidiaryName":"DEV-测试公司111",
"formSubTypeName":"分期付款合同",
"existAttachments":false,
"businessCode":"22033481",
"baseCcy":"CNY",
"currency":"CNY",
"comments":"备注",
"customFormValues":[
{
"identifier":"field5",
"name":"分期付款",
"type":"Installment",
"value":null,
"detailFieldValues":null,
"detailFieldMapping":null,
"installmentFieldValues":[
{
"field5-1":1000,
"field5-2":"2022-08-24",
"field5-3":"UNPAID",
"componentDataCode":"CDC220824YO01BEO",
"formDataCode":""
},
{
"field5-1":1000,
"field5-2":"2022-08-31",
"field5-3":"UNPAID",
"componentDataCode":"CDC220824YO01MGW",
"formDataCode":null
}
],
"optionBizCode":null
},
{
"identifier":"field1",
"name":"数量",
"type":"SingleTextInput",
"value":"2",
"detailFieldValues":null,
"detailFieldMapping":null,
"installmentFieldValues":null,
"optionBizCode":null
}
],
"contract_id":"no001",
"contract_name":"这是一张合同",
"paid_amount":0,
"paying_amount":0,
"amount":2000,
"applicant_employee_no":"200070",
"applicant_user_name":"gy",
"agent_employee_no":"200070",
"agent_user_name":"gy",
"supplier_code":"huawei",
"subsidiary_code":"test",
"bill_type":"PLC2111301L8ETRSW",
"submitted_at":1661307247315,
"approved_at":1661307247315,
"updated_at":1661307247315,
"biz_status":"DOING",
"status":"COMPLETED",
"externalLink":"www.test.com",
"contractDeadline":1661307247315,
"masterContractBizCode":"22039156",
"appendContractBizCodes":["22039159","22039180"],
"corpReimRelationDtos": [
{
"corpReimburseCode": "220317494",
"paymentAmount": "1000.00",
"paymentDate": "2024-02-29"
}
]
}
],
"args":null,
"linkDetail":false,
"nonBizError":false
}
返回数据(失败)
{
"code":"NACK",
"message":"合同不存在",
"data":null,
"args":null,
"linkDetail":false,
"nonBizError":false
}