1 let protocalNum = []; 2 //数组循环 3 sampleList.cbpiList.forEach((item,index) => { 4 protocalNum.push(item.STR_BALANCE_CODE); 5 }); 6 /* 多条勾选打印结算单会出现重复的结算单号 去重处理 */ 7 let getProtocalNum = new Set(protocalNum); 8 let getProtocalNumArr = Array.from(getProtocalNum);