Qeasy Cloud
Get Started

企业微信审批流程配置详解

Source: Qeasy Cloud527 views

企业微信配置专题内容

获取连接器参考:

企业微信如何授权?-系统数据集成交流社区(qeasy.cloud)

企业微信发起审批:

  1. 详细配置需要参照企业微信API文档:提交审批申请-文档-企业微信开发者中心(qq.com)

  2. 在进行配置方案前,需新建一个查询审批表单模板的方案,查询对应字段类型及字段ID。

    • 使用的适配器:\Adapter\Wxwork\WxworkV2QueryAdapter
    • 调用接口:/cgi-bin/oa/gettemplatedetail,主键及编码均使用{random}
    • 请求参数配置字段:template_id(字符串),值为查询到的模板ID。获取方法参考:企业微信审批数据获取
    • 其他请求参数:detailkey(字符串),值为template_content
    • 其他响应参数配置如下表:
字段 字段名称 字段值 字段类型
statusKey 响应状态字段 errcode 字符串
statusValue 成功状态值 0 字符串
dataKey 返回数据字段 template_content 字符串
pageKey 分页key cursor 字符串
islist 是列表还是详细 detail 字符串
  1. 查询到对应表单模板信息后,可在数据管理内查看对应字段信息,如图: upl-image-previewurl=//pic.qeasy.cloud/2023-05-31/1685529462-49454-image.png

  2. 配置发起审批的方案:

    • 目标平台调度中的适配器使用:\Adapter\Wxwork\WxworkV2ExecuteAdapter
  3. 写入调度者接口信息视图中的API使用:“/cgi-bin/oa/applyevent

  4. 请求参数按照下列表格将表单所有控件进行配置(括号内值可替换):

字段 字段名 字段值 字段类型
creator_userid 申请人userid (LiQiu) 字符串
template_id 模板id (3WLJWotDSVU6dDkMwiWXdaZX5VT8rcec1gF7xRFs) 字符串

use_template_approver | 审批人模式 |(1) |字符串| apply_data_1 |(所属平台)| |子表对象| control |控件类型| (Text)|字符串| id |控件id|(Text-1684804573310)|字符串| value |控件值| ({platform_name})|字符串| apply_data_2 |(明细表格演示)| |子表对象| control | 控件类型|Table |字符穿| id | 控件id|(Table-1684844236078)|字母串| value |控件值| |字母穿| children 子表内分录内容 多行分录

apply_data_1为常规输入框配置方式,apply_data_2为审批表单内明细表格的配置方式。如果有多个控件,更改apply_data后缀进行配置,如图:

![upl-image-previewurl=//pic.qeasy.cloud/2023-05-31/1685529444-874149-image.png](//pic.qeasy.cloud/2023-05-31

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.