|
|
@ -45,43 +45,26 @@ export function getTreeDataSource(dataList) { |
|
|
|
} |
|
|
|
export function getThreeDataSource(data) { |
|
|
|
let items = [] |
|
|
|
// let obj ={
|
|
|
|
// ...data.subList[0]
|
|
|
|
// }
|
|
|
|
// console.log(12)
|
|
|
|
// data.subList.forEach((item)=>{
|
|
|
|
// item.threeList = [{
|
|
|
|
// fromLocationCode:item.fromLocationCode,
|
|
|
|
// batch:item.batch,
|
|
|
|
// handleQty:0,
|
|
|
|
// qty:item.qty,
|
|
|
|
// inventoryStatus:item.inventoryStatus,
|
|
|
|
// toLocationCode:item.toLocationCode,
|
|
|
|
// }]
|
|
|
|
// item.packList=[{
|
|
|
|
// scaned : false,
|
|
|
|
// scanDate: new Date()
|
|
|
|
// }]
|
|
|
|
// })
|
|
|
|
// obj.subList = data.subList
|
|
|
|
// items.push(obj)
|
|
|
|
// return items;
|
|
|
|
let obj ={ |
|
|
|
...data.subList[0] |
|
|
|
} |
|
|
|
console.log(12) |
|
|
|
data.subList.forEach((item)=>{ |
|
|
|
item.subList = [{ |
|
|
|
item.threeList = [{ |
|
|
|
fromLocationCode:item.fromLocationCode, |
|
|
|
batch:item.batch, |
|
|
|
handleQty:0, |
|
|
|
qty:item.qty, |
|
|
|
inventoryStatus:item.inventoryStatus, |
|
|
|
toLocationCode:item.toLocationCode, |
|
|
|
// packList:[{
|
|
|
|
// scaned : false,
|
|
|
|
// scanDate: new Date()
|
|
|
|
// }]
|
|
|
|
}] |
|
|
|
|
|
|
|
item.packList=[{ |
|
|
|
scaned : false, |
|
|
|
scanDate: new Date() |
|
|
|
}] |
|
|
|
}) |
|
|
|
items = data.subList |
|
|
|
obj.subList = data.subList |
|
|
|
items.push(obj) |
|
|
|
return items; |
|
|
|
} |
|
|
|
|
|
|
|