获取单据code
调用/reimburse/base/getTemplateList.rjson
这个接口,来查请求单据列表所需要的相关字段,以下为请求调度者源数据,进行一次性的查询,并保留原始的返回参数,后续配置过程中需要用到。其中templateCode
为各单据的单据code。
{
"api": "/reimburse/base/getTemplateList.rjson",
"type": "RESTful",
"effect": "QUERY",
"method": "POST",
"number": "templateName",
"id": "templateCode",
"name": "id",
"idCheck": true,
"request": [],
"otherRequest": [],
"response": [
{
"field": "code",
"label": "code",
"value": "",
"type": "string",
"describe": "_autoFillResponse",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"id": "codeRYSmj",
"title": "code-code",
"key": "codeRYSmj"
},
{
"field": "configureObject",
"label": "configureObject",
"type": "object",
"value": "",
"describe": "_autoFillResponse",
"id": "configureObject4J88x",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"children": [
{
"field": "valueRule",
"label": "valueRule",
"type": "string",
"value": "",
"id": "configureObjectVwpjM",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"describe": "_autoFillResponse",
"title": "valueRule-valueRule",
"key": "configureObjectVwpjM"
},
{
"field": "editable",
"label": "editable",
"type": "string",
"value": "",
"id": "configureObjecthO9Et",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"describe": "_autoFillResponse",
"title": "editable-editable",
"key": "configureObjecthO9Et"
},
{
"field": "textType",
"label": "textType",
"type": "string",
"value": "",
"id": "configureObjectjyUFP",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"describe": "_autoFillResponse",
"title": "textType-textType",
"key": "configureObjectjyUFP"
},
{
"field": "optional",
"label": "optional",
"type": "string",
"value": "",
"id": "configureObjectZkH91",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"describe": "_autoFillResponse",
"title": "optional-optional",
"key": "configureObjectZkH91"
},
{
"field": "label",
"label": "label",
"type": "string",
"value": "",
"id": "configureObjectRF2Kg",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"describe": "_autoFillResponse",
"title": "label-label",
"key": "configureObjectRF2Kg"
},
{
"field": "placeholder",
"label": "placeholder",
"type": "string",
"value": "",
"id": "configureObjectdgqjO",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"describe": "_autoFillResponse",
"title": "placeholder-placeholder",
"key": "configureObjectdgqjO"
},
{
"field": "maxLength",
"label": "maxLength",
"type": "string",
"value": "",
"id": "configureObjectktUip",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"describe": "_autoFillResponse",
"title": "maxLength-maxLength",
"key": "configureObjectktUip"
},
{
"field": "destruction",
"label": "destruction",
"type": "string",
"value": "",
"id": "configureObjectGHJv9",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"describe": "_autoFillResponse",
"title": "destruction-destruction",
"key": "configureObjectGHJv9"
}
],
"title": "configureObject-configureObject",
"key": "configureObject4J88x"
},
{
"field": "label",
"label": "label",
"value": "",
"type": "string",
"describe": "_autoFillResponse",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"id": "labelwYl1h",
"title": "label-label",
"key": "labelwYl1h"
},
{
"field": "name",
"label": "name",
"value": "",
"type": "string",
"describe": "_autoFillResponse",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"id": "nameRgILx",
"title": "name-name",
"key": "nameRgILx"
},
{
"field": "orderTemplateType",
"label": "orderTemplateType",
"value": "",
"type": "string",
"describe": "_autoFillResponse",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"id": "orderTemplateTypeNi2wO",
"title": "orderTemplateType-orderTemplateType",
"key": "orderTemplateTypeNi2wO"
},
{
"field": "require",
"label": "require",
"value": "",
"type": "string",
"describe": "_autoFillResponse",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"id": "require3p3RP",
"title": "require-require",
"key": "require3p3RP"
},
{
"field": "subformComponentList",
"label": "subformComponentList",
"type": "object",
"value": "",
"describe": "_autoFillResponse",
"id": "subformComponentListiw3YF",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"children": [],
"title": "subformComponentList-subformComponentList",
"key": "subformComponentListiw3YF"
},
{
"field": "templateCode",
"label": "templateCode",
"value": "",
"type": "string",
"describe": "_autoFillResponse",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"id": "templateCodelz3rz",
"title": "templateCode-templateCode",
"key": "templateCodelz3rz"
},
{
"field": "templateName",
"label": "templateName",
"value": "",
"type": "string",
"describe": "_autoFillResponse",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"id": "templateNamebt0pp",
"title": "templateName-templateName",
"key": "templateNamebt0pp"
},
{
"field": "templateType",
"label": "templateType",
"value": "",
"type": "string",
"describe": "_autoFillResponse",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"id": "templateTypeQLjtF",
"title": "templateType-templateType",
"key": "templateTypeQLjtF"
},
{
"field": "type",
"label": "type",
"value": "",
"type": "string",
"describe": "_autoFillResponse",
"formModel": {
"enable": false
},
"physicalModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"id": "typeQxaZk",
"title": "type-type",
"key": "typeQxaZk"
}
],
"otherResponse": [
{
"id": "65be8c25-24e5-3163-a8e4-91835b58f61e",
"field": "statusKey",
"label": "statusKey",
"type": "string",
"is_required": false,
"describe": "",
"value": "result",
"parent_id": "00000000-0000-0000-0000-000000000000",
"physicalModel": {
"enable": false
},
"formModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"title": "statusKey-statusKey",
"key": "65be8c25-24e5-3163-a8e4-91835b58f61e"
},
{
"id": "7feeba0d-38b2-3a89-a291-2f34790d49fb",
"field": "statusValue",
"label": "statusValue",
"type": "string",
"is_required": false,
"describe": "",
"value": "100",
"parent_id": "00000000-0000-0000-0000-000000000000",
"physicalModel": {
"enable": false
},
"formModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"title": "statusValue-statusValue",
"key": "7feeba0d-38b2-3a89-a291-2f34790d49fb"
},
{
"id": "c97bc60c-eb2b-3d31-8592-ba6528369c33",
"field": "dataKey",
"label": "dataKey",
"type": "string",
"is_required": false,
"describe": "",
"value": "data",
"parent_id": "00000000-0000-0000-0000-000000000000",
"physicalModel": {
"enable": false
},
"formModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"title": "dataKey-dataKey",
"key": "c97bc60c-eb2b-3d31-8592-ba6528369c33"
},
{
"id": "bcfd3482-b286-3bc9-a917-7b7e90960888",
"field": "pageKey",
"label": "pageKey",
"type": "string",
"is_required": false,
"describe": "",
"value": "page",
"parent_id": "00000000-0000-0000-0000-000000000000",
"physicalModel": {
"enable": false
},
"formModel": {
"enable": false
},
"tableModel": {
"enable": false
},
"title": "pageKey-pageKey",
"key": "bcfd3482-b286-3bc9-a917-7b7e90960888"
}
],
"buildModel": false,
"autoFillResponse": true
}
- 找到单据类型
在有成的基础设置-自定义单据中找到对应的单据类型,1. 报销单 2.借款单 3.付款单 4.费用类型 5. 申请单 6. 合同 7. 项目 8.收款单
- 配置列表查询方案
将刚才获取到的单据类型和单据code填入请求调度者参数中。