|
|
|
@ -161,6 +161,50 @@ const 技术准备=()=>{
|
|
|
|
|
})
|
|
|
|
|
XLSX.utils.book_append_sheet(workBook, lastSheet, "流向(M、L);组立(大、中);种类(板)");
|
|
|
|
|
|
|
|
|
|
const 加强平铁=['SG3']
|
|
|
|
|
const {sheet:加强平铁sheet}=处理数据(加强平铁,(list)=>{
|
|
|
|
|
return list.filter(item=>parseFloat(item.xxSize||'0')>5000).map(item=>{
|
|
|
|
|
return {
|
|
|
|
|
船名:item.ch,
|
|
|
|
|
段号:item.fd,
|
|
|
|
|
零件号:item.partName,
|
|
|
|
|
材质:item.material,
|
|
|
|
|
规格:item.specification,
|
|
|
|
|
工序:item.type0,
|
|
|
|
|
左:item.p,
|
|
|
|
|
中:item.c,
|
|
|
|
|
右:item.s,
|
|
|
|
|
重量:item.weight,
|
|
|
|
|
数量:(parseInt(item.p||0)||0)+(parseInt(item.c||0)||0)+(parseInt(item.s||0)||0),
|
|
|
|
|
长度:item.xxSize,
|
|
|
|
|
宽度:item.yySize,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
XLSX.utils.book_append_sheet(workBook, 加强平铁sheet, "加强平铁");
|
|
|
|
|
|
|
|
|
|
const 光电=['8GX']
|
|
|
|
|
const {sheet:光电sheet}=处理数据(光电,(list)=>{
|
|
|
|
|
return list.map(item=>{
|
|
|
|
|
return {
|
|
|
|
|
船名:item.ch,
|
|
|
|
|
段号:item.fd,
|
|
|
|
|
零件号:item.partName,
|
|
|
|
|
材质:item.material,
|
|
|
|
|
规格:item.specification,
|
|
|
|
|
工序:item.type0,
|
|
|
|
|
左:item.p,
|
|
|
|
|
中:item.c,
|
|
|
|
|
右:item.s,
|
|
|
|
|
重量:item.weight,
|
|
|
|
|
数量:(parseInt(item.p||0)||0)+(parseInt(item.c||0)||0)+(parseInt(item.s||0)||0),
|
|
|
|
|
长度:item.xxSize,
|
|
|
|
|
宽度:item.yySize,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
XLSX.utils.book_append_sheet(workBook, 光电sheet, "光电");
|
|
|
|
|
|
|
|
|
|
XLSX.writeFile(workBook, `${data.formData.ch}船技术准备.xlsx`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|