autoApproval拼写

This commit is contained in:
ChenXinXin committed 2024-05-17 11:58:04 +08:00
1 parent 95ce71570d
commit 3913e0e702
3 files changed
+7 -7

No files matched your search

+4 -4
View File
@@ -117,7 +117,7 @@ class TaskService extends Service {
editUserList = taskEditUserList && taskEditUserList.split(',') || [],
editedUserList = taskEditedUserList && taskEditedUserList.split(',') || [],
bannedUser = [];
const { autoApprovel, abnormalType, abnormalUser } = taskInfo;
const { autoApproval, abnormalType, abnormalUser } = taskInfo;
// 如果是审批进入,就加上本次审批人,用来判断可以自动审批的人
if (action == 'updateTask') taskHistoryUser.push(userId)
@@ -169,7 +169,7 @@ class TaskService extends Service {
await handleBanned()
// 自动审批
if (autoApprovel == 1 && times == 1) {
if (autoApproval == 1 && times == 1) {
var autoApprovelUser = _.intersection(taskHistoryUser, editUserList)
taskData = {
@@ -212,7 +212,7 @@ class TaskService extends Service {
} else {
// 自动流转,识别是否需要自动审批
if (editUserList.length > 0 && autoApprovel == 1) {
if (editUserList.length > 0 && autoApproval == 1) {
var autoApprovelUser = _.intersection(taskHistoryUser, editUserList)
if (autoApprovelUser.length > 0) {
@@ -255,7 +255,7 @@ class TaskService extends Service {
// 判断下一个是否可以自动审批
if (editUserList.length > 0) {
if (autoApprovel == 1) {
if (autoApproval == 1) {
while (editUserList.length > 0 && taskHistoryUser.includes(editUserList[0])) {
// 插入历史
taskData = {