| | |
| | | let name = '' |
| | | data.forEach(item => { |
| | | name = '' |
| | | console.log('item',item) |
| | | if(item.type == 1){ |
| | | templatePath.value = '/tableCompanyExample.docx' |
| | | name = item.companyName |
| | |
| | | const month = (now.getMonth() +1).toString().padStart(2, '0'); |
| | | item.nowDate = year + '-' + month |
| | | item.tableData = item.qualityTargets.map((i,index) => { |
| | | return { |
| | | return{ |
| | | ...i, |
| | | nuum: index+1, |
| | | nuumRowSpan:`${i.qualityTargetMesses.length}cm`, |
| | | messageRowSpan:`${i.qualityTargetMesses.length}cm`, |
| | | qualityTargetMesses: i.qualityTargetMesses.map((q,qindex) => { |
| | | return{ |
| | | ...q, |
| | | first: qindex == 0, |
| | | nuum: index+1 |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | try { |