Qeasy Cloud
Get Started

工作流表单字段采集与提交规范

Source: Qeasy Cloud491 views

获取表单字段信息

打开需要对接的申请工作流,获取其中的表单字段信息。注意:域名/api/workflow/reqform/loadForm,这个接口可以获取表单字段信息。

表单字段信息

表单字段说明

在返回的数据中找到tableInfofieldinfomap的信息:

  • main: 主表字段信息
  • detail_1: 明细表信息

数据结构

具体字段说明如下:

  • fieldid: 前端提交时带的ID
  • fieldlabel: 前端显示的信息
  • fieldname: 后端配置的字段名(方案中的配置信息)

字段详情

webservice请求参数示例说明

{
    "workflowBaseInfo": {
        "workflowId": "工作表单ID"
    },
    "requestName": "XXXX流程--2023-09-07",
    "requestLevel": "1",
    "creatorId": "创建人",
    "workflowMainTableInfo": {
        "requestRecords": [
            {
                "workflowRequestTableFields": [
                    {"fieldName":"name","fieldValue":"14720","view":true,"edit":true},
                    {"fieldName":"yzgsmc","fieldValue":"0","view":true,"edit":true},
                    {"fieldName":"yzbm","fieldValue":"841","view":true,"edit":true},
                    {"fieldName":"yzri","fieldValue":"2023-09-08","view":true,"edit":true},
                    {"fieldName":"yzmc","fieldValue":"测试表单测试表单测试表单","view":true,"edit":true},
                    {"fieldName":"yzsy","fieldValue":"测试用例1111","view":true,"edit":true},
                    {"fieldName":"yzsl","fieldValue":"1","view":true,"edit":true},
                    {"fieldName":"manager","fieldValue":"12586","view":true,"edit":true},
                    {"fieldName":"remark","fieldValue":"12586","view":true,"edit":true}
                ]
            }
        ]
    }
}

获取提交的数据

提交数据

{
    formid: -5,
    weaver_belongto_userid: 14720,
    isWorkflowDoc: false,
    f_weaver_belongto_usertype: 0,
    nodetype: 0,
    method: needoutprint,
    src: save,
    isMultiDoc: topage,
    workflowtype: 15,
    iscreate: 1,
    comemessage: remindTypes,
    request_submit_token: 1694142149924,
    rand: requestid:-1htmlfielids, 
    ...
}

适配器使用

DoCreateWorkflowRequestAdapter:创建流程

WeaverE9V2QueryAdapter:查询流程信息

使用流程申请创建一条流程

在该步骤中,可以得到用户ID和流程workflowid。

workflowid=377

点击进入工作流

![工作流图片](//pic.qeasy.cloud/2023-09-11/1694432041

Copyright Notice

The article "工作流表单字段采集与提交规范" is original content owned by 广东轻亿云软件科技有限公司. Reposting, quoting, copying or mirroring is strictly prohibited without written authorization. Please contact us for authorization and credit the author and source (including the original link) prominently.