获取表单字段

如果不知道创建的表单字段编码是什么,可以通过此接口获取


版本

v1


SDK方法

FormService.queryFormFields(FormFieldQueryParam formFieldQueryParam)


请求参数

必选 类型及范围 说明
pkBo true string 查看注意事项

请求数据

{
    "pkBo": "598df2358ebf4a6ea5394e939378e4be",
}

返回结果

{
    "data": [{
        "errcode": 0,
        "errmsg": "ok",
        "id": "3dabe73c9f894676932dfe45978ea234",
        "url": null,
        "tenantId": "zjhrilpq_approve",
        "revision": 1,
        "status": null,
        "fieldId": "3dabe73c9f894676932dfe45978ea234",
        "variableId": "3dabe73c9f894676932dfe45978ea234",
        "modelId": "8da7b8db-9e46-11ea-9458-9aa2e21290bb",
        "activityId": null,
        "tableFieldName": "f20200525131519KsGAeWTMUi",
        "createTime": "2020-06-01T17:06:01.000+08:00",
        "modifyTime": "2020-06-01T17:06:01.000+08:00",
        "fieldContent": "{\"code\":\"f20200525131519KsGAeWTMUi\",\"binding\":{\"variableId\":\"3dabe73c9f894676932dfe45978ea234\"},\"id\":\"3dabe73c9f894676932dfe45978ea234\"}",
        "variableContent": "{\"name\":\"文本\",\"id\":\"3dabe73c9f894676932dfe45978ea234\",\"type\":{\"name\":\"string\"}}"
    }, {
        "errcode": 0,
        "errmsg": "ok",
        "id": "759a6297431443a7b9c25325d52e683e",
        "url": null,
        "tenantId": "zjhrilpq_approve",
        "revision": 1,
        "status": null,
        "fieldId": "759a6297431443a7b9c25325d52e683e",
        "variableId": "759a6297431443a7b9c25325d52e683e",
        "modelId": "8da7b8db-9e46-11ea-9458-9aa2e21290bb",
        "activityId": null,
        "tableFieldName": "f20200601170558MB4aKfTFTE",
        "createTime": "2020-06-01T17:06:01.000+08:00",
        "modifyTime": "2020-06-01T17:06:01.000+08:00",
        "fieldContent": "{\"code\":\"f20200601170558MB4aKfTFTE\",\"binding\":{\"variableId\":\"759a6297431443a7b9c25325d52e683e\"},\"id\":\"759a6297431443a7b9c25325d52e683e\"}",
        "variableContent": "{\"name\":\"金额\",\"id\":\"759a6297431443a7b9c25325d52e683e\",\"type\":{\"name\":\"number\"}}"
    }],
    "total": 2,
    "start": 0,
    "sort": null,
    "order": null,
    "size": 2,
    "errcode": 0,
    "errmsg": "ok"
}

返回字段说明

返回值字段 字段类型 字段说明
errcode int 0:Success
errmsg string 描述
fieldId String 可以通过此字段值修改或添加表单数据,

注意事项


测试代码中有demo

BillTest.getBillParam()

pkbo获取

打开审批流设计器

图 1

Copyright © 用友客户成功部 2020 all right reserved,powered by Gitbook修订时间: 2020-09-07 09:37:29

results matching ""

    No results matching ""