核销预提数据互联

数据互联说明 核销预提数据互联调整了formData中的数据结构,改为平铺形式。

请求方式:POST

请求参数:

说明:formData中存放的是所有请求单据信息,报销单单据信息(reimburseData)下的legalEntity为公司抬头信息、coverUser为承担人信息、coverDepartment为承担部门信息。

费用单据信息(reimburseExpenseData)下的expenseTypeCode为费用类型信息、consumeAmount中的value里的currencyCode为消费币种

分摊表单信息(reimburseExpenseAllocationData)下的legalEntity为公司抬头信息、coverUser为承担人信息、coverDepartment为承担部门信息

当单据不存在时(新建费用),formData只有费用表单(reimburseExpenseData)和分摊表单(reimburseExpenseAllocationData)相关信息,legalEntity为公司抬头信息、coverUser为承担人信息、coverDepartment为承担部门信息则需要到分摊信息(reimburseExpenseAllocationData)取值。


取值说明:若有分摊表单,且分摊表单上存在公司抬头、承担人和承担部门信息则优先取分担表单上的公司抬头、承担人和承担部门信息,否则(不存在分摊表单或分摊表单无公司抬头信息、承担人和承担部门信息)则取报销单单据信息(reimburseData)中的公司抬头、承担人和承担部门

具体请求参数、与支持的type类型说明可以参考formData字段说明中的 【二、单据间的固定字段说明】-- 报销单、费用、分摊信息等 每刻推送的表单FormData数据格式

{
    "keyWord": "",  
    "start": 10,  
    "length": 10, 

    "formData": {
        "reimburseData": {
            "amount": {
                "label": "报销金额",
                "type": "AmountInput",
                "value": {
                    "text": "12.00",
                    "currencyCode": "CNY"
                }
            },
            "formType": {
                "label": "单据模板类型",
                "type": "SingleTextInput",
                "value": {
                    "text": "REIMBURSE"
                }
            },
            "coverUser": {
                "label": "承担人",
                "type": "StaffInput",
                "value": [
                    {
                        "text": "张三",
                        "employeeNo": "123456",
                        "userId": ""
                    }
                ]
            },
            "fillUser": {
                "label": "制单人",
                "type": "StaffInput",
                "value": [
                    {
                        "text": "张三",
                        "employeeNo": "123456",
                        "userId": ""
                    }
                ]
            },
            "smartValidateResult": {
                "label": "智能审核",
                "type": "SmartValidateResult"
            },
            "signInvoiceDto": {
                "label": "签收发票",
                "type": "SignInvoice",
                "value": {
                    "commonNotMatchInvoiceList": []
                }
            },
            "legalEntity": {
                "label": "公司抬头",
                "type": "LegalEntityInput",
                "value": {
                    "bizCode": "EC123456",
                    "text": "1"
                }
            },
            "collectionSchedule": {
                "label": "多人收款",
                "type": "CollectionScheduleInput",
                "value": []
            },
            "formSubTypeBizCode": {
                "label": "单据类型业务编码",
                "type": "SingleTextInput",
                "value": {
                    "text": "123456"
                }
            },
            "deductionAmount": {
                "label": "核销金额",
                "type": "DeductionAmountInput",
                "value": {}
            },
            "smartValidateResultData": {
                "value": {}
            },
            "coverDepartment": {
                "label": "承担部门",
                "type": "DepartmentInput",
                "value": {
                    "businessCode": "123456",
                    "name": "A部门",
                    "text": "A部门"
                }
            },
            "loanDeductionList": {
                "label": "核销借款",
                "type": "DeductionInput",
                "value": []
            }
        },
        "reimburseExpenseData": {
            "label": "费用明细",
            "type": "ExpenseListInput",
            "value": [
                {
                    "consumeTime": {
                        "label": "消费日期",
                        "type": "DateTimeInput",
                        "value": {
                            "currentTime": 1646582251456,
                            "text": "2022-03-06"
                        }
                    },
                    "consumeLocation": {
                        "label": "消费城市",
                        "type": "CityInput",
                        "value": {
                            "fullCode": "123456",
                            "code": "820000",
                            "text": "澳门"
                        }
                    },
                    "code": {
                        "label": "code",
                        "type": "SingleTextInput",
                        "value": {
                            "text": "123456"
                        }
                    },
                    "comments": {
                        "label": "备注",
                        "type": "MultiTextInput",
                        "value": {
                            "text": ""
                        }
                    },
                    "consumeAmount": {
                        "label": "金额",
                        "type": "AmountInput",
                        "value": {
                            "text": "12.00",
                            "currencyCode": "CNY"
                        }
                    },
                    "acceptToBaseExchangeRate": {
                        "label": "收款币种至本币币种汇率",
                        "type": "NumberInput",
                        "value": {
                            "text": "1.000000"
                        }
                    },
                    "expenseTypeCode": {
                        "label": "费用类型",
                        "type": "ExpenseTypeInput",
                        "value": {
                            "businessCode": "03.003",
                            "bizSuffixCode": "03.003",
                            "text": "快递及邮寄"
                        }
                    },
                    "splitTag": {
                        "label": "拆分状态",
                        "type": "SingleTextInput",
                        "value": {
                            "text": "NOT_SPLIT"
                        }
                    },
                    "baseAmount": {
                        "label": "本币金额",
                        "type": "AmountInput",
                        "value": {
                            "text": "0.00",
                            "currencyCode": "CNY"
                        }
                    },
                    "invoiceTaxList": {
                        "label": "税票信息",
                        "type": "InvoiceTaxInput",
                        "value": []
                    },
                    "consumeToAcceptExchangeRate": {
                        "label": "消费币种至收款币种汇率",
                        "type": "NumberInput",
                        "value": {
                            "text": "1.000000"
                        }
                    },
                    "approvedAcceptAmount": {
                        "label": "收款金额",
                        "type": "AmountInput",
                        "value": {
                            "text": "12.00",
                            "currencyCode": "CNY"
                        }
                    },
                    "exchangeScoreFlag": {
                        "label": "是否补贴兑换积分",
                        "type": "SingleTextInput",
                        "value": {
                            "text": "false"
                        }
                    },
                    "acceptAmount": {
                        "label": "收款金额",
                        "type": "AmountInput",
                        "value": {
                            "text": "12.00",
                            "currencyCode": "CNY"
                        }
                    },
                    "settleType": {
                        "label": "结算方式",
                        "type": "SingleTextInput",
                        "value": {
                            "text": "personal_advance"
                        }
                    }
                }
            ]
        },
        "reimburseExpenseAllocationData": {
            "type": "AllocationInput",
            "value": {
                "allocations": [
                    {
                        "allocationAmount": {
                            "type": "AmountInput",
                            "value": {
                                "text": "12.00",
                                "currencyCode": "CNY"
                            }
                        },
                        "invoiceTaxList": {
                            "label": "税票信息",
                            "type": "InvoiceTaxInput",
                            "value": []
                        },
                        "allocationRatio": {
                            "type": "NumberInput",
                            "value": {
                                "text": "100.0"
                            }
                        },
                        "customObject": {},
                        "coverDepartment": {
                            "label": "承担部门",
                            "type": "DepartmentInput",
                            "value": {
                                "businessCode": "123456",
                                "name": "A部门",
                                "text": "A部门"
                            }
                        },
                        "coverUser": {
                            "label": "承担人",
                            "type": "StaffInput",
                            "value": [
                                {
                                    "text": "张三",
                                    "employeeNo": "123456",
                                    "userId": ""
                                }
                            ]
                        },
                        "legalEntity": {
                            "label": "公司抬头",
                            "type": "LegalEntityInput",
                            "value": {
                                "bizCode": "EC123456",
                                "text": "1"
                            }
                        }
                    }
                ]
            }
        }
    },
    "verification": false
}

