export function changeDataList(data: any, dataTemp: any) {
const table = []
for (const rowData of data.manufacture) {
const row = new Array((dataTemp.length - 7))
for (const unitData of rowData.dayPlan) {
const index = Number(unitData.dayDate.slice(-2)) - 1
row[index] = unitData.targetCapacity
}
table.push([rowData.team, rowData.styleNumber,
rowData.manufactureCode, rowData.total, rowData.po,
rowData.planDate, rowData.productionQty, ...row])
}
console.log(table,"table")
return table
}