24h
This commit is contained in:
		| @@ -120,8 +120,12 @@ export default { | |||||||
| 				lineData['proLineName'] = item[0].lineName | 				lineData['proLineName'] = item[0].lineName | ||||||
| 				let works = [], specs = [] | 				let works = [], specs = [] | ||||||
| 				item.forEach(it => { | 				item.forEach(it => { | ||||||
| 					works.push(it.workOrderName) | 					if (it.workOrderName) { | ||||||
| 					specs.push(it.specifications) | 						works.push(it.workOrderName) | ||||||
|  | 					} | ||||||
|  | 					if (it.specifications) { | ||||||
|  | 						specs.push(it.specifications) | ||||||
|  | 					} | ||||||
| 					lineData[it.recordTime + '_up'] = it.inputNum | 					lineData[it.recordTime + '_up'] = it.inputNum | ||||||
| 					lineData[it.recordTime + '_down'] = it.outputNum | 					lineData[it.recordTime + '_down'] = it.outputNum | ||||||
| 					lineData[it.recordTime + '_area'] = it.area | 					lineData[it.recordTime + '_area'] = it.area | ||||||
| @@ -140,8 +144,8 @@ export default { | |||||||
| 						} | 						} | ||||||
| 					}) | 					}) | ||||||
| 				} | 				} | ||||||
| 				lineData['workOrderName'] = works.join(',') | 				lineData['workOrderName'] = Array.from(new Set(works)).join(',') | ||||||
| 				lineData['spec'] = specs.join(',') | 				lineData['spec'] = Array.from(new Set(specs)).join(',') | ||||||
| 				this.tableData.push(lineData) | 				this.tableData.push(lineData) | ||||||
| 			}) | 			}) | ||||||
| 			console.log('打印', this.tableData) | 			console.log('打印', this.tableData) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user