# 预算弱管控

来源快照：`result_data_new_260518.json`

- 来源 ID：`1203974578298748961`
- 模块：电子费控
- 目录：场景示例 - 预算报销
- space ID：`1963167002611772846`
- 原文链接：未提供
- 产品基线：未提供

## 正文

# 1\. 编写目的

源于业务灵活性，在企业日常报销中允许报销金额超预算，例如活动经费或客户招待超标时系统只给出超标预警，不禁止流程提交。本专题以冻结预算弱管控为例进行详细讲解

# 2\. 操作步骤

## 2.1 预算模板编制及预算填报

参考该文档[《搭建预算模板到预算使用》](https://weapp.eteams.cn/sp/ebdpage/view/freepass/1152863419640021002?freepass_doc=1&id=1177707228542263384&space_id=1963167002611772846 "《搭建预算模板到预算使用》")完成前置配置，弱控是在之前的配置基础上额外增加一条动作流进行弱控校验（注意：是额外增加动作流，原来的预算冻结、扣除动作流也需要配置）

## 2.2 设置费控强度为弱控

打开配置好的预算模板，进入费控设置页面，费控强度弱控

![](https://weapp.eteams.cn/papi/file/preview?fileId=1259354075679121414&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

## 2.3 动作流

事前申请流程已经配置了冻结预算的弱控动作流，为了实现弱管控，还要再配置一条弱控动作流

进入【后台管理中心】-【esb中心】-【动作流】-【新建动作流】，依此选择以下组件配置动作流

流程触发事件

severless

分组标识：budgetCheckAction

输入参数：requestId----动态赋值流程id

输出参数：code、data

![](https://weapp.eteams.cn/papi/file/preview?fileId=1203981660733620228&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1259354788638294025&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1259354818794733570&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

分支：条件设置“code”等于“warn”

![](https://weapp.eteams.cn/papi/file/preview?fileId=1203982090298286082&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

终止

执行结果：成功

需要触发页面交互：开启

触发页面动作：无动作

触发操作反馈类型：提醒

提醒内容：选择上下文参数data

阻止触发模块后续操作：开启

![](https://weapp.eteams.cn/papi/file/preview?fileId=1259353530187309069&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

动作流配置完成，全貌如下：

![](https://weapp.eteams.cn/papi/file/preview?fileId=1259353599058182151&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

## 2.4 工作流设置

进入【电子费控】-【设置】-【费用设置】-【关联工作流设置】，找到事前申请流程点击【编辑路径】

![](https://weapp.eteams.cn/papi/file/preview?fileId=1204016711962550286&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

在【流转设置】中点击【发起节点】-【更多】-【节点字段校验设置】

![](https://weapp.eteams.cn/papi/file/preview?fileId=1204017171492036614&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1204017244552617986&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

打开【启用节点字段校验】开关，并新建规则

![](https://weapp.eteams.cn/papi/file/preview?fileId=1204017515305156624&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

条件类型选择【合规】，校验方式选择【动作流】并在浏览按钮内选择刚才配置好的弱控校验动作流

![](https://weapp.eteams.cn/papi/file/preview?fileId=1259353697615937542&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

配置不合规提示语，选择右侧“值”里的“提醒内容”

![](https://weapp.eteams.cn/papi/file/preview?fileId=1204018816451928072&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

处理方式选择“仅提醒不做处理”

![](https://weapp.eteams.cn/papi/file/preview?fileId=1204018880886652929&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

在前台填写事前申请流程，当冻结预算超出剩余可用时会触发弱控提醒

点击【继续提交流程】，流程将会流转到下一节点，正常冻结

点击【取消】则关闭窗口，流程不提交

![](https://weapp.eteams.cn/papi/file/preview?fileId=1259355123704463373&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

当报销金额未超预算时，显示校验合规的提示并自动流转至下一节点

![](https://weapp.eteams.cn/papi/file/preview?fileId=1259355188027908105&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

#
