申请单详情接口
说明
单据详情接口,无法查询到已删除单据信息。
接口限制
10次/秒
接口地址
申请单详情接口
/api/openapi/form/preconsume/{formCode}
请求类型
GET
请求参数
参数说明
参数名称 | 类型 | 是否必填 | 参数说明 |
---|---|---|---|
formCode | String(50) | 是 | 单据号 |
参数样例
MK230209001
响应参数
响应参数说明
参数名称 | 类型 | 是否必填 | 参数说明 |
---|---|---|---|
formDataCode | String(100) | 是 | 单据内码 |
formCode | String(100) | 是 | 单据号 |
formSubTypeBizCode | String(100) | 是 | 单据小类编码 |
formSubTypeName | String(150) | 是 | 单据小类名称 |
preConsumeName | String(600) | 是 | 申请事由 |
applicantEmployeeName | String(150) | 是 | 申请人姓名 |
applicantEmployeeId | String(150) | 是 | 申请人工号 |
fillEmployeeName | String(150) | 是 | 填单人工号 |
fillEmployeeId | String(150) | 是 | 填单人姓名 |
departmentBizCode | String(400) | 是 | 部门编码 |
departmentName | String(400) | 是 | 部门名称 |
legalEntityBizCode | String(150) | 否 | 公司抬头信息 |
legalEntityName | String(150) | 否 | 公司抬头名称 |
comment | String(1000) | 否 | 备注 |
tradingPartnerBizCode | String(150) | 否 | 往来单位编码 |
tradingPartnerParentBizCode | String(150) | 否 | 当前往来单位的上一级分类的编码 |
tradingPartnerName | String(150) | 否 | 往来单位名称 |
submittedAt | Long | 否 | 最新一次提单时间 |
amount | AmountInput | 是 | 申请金额 |
formStatus | String(150) | 是 | 单据状态 |
approvedAt | Long | 否 | 审批通过时间 |
approvedAmount | AmountInput | 否 | 审批通过金额 |
createdAt | Long | 是 | 单据创建时间 |
applicationExpense | List<ApplicationDetailListInput> | 否 | 申请明细 |
validationResult | List<ValidationResult> | 否 | 校验结果 |
customObject | CustomObject | 否 | 自定义字段Map集合(表单的“控件”列所有组件) |
applyRules | List<ApplyRule> | 否 | 适用费用标准列表 |
procurementDetails | List<ProcurementDetail> | 否 | 采购明细 |
correlatedReimburseCodes | List<String > | 否 | 关联的报销单号 |
travelRouteList | List<TravelRoute> | 否 | 行程列表 |
prevFormCode | String(100) | 否 | 变更前申请单号 |
loanAmount | AmountInput | 否 | 核销金额 |
payeeAccount | AccountInput | 否 | 收款账户 |
expectRepayDate | Long | 否 | 借款预计规还时间 |
budgetTransferAdd | List<BudgetProcessDto> | 否 | 预算追加组件信息 |
budgetTransferOut | List<BudgetProcessDto> | 否 | 预算调出组件信息 |
formAssociateUserList | List<SimpleUser > | 否 | 允许他人关联组件 |
detailTotalAmount | Map<String,List<OpenApiTotalAmountDataDto>> | 否 | 明细组件下的金额组件的总金额 |
exportComments | String(1000) | 否 | 外部系统回写备注 |
externalVoucherCodes | String(500) | 否 | 外部系统回写凭证号 |
externalVoucherStatus | String(500) | 否 | 外部系统回写凭证状态 |
exportStatus | int | 否 | 外部系统回写的状态 |
tagList | List<OpenApiDynaTagDataDto> | 否 | 标签列表 |
travelPartnerInfo | TravelPartnerInfo | 否 | 参与人 |
requestDepartmentBizCode | String(400) | 否 | 提单人部门编码 |
requestDepartmentName | String(400) | 是 | 提单部门名称 |
associatedFormCodes | List< String > | 否 | 关联内部单据号 |
associatedForms | List<AssociationFormDto> | 否 | 关联单据对象列表 |
associatedExternalFormList | List<OpenApiExternalFormAssociationDto> | 否 | 关联外部单据对象列表 |
参数样例
正常响应参数示例
{ "code": "ACK", "message": "", "data": { "formDataCode": "BX19101510VPV56O", "formCode": "MK19101502", "formSubTypeBizCode": "FT18081314B9DJB4", "formSubTypeName": "张三的报销单", "reimburseName": "测试费用分类", "coverEmployeeName": "张三", "coverEmployeeId": "MK001", "departmentBizCode": "", "departmentDingtalkId":"", "departmentName": "开发一部", "requestDepartmentBizCode": "", "requestDepartmentName": "", "comment": "评论信息", "payeeAccount": { "bankBranchName": "中国工商银行股份有限公司杭州西城支行", "bankAcctName": "张三", "bankAcctNumber": "6210002870002188096" }, "legalEntityBizCode": "EC1803221E22UHXD", "legalEntityName": "杭州每时每刻有限公司", "consumeApplicationCodes": ["PRE001", "PRE002"], "tradingPartnerBizCode": "TPB001", "tradingPartnerName": "每刻科技往来单位有限公司", "submittedAt": 1571128001340, "amount": { "currency": "CNY", "amount": 3 }, "reimEmployeeName": "张三", "reimEmployeeId": "empNo001", "formStatus": "DRAFT", "paymentAmount": { "currency": "CNY", "amount": 3 }, "approvedAt": 1571208001340, "approvedAmount": { "currency": "CNY", "amount": 3 }, "settledAt": 1571208001340, "auditedAt": 1571208001340, "createdAt": 1571108001340, "signEmployeeName":"小明", "signEmployeeId":"190121", "associatedFormCodes":[ "MK23050271", "MK23050267" ], "associatedForms":[ { "formType":"LOAN", "formSubTypeName":"借款单(支持申请生成)", "formSubTypeCode":"FT2202181P280KJK", "formSubTypeBizCode":"FT2202181P280KJK", "formCode":"MK23050271" }, { "formType":"LOAN", "formSubTypeName":"借款单(支持申请生成)", "formSubTypeCode":"FT2202181P280KJK", "formSubTypeBizCode":"FT2202181P280KJK", "formCode":"MK23050267" } ], "associatedExternalFormList":[ { "formDataCode":"EFD23120411ZJUY9S", "formCode":"mk001", "formName":"外部单据001", "submittedAt":1600570132000, "formAmount":{ "amount":91.1, "currency":"CNY", "customExchangeRate":1, "amountStr":"¥91.10" }, "submitUser":"knight" }, { "formDataCode":"EFD23120411ZJVAWW", "formCode":"mk002", "formName":"外部单据002", "submittedAt":1600570132000, "formAmount":{ "amount":0, "currency":"CNY", "customExchangeRate":1, "amountStr":"¥0.00" }, "submitUser":null } ] }, "expenseList": [ { "expenseTypeBizCode": "EXPENSE001", "consumeAmount": { "currency": "CNY", "amount": 3 }, "comments": "备注信息", "airClass": {}, "consumeTime": { "startTime":1546272000000, "endTime":1548950400000 }, "consumeLocation": { "departure":"domestic-ZH32-ZH32_1", "departureText":"杭州市", "destination":"domestic-ZH1-ZH1_0", "destinationText":"北京市" }, "invoiceList": [ { "invoiceUrl":"xxxx", "validateStatusDesc":"xxx", "invoiceType":"xxx", "invoiceInfo":{ } } ], "status":"OPEN", "customObject": { "CF1201": { "type": "AmountInput", "value":{ "currency": "USD", "amount": 800 } }, "cityId": { "type": "CityInput", "value":{ "code": "domestic-ZH32-ZH32_1", "text": "杭州市" } } }, "applyRules": [ { "ruleCode": "ER2101091AXYTOTH", "ruleName": "QC期控月度修改漂移测试规则", "factorType": "AMOUNT", "amountStd": { "amount": "100.00", "currency": "CNY" }, "otherStds": [] } ] } ], "customObject": { }, "externalVoucherCodes": "外部凭证编码", "generateVoucher":false, "taxDeductBaseAmount": { "currency": "CNY", "amount": 3 }, "taxDeductAcceptAmount": { "currency": "CNY", "amount": 3 }, "detailTotalAmount": { "mingzi01": [ { "currency": "CNY", "amount": 11.1, "businessCode": "totalamount", "amountStr": "11.1" }, { "currency": "CNY", "amount": 11.2, "businessCode": "CF161", "amountStr": "11.2" } ], "CF156": [ { "currency": "CNY", "amount": 1.1, "businessCode": "CF158", "amountStr": "1.1" } ] } }
修改记录
2023-02-08 新增申请单详情文档
2023-12-04 新增关联单据对象列表、关联外部单据对象列表