机具库存收藏修改
This commit is contained in:
parent
740bca4a49
commit
ad64c2c869
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue