将同一个数组中的 相同字段值的数据归到一起组成新的数组
废话不多说直接上代码
let tempdata={}
this.cartdata.forEach(str => {
if (tempdata[str.applyOrg] != null) {
tempdata[str.applyOrg].push(str)
} else {
let every = []
every.push(str)
tempdata[str.applyOrg] = every
}
})