<template>
	<el-container>
		<el-header>
			<div class="right-panel">
				<el-input v-model="query.batch__contains" 
				placeholder="批次号" 
				clearable 
				style="width: 200px;"
				></el-input>
				<el-date-picker
					v-model="query.last_time__gte"
					type="datetime"
					placeholder="变动时间起"
					value-format="YYYY-MM-DD HH:mm:ss"
					clearable
					style="width: 200px; margin: 5px"
				>
				</el-date-picker>
				<el-date-picker
					v-model="query.last_time__lte"
					type="datetime"
					placeholder="变动时间止"
					value-format="YYYY-MM-DD HH:mm:ss"
					clearable
					style="width: 200px; margin:0"
				>
				</el-date-picker>
				<el-button
					type="primary"
					icon="el-icon-search"
					@click="handleQuery"
				></el-button>
				<el-button
					@click="handleExport"
					class="tables"
					type="primary"
					>导出</el-button
				>
			</div>
		</el-header>
		<el-main class="nopadding">
			<scTable
				ref="table"
				:apiObj="apiObj"
				:params="params"
				:query="query"
				id="exportDiv"
				stripe
				>
					<el-table-column label="产品编号" prop="batch">
					</el-table-column>
					<el-table-column label="7号车间生产" prop="7号车间生产" align="center">
						<el-table-column label="规格">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.产品规格 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="实际重量/KG">
						</el-table-column>
						<el-table-column label="合格重量/KG">
						</el-table-column>
						<el-table-column label="应出数">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_count_real }}</span>
							</template>
						</el-table-column>
						<el-table-column label="合格数">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_count_ok }}</span>
							</template>
						</el-table-column>
						<el-table-column label="合格率">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_合格率 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="炸纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_count_n_zw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="炸头">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_count_n_zt }}</span>
							</template>
						</el-table-column>
						<el-table-column label="条纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_count_n_tw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气泡">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_count_n_qp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="扁">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_count_n_b }}</span>
							</template>
						</el-table-column>
						<el-table-column label="其他">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_count_n_qt }}</span>
							</template>
						</el-table-column>
						<el-table-column label="出料">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_出料人 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="切料">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_切料人 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="备注">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.棒料成型_备注 }}</span>
							</template>
						</el-table-column>
					</el-table-column>
					<el-table-column label="8号车间中检" prop="8号车间中检" align="center">
						<el-table-column label="时间">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_日期 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="接收数">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_count }}</span>
							</template>
						</el-table-column>
						<el-table-column label="合格数">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_count_ok }}</span>
							</template>
						</el-table-column>
						<el-table-column label="合格率">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_合格率 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="炸纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_count_n_zw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="炸头">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_count_n_zt }}</span>
							</template>
						</el-table-column>
						<el-table-column label="条纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_count_n_tw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气泡">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_count_n_qp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="扁">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_count_n_b }}</span>
							</template>
						</el-table-column>
						<el-table-column label="其他">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_count_n_qt }}</span>
							</template>
						</el-table-column>
						<el-table-column label="交送人">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_车间执行人 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="接收人">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_仓库执行人 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="备注">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.七车间入库_备注 }}</span>
							</template>
						</el-table-column>
					</el-table-column>
					<el-table-column label="6号车间加工" prop="6号车间加工" align="center">
						<el-table-column label="领棒日期">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间领料_日期 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="领取数量">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间领料_count }}</span>
							</template>
						</el-table-column>
						<!-- 平头 -->
						<el-table-column label="平头">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_real }}</span>
							</template>
						</el-table-column>
						<el-table-column label="合格率">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_合格率 }}</span>
							</template>
						</el-table-column>
						<!-- 不合格原因及数量 -->
						<el-table-column label="划伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_hs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="挫伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_cs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="杂质">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_zz }}</span>
							</template>
						</el-table-column>
						<el-table-column label="条纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_tw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="锥度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_zdd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="短">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_d }}</span>
							</template>
						</el-table-column>
						<el-table-column label="炸纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_zw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="断裂">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_dl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气泡">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_qp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="不亮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_bl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="横纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_hw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="有皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_yp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="爆皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_bp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="色差">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_sc }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_zjd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径小">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_zjx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气线">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_qx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="结石">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_js }}</span>
							</template>
						</el-table-column>
						<el-table-column label="椭圆度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_tydd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="水雾">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_sw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="壁厚偏差大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_bhpcd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="弯">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_count_n_w }}</span>
							</template>
						</el-table-column>
						<el-table-column label="加工日期">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_日期 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="操作人">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_平头_操作人 }}</span>
							</template>
						</el-table-column>
						<!-- 粘头接收数 -->
						<el-table-column label="粘头接收数">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_use }}</span>
							</template>
						</el-table-column>
						<el-table-column label="合格率">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_合格率 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="划伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_hs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="挫伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_cs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="杂质">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_zz }}</span>
							</template>
						</el-table-column>
						<el-table-column label="条纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_tw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="锥度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_zdd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="短">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_d }}</span>
							</template>
						</el-table-column>
						<el-table-column label="炸纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_zw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="断裂">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_dl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气泡">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_qp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="不亮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_bl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="横纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_hw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="有皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_yp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="爆皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_bp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="色差">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_sc }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_zjd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径小">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_zjx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气线">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_qx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="结石">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_js }}</span>
							</template>
						</el-table-column>
						<el-table-column label="椭圆度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_tydd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="水雾">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_sw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="壁厚偏差大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_bhpcd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="弯">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_count_n_w }}</span>
							</template>
						</el-table-column>
						<el-table-column label="加工日期">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_日期 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="操作人">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粘铁头_操作人 }}</span>
							</template>
						</el-table-column>
						<!-- 粗中细接收数 -->
						<el-table-column label="粗中细接收数">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_use }}</span>
							</template>
						</el-table-column>
						<el-table-column label="合格率">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_合格率 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="划伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_hs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="挫伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_cs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="杂质">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_zz }}</span>
							</template>
						</el-table-column>
						<el-table-column label="条纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_tw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="锥度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_zdd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="短">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_d }}</span>
							</template>
						</el-table-column>
						<el-table-column label="炸纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_zw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="断裂">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_dl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气泡">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_qp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="不亮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_bl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="横纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_hw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="有皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_yp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="爆皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_bp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="色差">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_sc }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_zjd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径小">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_zjx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气线">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_qx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="结石">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_js }}</span>
							</template>
						</el-table-column>
						<el-table-column label="椭圆度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_tydd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="水雾">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_sw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="壁厚偏差大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_bhpcd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="弯">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_w }}</span>
							</template>
						</el-table-column>
						<el-table-column label="加工日期">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_日期 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="操作人">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_操作人 }}</span>
							</template>
						</el-table-column>
						<!-- 抛光接收数 -->
						<el-table-column label="抛光接收数">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_use }}</span>
							</template>
						</el-table-column>
						<el-table-column label="合格率">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_合格率 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="划伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_hs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="挫伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_cs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="杂质">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_zz }}</span>
							</template>
						</el-table-column>
						<el-table-column label="条纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_tw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="锥度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_zdd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="短">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_d }}</span>
							</template>
						</el-table-column>
						<el-table-column label="炸纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_zw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="断裂">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_dl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气泡">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_qp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="不亮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_bl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="横纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_hw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="有皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_yp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="爆皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_bp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="色差">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_sc }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_zjd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径小">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_zjx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气线">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_qx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="结石">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_js }}</span>
							</template>
						</el-table-column>
						<el-table-column label="椭圆度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_tydd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="水雾">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_sw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="壁厚偏差大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_bhpcd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="弯">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_w }}</span>
							</template>
						</el-table-column>
						<el-table-column label="其他">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_count_n_qt }}</span>
							</template>
						</el-table-column>
						<el-table-column label="加工日期">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_日期 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="操作人">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_粗中细磨_操作人 }}</span>
							</template>
						</el-table-column>
						<!-- 开槽接收数 -->
						<el-table-column label="开槽接收数">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_use }}</span>
							</template>
						</el-table-column>
						<el-table-column label="合格率">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_合格率 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="划伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_hs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="挫伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_cs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="杂质">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_zz }}</span>
							</template>
						</el-table-column>
						<el-table-column label="条纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_tw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="锥度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_zdd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="短">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_d }}</span>
							</template>
						</el-table-column>
						<el-table-column label="炸纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_zw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="断裂">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_dl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气泡">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_qp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="不亮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_bl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="横纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_hw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="有皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_yp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="爆皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_bp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="色差">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_sc }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_zjd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径小">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_zjx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气线">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_qx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="结石">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_js }}</span>
							</template>
						</el-table-column>
						<el-table-column label="椭圆度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_tydd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="水雾">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_sw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="壁厚偏差大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_bhpcd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="弯">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_w }}</span>
							</template>
						</el-table-column>
						<el-table-column label="加工日期">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_日期 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="操作人">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_操作人 }}</span>
							</template>
						</el-table-column>
						<!-- 6车间自己的检验 -->
						<el-table-column label="检测接收数">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count }}</span>
							</template>
						</el-table-column>
						<el-table-column label="合格率">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_合格率 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="划伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_hs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="挫伤">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_cs }}</span>
							</template>
						</el-table-column>
						<el-table-column label="杂质">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_zz }}</span>
							</template>
						</el-table-column>
						<el-table-column label="条纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_tw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="锥度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_zdd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="短">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_d }}</span>
							</template>
						</el-table-column>
						<el-table-column label="炸纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_zw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="断裂">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_dl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气泡">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_qp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="不亮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_bl }}</span>
							</template>
						</el-table-column>
						<el-table-column label="横纹">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_hw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="有皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_yp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="爆皮">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_bp }}</span>
							</template>
						</el-table-column>
						<el-table-column label="色差">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_sc }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_zjd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="直径小">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_zjx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="气线">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_qx }}</span>
							</template>
						</el-table-column>
						<el-table-column label="结石">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_js }}</span>
							</template>
						</el-table-column>
						<el-table-column label="椭圆度大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_tydd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="水雾">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_sw }}</span>
							</template>
						</el-table-column>
						<el-table-column label="壁厚偏差大">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_bhpcd }}</span>
							</template>
						</el-table-column>
						<el-table-column label="弯">
								<template #default="scope">
									<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_w }}</span>
								</template>
						</el-table-column>
						<el-table-column label="日期" prop="日期">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_日期 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="操作人" prop="操作人">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.六车间中检_操作人 }}</span>
							</template>
						</el-table-column>
					</el-table-column>
					<el-table-column label="技术质量" align="center">
						<el-table-column label="终检">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.成品检验_count }}</span>
							</template>
						</el-table-column>
						<el-table-column label="合格率">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.成品检验_合格率 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="日期">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.成品检验_日期 }}</span>
							</template>
						</el-table-column>
						<el-table-column label="检验人">
							<template #default="scope">
								<span v-if="scope.row.data">{{ scope.row.data.成品检验_操作人 }}</span>
							</template>
						</el-table-column>
					</el-table-column>
					<el-table-column label="6号领取加工-发货合格率">
						<template #default="scope">
							<span v-if="scope.row.data">{{ scope.row.data.六车间_批次生产合格率 }}</span>
						</template>
					</el-table-column>
					<el-table-column label="7号生产-发货合格率">
						<template #default="scope">
							<span v-if="scope.row.data">{{ scope.row.data.七车间_批次应出合格率 }}</span>
						</template>
					</el-table-column>
				</scTable>
		</el-main>
	</el-container>
</template>

<script>
function deepCopy(obj) {
	return JSON.parse(JSON.stringify(obj));
}
export default {
	name: "chart",
	data() {
		return {
			params: {
				ordering:'-last_time',
				batch__startswith__in:'ZJ2,G05',
			},
			query:{
				batch__contains:'',
				last_time__gte:'',
				last_time__lte:'',
			},
			apiObj: this.$API.wpm.batchst,
			options:[],
			tableData:[],
		};
	},
	methods: {
		handleQuery(){
			this.$refs.table.queryData(this.query);
		},
	},
};
</script>

<style scoped>
</style>