响应参数:

预提编码accrualCode字段为必传字段

参数说明可参考 数据互联接口说明 ,需要注意的是上面关于type的说明不准确,目前支持很多type类型可以参考该文档最下面的『formData字段说明』,亦可参考formData字段说明中的 【三、表单字段数据格式】 表单字段数据格式

{
    "data": {
        "recordsTotal": 100, 
    "isPage": true,
        "definedList": [  
            {
                "primary": "true",  
                "label": "预提编码", 
                "type": "SingleTextInput", 
                "businessCode": "accrualCode",  
                "display": true  
            },
            {
        "primary": false,
                "label": "预提科目",
                "type": "SingleTextInput",
                "businessCode": "accrualName",
                "display": true 
            },
      {
        "primary": false,
        "label": "负责人",
        "type": "SingleTextInput",
        "businessCode": "principalName",
        "display": true
      }

        ],
        "dataList": [{  
            "accrualCode": "AC001",
            "accrualName": "科目001"
        },{
            "accrualCode": "AC002",
            "accrualName": "科目002"
        }],
        "defaultValue": {  
            "accrualCode": "AC001",
            "accrualName": "科目001"
        }
    },
    "errorMsg": null,
    "success": true
}

特别注意:

预提编码/编号为必传字段且必须定义为accrualCode

Copyright © 杭州每刻科技有限公司 www.maycur.com all right reserved,powered by Gitbook该文件修订时间: 2024-11-20 10:52:00

results matching ""

    No results matching ""

    results matching ""

      No results matching ""