//数组对象中得值进行乘法处理 export function dataRuduce(arr1: any) { const result = [] for (const v1 of arr1) { result.push({ ...v1, // arr2 count: Number(v1.layers) * Number(v1.ratio), lotQty:Number(v1.ratio) }) } return result }
//数组对象中得值进行乘法处理 export function dataRuduce(arr1: any) { const result = [] for (const v1 of arr1) { result.push({ ...v1, // arr2 count: Number(v1.layers) * Number(v1.ratio), lotQty:Number(v1.ratio) }) } return result }