diff --git a/WebContent/WEB-INF/views/rm/unFinishWorkList.jsp b/WebContent/WEB-INF/views/rm/unFinishWorkList.jsp index f57ad6a..12d6f65 100644 --- a/WebContent/WEB-INF/views/rm/unFinishWorkList.jsp +++ b/WebContent/WEB-INF/views/rm/unFinishWorkList.jsp @@ -218,14 +218,14 @@ let pizhun=[]; let shenhe=[]; - + debugger for (var i = 0; i < selectedValues.length; i++) { const item = selectedValues[i]; // 缓存当前元素,代码更简洁 console.log('当前遍历元素:', item); // 核心:判断字符串是否包含「新购任务审核」,includes返回布尔值 - if (item.includes('新购任务审核')) { + if (item.includes('新购任务审核') || item.includes('新购检验审核')) { shenhe.push(item); // 符合条件,推入xingo - } else if (item.includes('新购任务批准')){ + } else if (item.includes('新购任务批准') || item.includes('新购检验批准')){ pizhun.push(item); // 不符合,推入shenhe } }